Enum DataGrid.SelectionMode

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

public static enum DataGrid.SelectionMode extends Enum<DataGrid.SelectionMode>
What a tap selects.
  • Enum Constant Details

    • NONE

      public static final DataGrid.SelectionMode NONE
      Nothing is selected; the keyboard still moves between cells.
    • SINGLE_ROW

      public static final DataGrid.SelectionMode SINGLE_ROW
      One row.
    • MULTIPLE_ROWS

      public static final DataGrid.SelectionMode MULTIPLE_ROWS
      Any rows: Shift extends from the last row chosen, Control or Command adds and removes one, and a mouse drag selects a range.
    • SINGLE_CELL

      public static final DataGrid.SelectionMode SINGLE_CELL
      One cell, outlined, in a row that is shown selected.
  • Method Details

    • values

      public static DataGrid.SelectionMode[] 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 DataGrid.SelectionMode 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