Enum Class Table.Alignment

java.lang.Object
java.lang.Enum<Table.Alignment>
org.tealeaf.javamarkdown.elements.Table.Alignment
All Implemented Interfaces:
Serializable, Comparable<Table.Alignment>, Constable
Enclosing class:
Table

public static enum Table.Alignment extends Enum<Table.Alignment>

Represents the alignment value used for columns in a Table

Since:
0.0.18
Author:
Thomas Kwashnak
  • Enum Constant Details

    • LEFT

      public static final Table.Alignment LEFT

      Aligns all text to the left in the cell.

      This is the default alignment

      Since:
      0.0.18
    • CENTER

      public static final Table.Alignment CENTER

      Aligns all text to the center of the cell.

      Since:
      0.0.18
  • Method Details

    • values

      public static Table.Alignment[] 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 Table.Alignment 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
    • getAlignment

      public String getAlignment()

      Returns the printed text for this alignment

      Returns:
      Markdown text for this alignment
      Since:
      0.0.18
    • toString

      public String toString()
      Overrides:
      toString in class Enum<Table.Alignment>
      Returns:
      The Markdown Text for this alignment
      Since:
      0.0.18