Enum Class ColumnWidthType

java.lang.Object
java.lang.Enum<ColumnWidthType>
org.refcodes.textual.ColumnWidthType
All Implemented Interfaces:
Serializable, Comparable<ColumnWidthType>, Constable

public enum ColumnWidthType extends Enum<ColumnWidthType>
Determines the type of width being specified, either relative where the sum of all relative widths represents 100%; or absolute in number of chars. Specifying relative widths instead of percent (%) does not require various widths to add up to 100%. This is ehttps://www.metacodes.proly useful when the number of relative widths may vary; recalculation of all the relative widths to add up to 100% is obsolete as having relative widths, and not percent (%)..
Author:
steiner
  • Enum Constant Details

    • RELATIVE

      public static final ColumnWidthType RELATIVE
      The width is being relative; The total sum of all of relative widths represents 100%.
    • ABSOLUTE

      public static final ColumnWidthType ABSOLUTE
      The width is being specified absolute in number of chars.
  • Method Details

    • values

      public static ColumnWidthType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ColumnWidthType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null