Class ColumnStyle
java.lang.Object
com.independentsoft.office.odf.styles.Style
com.independentsoft.office.odf.styles.BaseStyle
com.independentsoft.office.odf.styles.ColumnStyle
Represents the column styles.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.styles.BaseStyle
className, dataStyle, enableAutoUpdate, family, linkedStyleName, listStyle, masterPageName, nextStyle, outlineLevelEmpty, outlineNumberingLevel, parentStyle, styleMappingsFields inherited from class com.independentsoft.office.odf.styles.Style
displayName, name -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ColumnStyle class.ColumnStyle(String name)Initializes a new instance of the ColumnStyle class. -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.Gets the break after.Gets the break before.intGets the relative width of a column with a number value, followed by a (ASTERISK, U+002A) character.getWidth()Gets the fixed width for a column.voidsetBreakAfter(Break breakAfter)Sets the break after.voidsetBreakBefore(Break breakBefore)Sets the break before.voidsetRelativeWidth(int relativeWidth)Sets the relative width of a column with a number value, followed by a (ASTERISK, U+002A) character.voidsetUseOptimalWidth(boolean useOptimalWidth)Specifies that a column width should be recalculated automatically if content in the column changes.voidSets the fixed width for a column.toString()Converts the value of the current ColumnStyle object to its equivalent string representation.booleanSpecifies that a column width should be recalculated automatically if content in the column changes.Methods inherited from class com.independentsoft.office.odf.styles.BaseStyle
getClassName, getDataStyle, getFamily, getListStyle, getMasterPageName, getNextStyle, getOutlineNumberingLevel, getParentStyle, getStyleMappings, isEnableAutoUpdate, setClassName, setDataStyle, setEnableAutoUpdate, setListStyle, setMasterPageName, setNextStyle, setOutlineNumberingLevel, setParentStyle, toStringMethods inherited from class com.independentsoft.office.odf.styles.Style
getDisplayName, getName, setDisplayName, setName
-
Constructor Details
-
ColumnStyle
public ColumnStyle()Initializes a new instance of the ColumnStyle class. -
ColumnStyle
Initializes a new instance of the ColumnStyle class.- Parameters:
name- the name
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current ColumnStyle object to its equivalent string representation. -
getWidth
Gets the fixed width for a column.- Returns:
- the width
-
setWidth
Sets the fixed width for a column.- Parameters:
width- the new width
-
getRelativeWidth
public int getRelativeWidth()Gets the relative width of a column with a number value, followed by a (ASTERISK, U+002A) character.- Returns:
- the relative width
-
setRelativeWidth
public void setRelativeWidth(int relativeWidth)Sets the relative width of a column with a number value, followed by a (ASTERISK, U+002A) character.- Parameters:
relativeWidth- the new relative width
-
useOptimalWidth
public boolean useOptimalWidth()Specifies that a column width should be recalculated automatically if content in the column changes.- Returns:
- true, if successful
-
setUseOptimalWidth
public void setUseOptimalWidth(boolean useOptimalWidth)Specifies that a column width should be recalculated automatically if content in the column changes.- Parameters:
useOptimalWidth- the new use optimal width
-
getBreakBefore
Gets the break before.- Returns:
- the break before
-
setBreakBefore
Sets the break before.- Parameters:
breakBefore- the new break before
-
getBreakAfter
Gets the break after.- Returns:
- the break after
-
setBreakAfter
Sets the break after.- Parameters:
breakAfter- the new break after
-