Enum Class TableAlignment

java.lang.Object
java.lang.Enum<TableAlignment>
net.storm.api.ui.TableAlignment
All Implemented Interfaces:
Serializable, Comparable<TableAlignment>, Constable

public enum TableAlignment extends Enum<TableAlignment>
Enumeration of horizontal text alignment options for table cells.

This enum is used by TableComponent, TableElement, and TableRow to specify how text content should be aligned within table cells.

See Also:
  • Enum Constant Details

    • LEFT

      public static final TableAlignment LEFT
      Align text to the left edge of the cell.
    • CENTER

      public static final TableAlignment CENTER
      Center text horizontally within the cell.
  • Method Details

    • values

      public static TableAlignment[] 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 TableAlignment 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