public abstract class BaseStyleOverride<S extends Style> extends Object implements Style
Modifier and Type | Field and Description |
---|---|
protected S |
baseStyle |
protected S |
defaultStyle |
Constructor and Description |
---|
BaseStyleOverride(S defaultStyle) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Style |
getParent() |
Object |
getParentProperty(StyleProperty property) |
StyleProperty[] |
getProperties()
Retrieve all properties used by this style.
|
Object |
getProperty(StyleProperty prop)
Retrieve the value of a property.
|
void |
setBaseStyle(S style) |
void |
setName(String name) |
void |
setProperty(StyleProperty prop,
Object value)
Assign a value to a property.
|
public BaseStyleOverride(S defaultStyle)
public void setBaseStyle(S style)
public StyleProperty[] getProperties()
Style
getProperties
in interface Style
public Object getProperty(StyleProperty prop)
Style
getProperty
in interface Style
prop
- the property to retrievepublic void setProperty(StyleProperty prop, Object value)
Style
setProperty
in interface Style
prop
- the property to setvalue
- the assigned value (can be null)public Object getParentProperty(StyleProperty property)
getParentProperty
in interface Style
Copyright © 2005–2020. All rights reserved.