Enum TextAlign

java.lang.Object
java.lang.Enum<TextAlign>
org.apache.myfaces.tobago.layout.TextAlign
All Implemented Interfaces:
Serializable, Comparable<TextAlign>, java.lang.constant.Constable

public enum TextAlign extends Enum<TextAlign>
Values for text alignments used with CSS.

Note: the enums are not capitalized, because of problems with PropertyEditor.

  • Enum Constant Details

    • left

      public static final TextAlign left
    • center

      public static final TextAlign center
    • justify

      public static final TextAlign justify
  • Field Details

  • Method Details

    • values

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

      public static TextAlign valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      @Deprecated public String getValue()
      Deprecated.
      Since Tobago 3.0.0 Please use Enum.name
    • parse

      @Deprecated public static TextAlign parse(String string)
      Deprecated.
      Since Tobago 3.0.0 Please use valueOf(java.lang.String)