Class StyleMapping
java.lang.Object
com.independentsoft.office.odf.styles.StyleMapping
Represents a condition, which if met, results in the mapping of a style.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the style to apply when the condition is true.Gets an absolute cell address with a table name the base cell for relative addresses in formulas.Gets the condition that triggers a style map.voidsetAppliedStyle(String appliedStyle)Sets the style to apply when the condition is true.voidsetBaseCellAddress(String baseCellAddress)Sets an absolute cell address with a table name the base cell for relative addresses in formulas.voidsetCondition(String condition)Sets the condition that triggers a style map.toString()Converts the value of the current StyleMapping object to its equivalent string representation.
-
Constructor Details
-
StyleMapping
public StyleMapping()Initializes a new instance of the StyleMapping class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current StyleMapping object to its equivalent string representation. -
getCondition
Gets the condition that triggers a style map.- Returns:
- the condition
-
setCondition
Sets the condition that triggers a style map.- Parameters:
condition- the new condition
-
getAppliedStyle
Gets the style to apply when the condition is true.- Returns:
- the applied style
-
setAppliedStyle
Sets the style to apply when the condition is true.- Parameters:
appliedStyle- the new applied style
-
getBaseCellAddress
Gets an absolute cell address with a table name the base cell for relative addresses in formulas.- Returns:
- the base cell address
-
setBaseCellAddress
Sets an absolute cell address with a table name the base cell for relative addresses in formulas.- Parameters:
baseCellAddress- the new base cell address
-