Enum Class TableColumn.ColumnType

java.lang.Object
java.lang.Enum<TableColumn.ColumnType>
io.jenkins.plugins.datatables.TableColumn.ColumnType
All Implemented Interfaces:
Serializable, Comparable<TableColumn.ColumnType>, Constable
Enclosing class:
TableColumn

public static enum TableColumn.ColumnType extends Enum<TableColumn.ColumnType>
Supported DataTables column types. When operating in client-side processing mode, DataTables can process the data used for the display in each cell in a manner suitable for the action being performed. For example, HTML tags will be removed from the strings used for filter matching, while sort formatting may remove currency symbols to allow currency values to be sorted numerically. The formatting action performed to normalise the data, so it can be ordered and searched depends upon the column's type.
  • Enum Constant Details

    • DATE

      public static final TableColumn.ColumnType DATE
      Date or time values.
    • NUMBER

      public static final TableColumn.ColumnType NUMBER
      Numbers will be shown right aligned, and use a simple number sorting.
    • HTML_NUMBER

      public static final TableColumn.ColumnType HTML_NUMBER
      Numbers will be shown right aligned, and use a simple number sorting. May contain HTML tags also in the data.
    • FORMATTED_NUMBER

      public static final TableColumn.ColumnType FORMATTED_NUMBER
      Formatted numbers will be shown right aligned, and use numeric sorting of formatted numbers. Numbers which are formatted with thousands separators, currency symbols or a percentage indicator will be sorted numerically automatically by DataTables.
    • FORMATTED_HTML_NUMBER

      public static final TableColumn.ColumnType FORMATTED_HTML_NUMBER
      Formatted numbers will be shown right aligned, and use numeric sorting of formatted numbers. Numbers which are formatted with thousands separators, currency symbols or a percentage indicator will be sorted numerically automatically by DataTables. May contain HTML tags also in the data.
    • STRING

      public static final TableColumn.ColumnType STRING
      Fall back type if the data in the column does not match the requirements for the other data types (above).
  • Method Details

    • values

      public static TableColumn.ColumnType[] 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 TableColumn.ColumnType 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TableColumn.ColumnType>