|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo2.app.MutableStyle nextapp.echo2.app.DerivedMutableStyle
public class DerivedMutableStyle
A MutableStyle
which will retrieve properties from a
"parent" style when they are not set locally.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class nextapp.echo2.app.MutableStyle |
---|
MutableStyle.IndexedPropertyValue |
Constructor Summary | |
---|---|
DerivedMutableStyle()
Default constructor. |
|
DerivedMutableStyle(Style parentStyle)
Creates a new DerivedMutableStyle . |
Method Summary | |
---|---|
java.lang.Object |
getIndexedProperty(java.lang.String propertyName,
int propertyIndex)
Retrieves the value of the specified indexed property. |
Style |
getParentStyle()
Returns the parent style. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Retrieves the value of the specified property. |
boolean |
isIndexedPropertySet(java.lang.String propertyName,
int propertyIndex)
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 |
setParentStyle(Style parentStyle)
Sets the parent style, from which properties will be retrieved if they are not found in this style. |
Methods inherited from class nextapp.echo2.app.MutableStyle |
---|
addStyleContent, getPropertyIndices, getPropertyNames, removeIndexedProperty, removeProperty, setIndexedProperty, setProperty, size, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DerivedMutableStyle()
public DerivedMutableStyle(Style parentStyle)
DerivedMutableStyle
.
parentStyle
- the style from which to retrieve properties
when they are not set within this styleMethod Detail |
---|
public Style getParentStyle()
public java.lang.Object getIndexedProperty(java.lang.String propertyName, int propertyIndex)
Style
getIndexedProperty
in interface Style
getIndexedProperty
in class MutableStyle
Style.getIndexedProperty(java.lang.String, int)
public java.lang.Object getProperty(java.lang.String propertyName)
Style
getProperty
in interface Style
getProperty
in class MutableStyle
Style.getProperty(java.lang.String)
public boolean isIndexedPropertySet(java.lang.String propertyName, int propertyIndex)
Style
isIndexedPropertySet
in interface Style
isIndexedPropertySet
in class MutableStyle
propertyName
- the property namepropertyIndex
- the index
Style.isIndexedPropertySet(java.lang.String, int)
public boolean isPropertySet(java.lang.String propertyName)
Style
isPropertySet
in interface Style
isPropertySet
in class MutableStyle
propertyName
- the property name
Style.isPropertySet(java.lang.String)
public void setParentStyle(Style parentStyle)
parentStyle
- the parent style
|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |