com.dlsc.flexgantt.command
Enum CommandStackEvent.ID

java.lang.Object
  extended by java.lang.Enum<CommandStackEvent.ID>
      extended by com.dlsc.flexgantt.command.CommandStackEvent.ID
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CommandStackEvent.ID>
Enclosing class:
CommandStackEvent

public static enum CommandStackEvent.ID
extends java.lang.Enum<CommandStackEvent.ID>

The command stack event ID allows command stack listeners to distinguish between different types of command stack events. The IDs basically describe the various stages throughout the command execution cycle.

Since:
1.0
See Also:
ICommandStack, ICommandStackListener, CommandStackEvent

Enum Constant Summary
COMMAND_CANCELED
          Identifier for canceled commands.
COMMAND_EXECUTED
          Identifier for 'command terminated successfully'.
COMMAND_FAILED
          Identifier for executed commands that failed.
COMMAND_STARTED
          Identifier for 'command started' event. b
COMMAND_UNDONE
          Identifier for 'command undo successful'.
 
Method Summary
static CommandStackEvent.ID valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CommandStackEvent.ID[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

COMMAND_CANCELED

public static final CommandStackEvent.ID COMMAND_CANCELED
Identifier for canceled commands.

Since:
1.0

COMMAND_EXECUTED

public static final CommandStackEvent.ID COMMAND_EXECUTED
Identifier for 'command terminated successfully'.

Since:
1.0

COMMAND_FAILED

public static final CommandStackEvent.ID COMMAND_FAILED
Identifier for executed commands that failed.

Since:
1.0

COMMAND_STARTED

public static final CommandStackEvent.ID COMMAND_STARTED
Identifier for 'command started' event. b

Since:
1.0

COMMAND_UNDONE

public static final CommandStackEvent.ID COMMAND_UNDONE
Identifier for 'command undo successful'.

Since:
1.0
Method Detail

values

public static final CommandStackEvent.ID[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(CommandStackEvent.ID c : CommandStackEvent.ID.values())
        System.out.println(c);

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

valueOf

public static CommandStackEvent.ID valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name