Package org.refcodes.textual
Enum ColumnWidthType
- java.lang.Object
-
- java.lang.Enum<ColumnWidthType>
-
- org.refcodes.textual.ColumnWidthType
-
public enum ColumnWidthType extends java.lang.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 especially 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
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ColumnWidthType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ColumnWidthType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static ColumnWidthType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ColumnWidthType c : ColumnWidthType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ColumnWidthType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-