org.eclipse.nebula.widgets.nattable.persistence.command
Enum StateChangeEvent.StateChangeType

java.lang.Object
  extended by java.lang.Enum<StateChangeEvent.StateChangeType>
      extended by org.eclipse.nebula.widgets.nattable.persistence.command.StateChangeEvent.StateChangeType
All Implemented Interfaces:
Serializable, Comparable<StateChangeEvent.StateChangeType>
Enclosing class:
StateChangeEvent

public static enum StateChangeEvent.StateChangeType
extends Enum<StateChangeEvent.StateChangeType>

Enum for the type of change that was done to a NatTable view configuration.


Enum Constant Summary
CHANGE
          A view configuration has changed.
CREATE
          A view configuration was created by saving a current NatTable state via the PersistenceDialog.
DELETE
          A view configuration was deleted by using the PersistenceDialog.
 
Method Summary
static StateChangeEvent.StateChangeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StateChangeEvent.StateChangeType[] 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

CHANGE

public static final StateChangeEvent.StateChangeType CHANGE
A view configuration has changed. This normally occurs if an existing view configuration gets overridden.


CREATE

public static final StateChangeEvent.StateChangeType CREATE
A view configuration was created by saving a current NatTable state via the PersistenceDialog.


DELETE

public static final StateChangeEvent.StateChangeType DELETE
A view configuration was deleted by using the PersistenceDialog.

Method Detail

values

public static StateChangeEvent.StateChangeType[] 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 (StateChangeEvent.StateChangeType c : StateChangeEvent.StateChangeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static StateChangeEvent.StateChangeType 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 © 2014. All rights reserved.