org.eclipse.nebula.widgets.nattable.edit
Enum EditTypeEnum

java.lang.Object
  extended by java.lang.Enum<EditTypeEnum>
      extended by 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
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
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 name
NullPointerException - if the argument is null


Copyright © 2015. All rights reserved.