Enum Class DisplayMode

java.lang.Object
java.lang.Enum<DisplayMode>
org.eclipse.nebula.widgets.nattable.style.DisplayMode
All Implemented Interfaces:
Serializable, Comparable<DisplayMode>, Constable

public enum DisplayMode extends Enum<DisplayMode>
The various modes the table can be under.
  1. During normal display a cell is in NORMAL mode.
  2. If the contents of the cell are being edited, its in EDIT mode.
  3. If a cell has been selected, its in SELECT mode.
These modes are used to bind different settings to different modes. For example, a different style can be registered for a cell when it is in SELECT mode.
  • Enum Constant Details

    • NORMAL

      public static final DisplayMode NORMAL
      The normal state a cell is in if no other state applies.
    • SELECT

      public static final DisplayMode SELECT
      The state that shows that a cell is currently selected.
    • EDIT

      public static final DisplayMode EDIT
      The state that shows that a cell is currently edited. Never applied to a cell, only used for configuration purposes.
    • HOVER

      public static final DisplayMode HOVER
      The state that shows that currently the mouse hovers over the cell.
    • SELECT_HOVER

      public static final DisplayMode SELECT_HOVER
      The state that shows that currently the mouse hovers over the cell that is currently selected.
  • Method Details

    • values

      public static DisplayMode[] 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 DisplayMode 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