public class CommandStackEvent
extends java.util.EventObject
getDetail(), and comparing the
return value to constants defined by CommandStack.
Warning: this class is not intended to be subclassed.
| Constructor and Description |
|---|
CommandStackEvent(CommandStack stack,
Command c,
int detail)
Constructs a new event instance.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
public CommandStackEvent(CommandStack stack, Command c, int detail)
stack - the command stackc - a command or nulldetail - an integer identifierpublic 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()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.