|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Command
Commands encapsulate an action to be executed. Commands have a name and can be used in conjunction with Command enabled ui components.
Command
Command is a simple instance of the command pattern without undo
support.
CommandButton
,
CommandMenu
,
CommandChoice
Method Summary | |
---|---|
void |
addCommandListener(CommandListener newCommandListener)
|
void |
execute()
Executes the command. |
DrawingEditor |
getDrawingEditor()
|
Undoable |
getUndoActivity()
|
boolean |
isExecutable()
Tests if the command can be executed. |
java.lang.String |
name()
Gets the command name. |
void |
removeCommandListener(CommandListener oldCommandListener)
|
void |
setUndoActivity(Undoable newUndoableActivity)
|
Method Detail |
---|
void execute()
boolean isExecutable()
java.lang.String name()
DrawingEditor getDrawingEditor()
Undoable getUndoActivity()
void setUndoActivity(Undoable newUndoableActivity)
void addCommandListener(CommandListener newCommandListener)
void removeCommandListener(CommandListener oldCommandListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |