Enum Class DisplayMode
- All Implemented Interfaces:
Serializable,Comparable<DisplayMode>,Constable
The various modes the table can be under.
- During normal display a cell is in NORMAL mode.
- If the contents of the cell are being edited, its in EDIT mode.
- If a cell has been selected, its in SELECT mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe state that shows that a cell is currently edited.The state that shows that currently the mouse hovers over the cell.The normal state a cell is in if no other state applies.The state that shows that a cell is currently selected.The state that shows that currently the mouse hovers over the cell that is currently selected. -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayModeReturns the enum constant of this class with the specified name.static DisplayMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
The normal state a cell is in if no other state applies. -
SELECT
The state that shows that a cell is currently selected. -
EDIT
The state that shows that a cell is currently edited. Never applied to a cell, only used for configuration purposes. -
HOVER
The state that shows that currently the mouse hovers over the cell. -
SELECT_HOVER
The state that shows that currently the mouse hovers over the cell that is currently selected.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-