Class CSSDeclarationRule
java.lang.Object
org.pentaho.reporting.libraries.css.model.StyleRule
org.pentaho.reporting.libraries.css.model.CSSDeclarationRule
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
CSSCounterRule,CSSFontFaceRule,CSSMediaRule,CSSPageAreaRule,CSSPageRule,CSSStyleRule
This class is a merger between the CSSStyleDeclaration and the other stylerule classes holding property name pairs.
Actually, this is what once was called a stylesheet in JFreeReport.
StyleProperties are key as Strings and have CSSValues as mapped values..
- Author:
- Thomas Morgner
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCSSDeclarationRule(StyleSheet parentStyle, StyleRule parentRule) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()boolean[]getPropertyCSSValue(StyleKey propertyName) StyleKey[]CSSValue[]booleanisEmpty()booleanisImportant(StyleKey propertyName) voidremoveProperty(StyleKey name) protected voidsetImportant(StyleKey propertyName, boolean important) voidsetPropertyValue(StyleKey propertyName, CSSValue value) voidsetPropertyValue(StyleKey propertyName, CSSValue value, boolean important) voidsetPropertyValueAsString(StyleKey styleKey, String value) Parses the given value for the stylekey.Methods inherited from class org.pentaho.reporting.libraries.css.model.StyleRule
getParentRule, getParentStyle, getStyleKeyRegistry, isReadOnly, makeReadOnly, setParentRule, setParentStyle
-
Constructor Details
-
CSSDeclarationRule
-
-
Method Details
-
isImportant
-
setImportant
-
getPropertyCSSValue
-
setPropertyValueAsString
Parses the given value for the stylekey. As stylekeys are only defined for atomic style declarations, this method will only affect a single name-value pair.- Parameters:
styleKey-value-
-
setPropertyValue
-
setPropertyValue
-
removeProperty
-
clear
public void clear() -
getPropertyKeysAsArray
-
getStyleValues
-
getImportantValues
public boolean[] getImportantValues() -
clone
- Overrides:
clonein classStyleRule- Throws:
CloneNotSupportedException
-
isEmpty
public boolean isEmpty()
-