Back to index

moin  1.9.0~rc2
Public Member Functions | Private Attributes
CH.ifa.draw.util.Command Class Reference

Commands encapsulate an action to be executed. More...

Inheritance diagram for CH.ifa.draw.util.Command:
Inheritance graph
[legend]
Collaboration diagram for CH.ifa.draw.util.Command:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Command (String name)
 Constructs a command with the given name.
abstract void execute ()
 Executes the command.
boolean isExecutable ()
 Tests if the command can be executed.
String name ()
 Gets the command name.

Private Attributes

String fName

Detailed Description

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

Definition at line 27 of file Command.java.


Constructor & Destructor Documentation

CH.ifa.draw.util.Command.Command ( String  name) [inline]

Constructs a command with the given name.

Definition at line 34 of file Command.java.

                                {
        fName = name;
    }

Here is the call graph for this function:


Member Function Documentation

abstract void CH.ifa.draw.util.Command.execute ( ) [pure virtual]
String CH.ifa.draw.util.Command.name ( ) [inline]

Gets the command name.

Definition at line 53 of file Command.java.

                         {
        return fName;
    }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 29 of file Command.java.


The documentation for this class was generated from the following file: