Package com.oorian.html.elements.consts
Enum Class ThScope
- All Implemented Interfaces:
Serializable,Comparable<ThScope>,Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Gets the scope value for use in th elements.toString()static ThScopeReturns the enum constant of this class with the specified name.static ThScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COL
Header applies to a single column. Indicates the header cell provides information for all cells in the same column. -
COLGROUP
Header applies to a group of columns. Indicates the header cell provides information for a column group. -
ROW
Header applies to a single row. Indicates the header cell provides information for all cells in the same row. -
ROWGROUP
Header applies to a group of rows. Indicates the header cell provides information for a row group.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Gets the scope value for use in th elements.- Returns:
- the string value used in HTML scope attribute.
-
toString
-