Method Summary |
|
public void | addListener(StyleChangeListener l) Adds a
StyleChangeListener . |
public void | addParent(ElementStyleSheet parent) Adds a parent style-sheet. |
public void | addParent(int position, ElementStyleSheet parent) Adds a parent style-sheet. |
public Object | clone() Creates and returns a copy of this object. |
abstract protected StyleSheetCarrier | createCarrier(ElementStyleSheet styleSheet) |
public ElementStyleSheet | getCascadeStyleSheet() |
public long | getChangeTracker() |
public ElementStyleSheet | getCopy() Clones the style-sheet. |
public Iterator | getDefinedPropertyNames() Returns an enumeration of all local property keys. |
public StyleKey[] | getDefinedPropertyNamesArray() |
public FontDefinition | getFontDefinitionProperty() Returns the font for this style-sheet. |
public ElementDefaultStyleSheet | getGlobalDefaultStyleSheet() Returns the global default (if defined). |
public String | getName() Returns the name of the style-sheet. |
protected StyleSheetCarrier[] | getParentReferences() |
public ElementStyleSheet[] | getParents() Returns a list of the parent style-sheets. |
public Object | getStyleProperty(StyleKey key, Object defaultValue) Returns the value of a style. |
final public boolean | isAllowCaching() Returns true if caching is allowed, and false otherwise. |
public boolean | isGlobalDefault() Returns true, if this stylesheet is one of the global default stylesheets. |
public boolean | isLocalKey(StyleKey key) Returns true, if the given key is locally defined, false otherwise. |
protected boolean | isSubStyleSheet(ElementStyleSheet parent) Checks, whether the given element stylesheet is already added as child into the stylesheet tree.
Parameters: parent - the element that should be tested. |
public void | removeListener(StyleChangeListener l) Removes a
StyleChangeListener . |
public void | removeParent(ElementStyleSheet parent) Removes a parent style-sheet. |
public void | setAllowCaching(boolean allowCaching) Sets the flag that controls whether or not caching is allowed. |
public void | setBooleanStyleProperty(StyleKey key, boolean value) Sets a boolean style property. |
public void | setCascadeStyleSheet(ElementStyleSheet cascadeStyleSheet) |
public void | setFontDefinitionProperty(FontDefinition font) Sets the font for this style-sheet. |
public void | setGlobalDefaultStyleSheet(ElementDefaultStyleSheet defaultStyleSheet) |
public void | setStyleProperty(StyleKey key, Object value) Sets a style property (or removes the style if the value is null ). |
public void | styleChanged(ElementStyleSheet source, StyleKey key, Object value) Forwards a change event notification to all registered
StyleChangeListener objects. |
public void | styleRemoved(ElementStyleSheet source, StyleKey key) Forwards a change event notification to all registered
StyleChangeListener objects. |
final public Object[] | toArray(StyleKey[] keys) |