public interface Style
Modifier and Type | Method and Description |
---|---|
void |
copy(Style source)
Copy properties from an existing style.
|
String |
getCSS()
define the style as CSS rules.
|
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 |
setName(String name) |
void |
setProperty(StyleProperty prop,
Object value)
Assign a value to a property.
|
StyleProperty[] getProperties()
Object getProperty(StyleProperty prop)
prop
- the property to retrievevoid setProperty(StyleProperty prop, Object value)
prop
- the property to setvalue
- the assigned value (can be null)String getName()
void setName(String name)
Object getParentProperty(StyleProperty property)
String getCSS()
void copy(Style source)
source
- Style getParent()
Copyright © 2005–2020. All rights reserved.