public class CommandQueueEvent extends EventObject
An event class for notifying listeners about the state of a
CommandQueue
.
Event objects of this class are sent to registered listeners if certain changes in the command queue's life cycle occur. Registered listeners can react on these changes, i.g. by displaying some signs if currently commands are executed.
Modifier and Type | Class and Description |
---|---|
static class |
CommandQueueEvent.Type
An enumeration for the types supported by the
CommandQueueEvent class. |
source
Constructor and Description |
---|
CommandQueueEvent(CommandQueue q,
Command c,
CommandQueueEvent.Type t)
Creates a new instance of
CommandQueueEvent and fully
initializes it. |
Modifier and Type | Method and Description |
---|---|
Command |
getCommand()
Returns the
Command object affected by this event. |
CommandQueue |
getCommandQueue()
Returns the
CommandQueue that caused this event. |
CommandQueueEvent.Type |
getType()
Returns the type of this event.
|
getSource, toString
public CommandQueueEvent(CommandQueue q, Command c, CommandQueueEvent.Type t)
CommandQueueEvent
and fully
initializes it.q
- the affected command queuec
- the affected command objectt
- the event's typepublic Command getCommand()
Command
object affected by this event. This
may be null if this event is not related to a
Command
object.public CommandQueue getCommandQueue()
CommandQueue
that caused this event.public CommandQueueEvent.Type getType()
QE_XXXX
constants.Copyright © 2016 The JGUIraffe Team. All rights reserved.