|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.util.Command
public abstract class 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
Constructor Summary | |
---|---|
Command(java.lang.String name)
Constructs a command with the given name. |
Method Summary | |
---|---|
abstract void |
execute()
Executes the command. |
boolean |
isExecutable()
Tests if the command can be executed. |
java.lang.String |
name()
Gets the command name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Command(java.lang.String name)
Method Detail |
---|
public abstract void execute()
public boolean isExecutable()
public java.lang.String name()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |