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

 o Command
Command is a simple instance of the command pattern without undo support.


See Also:
CommandButton, CommandMenu, CommandChoice

Constructor Index

 o Command(String)
Constructs a command with the given name.

Method Index

 o execute()
Executes the command.
 o isExecutable()
Tests if the command can be executed.
 o name()
Gets the command name.

Constructors

 o Command
 public Command(String name)
Constructs a command with the given name.

Methods

 o execute
 public abstract void execute()
Executes the command.

 o isExecutable
 public boolean isExecutable()
Tests if the command can be executed.

 o name
 public String name()
Gets the command name.


All Packages  Class Hierarchy  This Package  Previous  Next  Index