Enum GridColumn.Kind

java.lang.Object
java.lang.Enum<GridColumn.Kind>
com.codename1.ui.table.GridColumn.Kind
All Implemented Interfaces:
Comparable<GridColumn.Kind>
Enclosing class:
GridColumn

public static enum GridColumn.Kind extends Enum<GridColumn.Kind>
What a column holds, which decides how it is aligned, compared and edited. AUTO decides from each value.
  • Enum Constant Details

    • AUTO

      public static final GridColumn.Kind AUTO
      Decided from the value: a Boolean is a check box, a Number is right aligned, anything else is text.
    • TEXT

      public static final GridColumn.Kind TEXT
      Text, edited in a text field.
    • NUMBER

      public static final GridColumn.Kind NUMBER
      A number, right aligned and edited in a numeric text field.
    • BOOLEAN

      public static final GridColumn.Kind BOOLEAN
      A check box, toggled in place with no editor.
    • DATE

      public static final GridColumn.Kind DATE
      A java.util.Date, edited in a date picker.
    • CHOICE

      public static final GridColumn.Kind CHOICE
      One of getChoices(), edited in a picker.
  • Method Details

    • values

      public static GridColumn.Kind[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static GridColumn.Kind valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null