Enum Class Table.Alignment
- All Implemented Interfaces:
Serializable
,Comparable<Table.Alignment>
,Constable
- Enclosing class:
Table
Represents the alignment value used for columns in a Table
- Since:
- 0.0.18
- Author:
- Thomas Kwashnak
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the printed text for this alignmenttoString()
static Table.Alignment
Returns the enum constant of this class with the specified name.static Table.Alignment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
Aligns all text to the left in the cell.
This is the default alignment
- Since:
- 0.0.18
-
CENTER
Aligns all text to the center of the cell.
- Since:
- 0.0.18
-
RIGHT
Aligns all text to the right in the cell
- Since:
- 0.0.18
-
-
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
-
getAlignment
Returns the printed text for this alignment
- Returns:
- Markdown text for this alignment
- Since:
- 0.0.18
-
toString
- Overrides:
toString
in classEnum<Table.Alignment>
- Returns:
- The Markdown Text for this alignment
- Since:
- 0.0.18
-