|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| 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
public class 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. |
boolean |
isPostChangeEvent()
Returns true if this event is fired after the stack having
changed. |
boolean |
isPreChangeEvent()
Returns true if this event is fired prior to the stack
changing. |
| 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 nulldetail - an integer identifier| Method Detail |
|---|
public Command getCommand()
null or a Command if a command is relevant to the
current event.
null or a commandpublic final boolean isPreChangeEvent()
true if this event is fired prior to the stack
changing.
true if pre-change eventpublic final boolean isPostChangeEvent()
true if this event is fired after the stack having
changed.
true if post-change eventpublic int getDetail()
|
Eclipse GEF 3.8.0.201206112118 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||