Class ColumnProperties

java.lang.Object
com.independentsoft.office.odf.styles.ColumnProperties

public class ColumnProperties extends Object
Represents formatting properties for table columns.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes a new instance of the ColumnProperties class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a new object that is a deep copy of the current instance.
    Gets the break after.
    Gets the break before.
    int
    Gets the relative width of a column with a number value, followed by a (ASTERISK, U+002A) character.
    Gets the fixed width for a column.
    void
    setBreakAfter​(Break breakAfter)
    Sets the break after.
    void
    setBreakBefore​(Break breakBefore)
    Sets the break before.
    void
    setRelativeWidth​(int relativeWidth)
    Sets the relative width of a column with a number value, followed by a (ASTERISK, U+002A) character.
    void
    setUseOptimalWidth​(boolean useOptimalWidth)
    Specifies that a column width should be recalculated automatically if content in the column changes.
    void
    setWidth​(Size width)
    Sets the fixed width for a column.
    Converts the value of the current ColumnProperties object to its equivalent string representation.
    boolean
    Specifies that a column width should be recalculated automatically if content in the column changes.

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ColumnProperties

      public ColumnProperties()
      Initializes a new instance of the ColumnProperties class.
  • Method Details

    • clone

      public ColumnProperties clone()
      Creates a new object that is a deep copy of the current instance.
      Overrides:
      clone in class Object
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current ColumnProperties object to its equivalent string representation.
      Overrides:
      toString in class Object
      Returns:
      the string
    • getWidth

      public Size getWidth()
      Gets the fixed width for a column.
      Returns:
      the width
    • setWidth

      public void setWidth(Size width)
      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

      public Break getBreakBefore()
      Gets the break before.
      Returns:
      the break before
    • setBreakBefore

      public void setBreakBefore(Break breakBefore)
      Sets the break before.
      Parameters:
      breakBefore - the new break before
    • getBreakAfter

      public Break getBreakAfter()
      Gets the break after.
      Returns:
      the break after
    • setBreakAfter

      public void setBreakAfter(Break breakAfter)
      Sets the break after.
      Parameters:
      breakAfter - the new break after