Class EditableStyleSheet
- java.lang.Object
-
- org.pentaho.reporting.engine.classic.core.style.AbstractStyleSheet
-
- org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
-
- org.pentaho.reporting.designer.core.editor.format.EditableStyleSheet
-
- All Implemented Interfaces:
Serializable
,Cloneable
,org.pentaho.reporting.engine.classic.core.style.StyleSheet
public class EditableStyleSheet extends org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EditableStyleSheet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearEdits()
void
copyParentValues(org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet parent)
static EditableStyleSheet
create(List<org.pentaho.reporting.engine.classic.core.Element> visualElements)
static EditableStyleSheet
create(org.pentaho.reporting.engine.classic.core.Element... visualElements)
org.pentaho.reporting.engine.classic.core.style.StyleKey[]
getDefinedPropertyNamesArray()
Object
getStyleProperty(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object defaultValue)
Returns the value of a style.void
setStyleProperty(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object value)
Sets a style property (or removes the style if the value isnull
).-
Methods inherited from class org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
addAll, addDefault, addInherited, addInherited, addListener, clear, clone, copyFrom, derive, getChangeTracker, getChangeTrackerHash, getModificationCount, getPropertyKeyList, getPropertyKeys, isLocalKey, removeListener, setBooleanStyleProperty, setChangeTrackerHash, setModificationCount, toArray
-
-
-
-
Method Detail
-
copyParentValues
public void copyParentValues(org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet parent)
-
clearEdits
public void clearEdits()
-
create
public static EditableStyleSheet create(List<org.pentaho.reporting.engine.classic.core.Element> visualElements)
-
create
public static EditableStyleSheet create(org.pentaho.reporting.engine.classic.core.Element... visualElements)
-
setStyleProperty
public void setStyleProperty(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object value)
Sets a style property (or removes the style if the value isnull
).- Overrides:
setStyleProperty
in classorg.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
- Parameters:
key
- the style key (null
not permitted).value
- the value.- Throws:
NullPointerException
- if the given key is null.ClassCastException
- if the value cannot be assigned with the given key.
-
getStyleProperty
public Object getStyleProperty(org.pentaho.reporting.engine.classic.core.style.StyleKey key, Object defaultValue)
Returns the value of a style. If the style is not found in this style-sheet, the code looks in the parent style-sheets. If the style is not found in any of the parent style-sheets, then the default value (possiblynull
) is returned.- Specified by:
getStyleProperty
in interfaceorg.pentaho.reporting.engine.classic.core.style.StyleSheet
- Overrides:
getStyleProperty
in classorg.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
- Parameters:
key
- the style key.defaultValue
- the default value (null
permitted).- Returns:
- the value.
-
getDefinedPropertyNamesArray
public org.pentaho.reporting.engine.classic.core.style.StyleKey[] getDefinedPropertyNamesArray()
- Overrides:
getDefinedPropertyNamesArray
in classorg.pentaho.reporting.engine.classic.core.style.ElementStyleSheet
-
-