Enum Class ThScope

java.lang.Object
java.lang.Enum<ThScope>
com.oorian.html.elements.consts.ThScope
All Implemented Interfaces:
Serializable, Comparable<ThScope>, Constable

public enum ThScope extends Enum<ThScope>
Enumeration defining the scope of table header cells. This enum provides type-safe constants for the th element's "scope" attribute, which specifies whether a header cell applies to a row, column, or group.
Since:
1.0
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Enum Constant Details

    • COL

      public static final ThScope COL
      Header applies to a single column. Indicates the header cell provides information for all cells in the same column.
    • COLGROUP

      public static final ThScope COLGROUP
      Header applies to a group of columns. Indicates the header cell provides information for a column group.
    • ROW

      public static final ThScope ROW
      Header applies to a single row. Indicates the header cell provides information for all cells in the same row.
    • ROWGROUP

      public static final ThScope ROWGROUP
      Header applies to a group of rows. Indicates the header cell provides information for a row group.
  • Method Details

    • values

      public static ThScope[] 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 ThScope 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
    • getValue

      public String getValue()
      Gets the scope value for use in th elements.
      Returns:
      the string value used in HTML scope attribute.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ThScope>