|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.MutableStyle
A Style implementation which may be modified.
Note that modifications to the Style will not necessarily be
reflected in Components that use the Style
unless the Components are specifically informed of the changes,
i.e., by resetting the shared style of a Component.
As such, shared Styles should not be updated once they are
in use by Components, as it will result in undefined behavior.
| Nested Class Summary | |
class |
MutableStyle.IndexedPropertyValue
A value object which stores the indexed values of a property. |
| Constructor Summary | |
MutableStyle()
Default constructor. |
|
| Method Summary | |
void |
addStyleContent(Style style)
Adds the content of the specified style to this style. |
java.lang.Object |
getIndexedProperty(java.lang.String propertyName,
int propertyIndex)
Retrieves the value of the specified indexed property. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Retrieves the value of the specified property. |
java.util.Iterator |
getPropertyIndices(java.lang.String propertyName)
Determines which indices of a particular property are set. |
java.util.Iterator |
getPropertyNames()
Retrieves the names of all set properties. |
boolean |
isIndexedPropertySet(java.lang.String propertyName,
int index)
Determines if a particular index of an indexed property is set. |
boolean |
isPropertySet(java.lang.String propertyName)
Determines if a particular property is set. |
void |
removeIndexedProperty(java.lang.String propertyName,
int propertyIndex)
Removes a value of an indexed property from the Style. |
void |
removeProperty(java.lang.String propertyName)
Removes a property from the Style. |
void |
setIndexedProperty(java.lang.String propertyName,
int propertyIndex,
java.lang.Object propertyValue)
Sets an indexed property of the Style |
void |
setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Sets a property of the Style. |
int |
size()
Returns the number of properties set. |
java.lang.String |
toString()
Returns a debug representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MutableStyle()
| Method Detail |
public void addStyleContent(Style style)
style - the style to add
public java.lang.Object getIndexedProperty(java.lang.String propertyName,
int propertyIndex)
Style
getIndexedProperty in interface StyleStyle.getIndexedProperty(java.lang.String, int)public java.lang.Object getProperty(java.lang.String propertyName)
Style
getProperty in interface StyleStyle.getProperty(java.lang.String)public java.util.Iterator getPropertyIndices(java.lang.String propertyName)
Style
getPropertyIndices in interface StyleIterator that returns the set indices in
incrementing order as IntegersStyle.getPropertyIndices(java.lang.String)public java.util.Iterator getPropertyNames()
Style
getPropertyNames in interface StyleIterator that returns the names of all set
propertiesStyle.getPropertyNames()
public boolean isIndexedPropertySet(java.lang.String propertyName,
int index)
Style
isIndexedPropertySet in interface StylepropertyName - the property nameindex - the index
Style.isIndexedPropertySet(java.lang.String, int)public boolean isPropertySet(java.lang.String propertyName)
Style
isPropertySet in interface StylepropertyName - the property name
Style.isPropertySet(java.lang.String)
public void removeIndexedProperty(java.lang.String propertyName,
int propertyIndex)
Style.
propertyName - the name of the propertypropertyIndex - the index of the property to removepublic void removeProperty(java.lang.String propertyName)
Style.
propertyName - the name of the property to remove
public void setIndexedProperty(java.lang.String propertyName,
int propertyIndex,
java.lang.Object propertyValue)
Style
propertyName - the name of the propertypropertyIndex - the index of the propertypropertyValue - the value of the property
public void setProperty(java.lang.String propertyName,
java.lang.Object propertyValue)
Style.
If propertyValue is null, the property will be
removed.
propertyName - the name of the propertypropertyValue - the value of the propertypublic int size()
public java.lang.String toString()
Object.toString()
|
NextApp Echo2 v2.1.0.rc2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||