Enum DataModelerContext.EditionMode
- java.lang.Object
-
- java.lang.Enum<DataModelerContext.EditionMode>
-
- org.kie.workbench.common.screens.datamodeller.client.DataModelerContext.EditionMode
-
- All Implemented Interfaces:
Serializable,Comparable<DataModelerContext.EditionMode>
- Enclosing class:
- DataModelerContext
public static enum DataModelerContext.EditionMode extends Enum<DataModelerContext.EditionMode>
States the edition mode that is working at this moment.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description GRAPHICAL_MODEThe graphical editor is editing the content.SOURCE_MODEThe source editor is editing the code.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DataModelerContext.EditionModevalueOf(String name)Returns the enum constant of this type with the specified name.static DataModelerContext.EditionMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SOURCE_MODE
public static final DataModelerContext.EditionMode SOURCE_MODE
The source editor is editing the code.
-
GRAPHICAL_MODE
public static final DataModelerContext.EditionMode GRAPHICAL_MODE
The graphical editor is editing the content.
-
-
Method Detail
-
values
public static DataModelerContext.EditionMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DataModelerContext.EditionMode c : DataModelerContext.EditionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DataModelerContext.EditionMode 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 nameNullPointerException- if the argument is null
-
-