public static enum CommandQueueEvent.Type extends Enum<CommandQueueEvent.Type>
An enumeration for the types supported by the
CommandQueueEvent class.
| Enum Constant and Description |
|---|
COMMAND_ADDED
A command was added to the queue.
|
COMMAND_EXECUTED
Execution of a command is finished.
|
COMMAND_EXECUTING
A command is about to be executed.
|
QUEUE_BUSY
A command was added to an empty queue.
|
QUEUE_IDLE
The last command contained in the queue was processed.
|
| Modifier and Type | Method and Description |
|---|---|
static CommandQueueEvent.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandQueueEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandQueueEvent.Type COMMAND_ADDED
execute() method for each passed in
Command object.public static final CommandQueueEvent.Type COMMAND_EXECUTING
public static final CommandQueueEvent.Type COMMAND_EXECUTED
public static final CommandQueueEvent.Type QUEUE_BUSY
QUEUE_IDLE is triggered. As long as the queue is in
the BUSY state, the isPending() method
returns true.public static final CommandQueueEvent.Type QUEUE_IDLE
QUEUE_BUSY. It indicates that all
pending commands have been processed, and the queue is now empty.public static CommandQueueEvent.Type[] values()
for (CommandQueueEvent.Type c : CommandQueueEvent.Type.values()) System.out.println(c);
public static CommandQueueEvent.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016 The JGUIraffe Team. All rights reserved.