public class CommandStackEvent extends EventObject
ICommandStack
,
ICommandStackListener
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
CommandStackEvent.ID
The command stack event ID allows command stack listeners to distinguish
between different types of command stack events.
|
source
Constructor and Description |
---|
CommandStackEvent(ICommandStack stack,
ICommand command,
CommandStackEvent.ID id)
Creates a new command stack event.
|
CommandStackEvent(ICommandStack stack,
ICommand command,
CommandStackEvent.ID id,
Exception ex)
Creates a new command stack event.
|
Modifier and Type | Method and Description |
---|---|
ICommand |
getCommand()
Returns the command that was executed, undone or redone.
|
Exception |
getCommandException()
Returns an exception, which occurred during the execution time of the
command.
|
ICommandStack |
getCommandStack()
Returns the command stack that was the source of the event.
|
CommandStackEvent.ID |
getId()
Returns an id, which specifies the type of event (command executed,
undone, redone).
|
String |
toString() |
getSource
public CommandStackEvent(ICommandStack stack, ICommand command, CommandStackEvent.ID id, Exception ex)
stack
- the command stack that triggered the event (the source)command
- the command executed/undone/redone via the stackid
- the type of event (executed, undone, redone)ex
- an exception, which might have occurred during the execution
time of the commandpublic CommandStackEvent(ICommandStack stack, ICommand command, CommandStackEvent.ID id)
stack
- the command stack that triggered the event (the source)command
- the command executed/undone/redone via the stackid
- the type of event (executed, undone, redone)public ICommand getCommand()
public ICommandStack getCommandStack()
public CommandStackEvent.ID getId()
public Exception getCommandException()
public String toString()
toString
in class EventObject
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.