|
Eclipse GEF 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.eclipse.gef.commands.CommandStackEvent
Instances of this class are sent whenever stack events occur. The type of event can be
determined by calling getDetail()
, and comparing the return value to constants
defined by CommandStack
.
Warning: this class is not intended to be subclassed.
Field Summary |
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
CommandStackEvent(CommandStack stack,
Command c,
int detail)
Constructs a new event instance. |
Method Summary | |
Command |
getCommand()
Returns null or a Command if a command is relevant to the current event. |
int |
getDetail()
Returns an integer identifying the type of event which has occurred. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CommandStackEvent(CommandStack stack, Command c, int detail)
stack
- the command stackc
- a command or null
detail
- an integer identifierMethod Detail |
public Command getCommand()
null
or a Command if a command is relevant to the current event.
null
or a commandpublic int getDetail()
|
Eclipse GEF 3.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |