Class DefaultColumnStyle
java.lang.Object
com.independentsoft.office.odf.styles.DefaultStyle
com.independentsoft.office.odf.styles.DefaultColumnStyle
Represents default styles of the column.
-
Field Summary
Fields inherited from class com.independentsoft.office.odf.styles.DefaultStyle
family -
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the DefaultColumnStyle 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 DefaultColumnStyle 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.DefaultStyle
getFamily, setFamily, toString
-
Constructor Details
-
DefaultColumnStyle
public DefaultColumnStyle()Initializes a new instance of the DefaultColumnStyle class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current DefaultColumnStyle object to its equivalent string representation.- Overrides:
toStringin classDefaultStyle- Returns:
- the string
-
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
-