Enum EditTypeEnum
- java.lang.Object
-
- java.lang.Enum<EditTypeEnum>
-
- org.eclipse.nebula.widgets.nattable.edit.EditTypeEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<EditTypeEnum>
public enum EditTypeEnum extends Enum<EditTypeEnum>
Enumeration type for specifying how a value should be processed that was entered to an editor by dialog.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADJUST
Use the value entered into the editor to adjust the value that is currently set in the data model.DECREASE
Use the value entered into the editor to decrease the value that is currently set in the data model.INCREASE
Use the value entered into the editor to increase the value that is currently set in the data model.SET
Use the value entered into the editor without any further transformation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EditTypeEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static EditTypeEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SET
public static final EditTypeEnum SET
Use the value entered into the editor without any further transformation.
-
INCREASE
public static final EditTypeEnum INCREASE
Use the value entered into the editor to increase the value that is currently set in the data model.
-
DECREASE
public static final EditTypeEnum DECREASE
Use the value entered into the editor to decrease the value that is currently set in the data model.
-
ADJUST
public static final EditTypeEnum ADJUST
Use the value entered into the editor to adjust the value that is currently set in the data model. Using this edit type will take the leading sign into account, so negative entered values will decrease the current value in the data model, positive values will increase it.
-
-
Method Detail
-
values
public static EditTypeEnum[] 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 (EditTypeEnum c : EditTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EditTypeEnum 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
-
-