| java.lang.Object nextapp.echo2.app.MutableStyle
All known Subclasses: nextapp.echo2.app.DerivedMutableStyle,
MutableStyle | public class MutableStyle implements Style(Code) | | A Style implementation which may be modified.
Note that modifications to the Style will not necessarily be
reflected in Component s that use the Style
unless the Component s are specifically informed of the changes,
i.e., by resetting the shared style of a Component .
As such, shared Style s should not be updated once they are
in use by Component s, as it will result in undefined behavior.
|
Inner Class :public class IndexedPropertyValue implements Serializable | |
Constructor Summary | |
public | MutableStyle() Default constructor. |
MutableStyle | public MutableStyle()(Code) | | Default constructor.
|
addStyleContent | public void addStyleContent(Style style)(Code) | | Adds the content of the specified style to this style.
Parameters: style - the style to add |
removeIndexedProperty | public void removeIndexedProperty(String propertyName, int propertyIndex)(Code) | | Removes a value of an indexed property from the Style .
Parameters: propertyName - the name of the property Parameters: propertyIndex - the index of the property to remove |
removeProperty | public void removeProperty(String propertyName)(Code) | | Removes a property from the Style .
Parameters: propertyName - the name of the property to remove |
setIndexedProperty | public void setIndexedProperty(String propertyName, int propertyIndex, Object propertyValue)(Code) | | Sets an indexed property of the Style
Parameters: propertyName - the name of the property Parameters: propertyIndex - the index of the property Parameters: propertyValue - the value of the property |
setProperty | public void setProperty(String propertyName, Object propertyValue)(Code) | | Sets a property of the Style .
If propertyValue is null, the property will be
removed.
Parameters: propertyName - the name of the property Parameters: propertyValue - the value of the property |
size | public int size()(Code) | | Returns the number of properties set.
the number of properties set |
|
|