CH.ifa.draw.util
Class Command
- java.lang.Object
-
- CH.ifa.draw.util.Command
-
- Direct Known Subclasses:
- AlignCommand, BringToFrontCommand, ChangeAttributeCommand, CopyCommand, CutCommand, DeleteCommand, DuplicateCommand, GroupCommand, InsertImageCommand, PasteCommand, SendToBackCommand, ToggleGridCommand, UngroupCommand
public abstract class Command extends java.lang.ObjectCommands 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
-
-
Constructor Summary
Constructors Constructor and Description Command(java.lang.String name)Constructs a command with the given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract voidexecute()Executes the command.booleanisExecutable()Tests if the command can be executed.java.lang.Stringname()Gets the command name.
-
DataMelt 3.0 © DataMelt by jWork.ORG