Class ColumnStyle


public class ColumnStyle extends BaseStyle
Represents the column styles.
  • Constructor Details

    • ColumnStyle

      public ColumnStyle()
      Initializes a new instance of the ColumnStyle class.
    • ColumnStyle

      public ColumnStyle(String name)
      Initializes a new instance of the ColumnStyle class.
      Parameters:
      name - the name
  • Method Details

    • clone

      public ColumnStyle clone()
      Creates a new object that is a deep copy of the current instance.
      Specified by:
      clone in class BaseStyle
      Returns:
      A new object that is a copy of this instance.
    • toString

      public String toString()
      Converts the value of the current ColumnStyle object to its equivalent string representation.
      Overrides:
      toString in class BaseStyle
      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