All Packages Class Hierarchy This Package Previous Next Index
Class CH.ifa.draw.util.Command
java.lang.Object
|
+----CH.ifa.draw.util.Command
- public abstract class Command
- extends Object
Commands encapsulate an action to be executed. Commands have
a name and can be used in conjunction with Command enabled
ui components.
Design Patterns
Command
Command is a simple instance of the command pattern without undo
support.
- See Also:
- CommandButton, CommandMenu, CommandChoice
-
Command(String)
- Constructs a command with the given name.
-
execute()
- Executes the command.
-
isExecutable()
- Tests if the command can be executed.
-
name()
- Gets the command name.
Command
public Command(String name)
- Constructs a command with the given name.
execute
public abstract void execute()
- Executes the command.
isExecutable
public boolean isExecutable()
- Tests if the command can be executed.
name
public String name()
- Gets the command name.
All Packages Class Hierarchy This Package Previous Next Index