Class Theme
java.lang.Object
com.independentsoft.office.themes.Theme
The Class Theme.
-
Constructor Summary
ConstructorsConstructorDescriptionTheme()Instantiates a new theme.Theme(byte[] buffer, Relationship relationship)Instantiates a new theme. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the custom colors.Gets the extra color schemes.getName()Gets the name.Gets the object defaults.Gets the verbatim copy of the theme part as read from the input document, ornullif this theme was not loaded from an existing part.Gets the theme elements.booleanIndicates whether the in-memory theme model was modified since it was read.voidsetModified(boolean modified)Sets whether the in-memory theme model is considered modified.voidSets the name.voidsetObjectDefaults(ObjectDefaults objectDefaults)Sets the object defaults.voidsetOriginalXml(String originalXml)Sets the verbatim theme XML to re-emit on save.voidsetThemeElements(ThemeElements themeElements)Sets the theme elements.toString()
-
Constructor Details
-
Theme
public Theme()Instantiates a new theme. -
Theme
Instantiates a new theme.- Parameters:
buffer- the bufferrelationship- the relationship- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
clone
-
toString
-
getCustomColors
Gets the custom colors.- Returns:
- the custom colors
-
getExtraColorSchemes
Gets the extra color schemes.- Returns:
- the extra color schemes
-
getObjectDefaults
Gets the object defaults.- Returns:
- the object defaults
-
setObjectDefaults
Sets the object defaults.- Parameters:
objectDefaults- the new object defaults
-
getThemeElements
Gets the theme elements.- Returns:
- the theme elements
-
setThemeElements
Sets the theme elements.- Parameters:
themeElements- the new theme elements
-
getName
Gets the name.- Returns:
- the name
-
setName
Sets the name.- Parameters:
name- the new name
-
getOriginalXml
Gets the verbatim copy of the theme part as read from the input document, ornullif this theme was not loaded from an existing part.- Returns:
- the original theme XML
-
setOriginalXml
Sets the verbatim theme XML to re-emit on save. Clears the modified flag so the supplied XML is written unchanged.- Parameters:
originalXml- the original theme XML
-
isModified
public boolean isModified()Indicates whether the in-memory theme model was modified since it was read. Whentrue,toString()serializes the object model instead of re-emittingthe original XML.- Returns:
- true if modified
-
setModified
public void setModified(boolean modified)Sets whether the in-memory theme model is considered modified.- Parameters:
modified- the new modified flag
-