public final class SimpleStyleSheet extends AbstractStyleSheet
Modifier and Type | Field and Description |
---|---|
static StyleSheet |
EMPTY_STYLE |
Constructor and Description |
---|
SimpleStyleSheet(InstanceID id,
StyleSheet parent) |
SimpleStyleSheet(StyleSheet parent) |
Modifier and Type | Method and Description |
---|---|
long |
getChangeTracker() |
long |
getChangeTrackerHash() |
InstanceID |
getId()
Returns the ID of the stylesheet.
|
long |
getModificationCount() |
InstanceID |
getParentId() |
Object |
getStyleProperty(StyleKey key,
Object defaultValue)
Returns the value of a style.
|
Object[] |
toArray() |
clone, derive, getBooleanStyleProperty, getBooleanStyleProperty, getDoubleStyleProperty, getIntStyleProperty, getStyleProperty, isLocalKey
public static final StyleSheet EMPTY_STYLE
public SimpleStyleSheet(StyleSheet parent)
public SimpleStyleSheet(InstanceID id, StyleSheet parent)
public Object getStyleProperty(StyleKey key, Object defaultValue)
null
) is returned.key
- the style key.defaultValue
- the default value (null
permitted).public Object[] toArray()
public long getChangeTracker()
public InstanceID getParentId()
public InstanceID getId()
AbstractStyleSheet
getId
in interface StyleSheet
getId
in class AbstractStyleSheet
public long getModificationCount()
getModificationCount
in interface StyleSheet
getModificationCount
in class AbstractStyleSheet
public long getChangeTrackerHash()
getChangeTrackerHash
in interface StyleSheet
getChangeTrackerHash
in class AbstractStyleSheet