Class ColumnProperties
java.lang.Object
com.independentsoft.office.odf.styles.ColumnProperties
Represents formatting properties for table columns.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ColumnProperties 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 ColumnProperties object to its equivalent string representation.booleanSpecifies that a column width should be recalculated automatically if content in the column changes.
-
Constructor Details
-
ColumnProperties
public ColumnProperties()Initializes a new instance of the ColumnProperties class.
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current ColumnProperties 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
-