Class StyleSheet
java.lang.Object
org.pentaho.reporting.libraries.css.model.StyleSheet
- All Implemented Interfaces:
Serializable,Cloneable
A CSS stylesheet. Unlike the W3C stylesheet classes, this class is a minimal set of attributes, designed with
usablity and performance in mind.
Stylesheets are resolved by looking at the elements. For the sake of simplicity, stylesheet objects itself do not
hold references to their parent stylesheets.
The W3C media list is omited - this library assumes the visual/print media. The media would have been specified in
the document anyway, so we do not care.
This class is a union of the W3C CSSStyleSheet and the CSSStyleRuleList. It makes no sense to separate them in this
context.
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNamespace(String prefix, String uri) voidvoidaddStyleSheet(StyleSheet styleSheet) clone()voiddeleteRule(int index) String[]getNamespaceURI(String prefix) org.pentaho.reporting.libraries.resourceloader.ResourceManagergetRule(int index) intorg.pentaho.reporting.libraries.resourceloader.ResourceKeygetStyleSheet(int index) intvoidinsertRule(int index, StyleRule rule) booleanvoidremoveStyleSheet(StyleSheet styleSheet) protected voidsetReadOnly(boolean readOnly) voidsetResourceManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager) voidsetSource(org.pentaho.reporting.libraries.resourceloader.ResourceKey href)
-
Constructor Details
-
StyleSheet
public StyleSheet()
-
-
Method Details
-
getStyleKeyRegistry
-
isReadOnly
public boolean isReadOnly() -
setReadOnly
protected void setReadOnly(boolean readOnly) -
getSource
public org.pentaho.reporting.libraries.resourceloader.ResourceKey getSource() -
setSource
public void setSource(org.pentaho.reporting.libraries.resourceloader.ResourceKey href) -
setResourceManager
public void setResourceManager(org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager) -
getResourceManager
public org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager() -
addRule
-
insertRule
-
deleteRule
public void deleteRule(int index) -
getRuleCount
public int getRuleCount() -
getRule
-
addStyleSheet
-
getStyleSheetCount
public int getStyleSheetCount() -
getStyleSheet
-
removeStyleSheet
-
addNamespace
-
getNamespaceURI
-
getNamespacePrefixes
-
getNamespaces
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-