SEdit
Class Command
java.lang.Object
SEdit.Command
- All Implemented Interfaces:
- Executable
- Direct Known Subclasses:
- FunctionCommand, MethodCallCommand, NewArrowCommand, NewNodeCommand, SelectionCommand
public class Command
- extends java.lang.Object
- implements Executable
The description of an action that might be requested on a whole
structure or on a single element (node or arrow). Usually defined
in the formalism file
Field Summary |
protected java.lang.String |
action
|
protected java.lang.String |
desc
|
protected java.lang.String |
icon
|
Constructor Summary |
Command()
|
Command(java.lang.String value)
|
Command(java.lang.String value,
java.lang.String description)
|
Command(java.lang.String value,
java.lang.String description,
java.lang.String iconlocation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
action
protected java.lang.String action
desc
protected java.lang.String desc
icon
protected java.lang.String icon
Command
public Command()
Command
public Command(java.lang.String value)
Command
public Command(java.lang.String value,
java.lang.String description)
Command
public Command(java.lang.String value,
java.lang.String description,
java.lang.String iconlocation)
getAction
public java.lang.String getAction()
getDescription
public java.lang.String getDescription()
getIcon
public java.lang.String getIcon()
hasDescription
public boolean hasDescription()
hasIcon
public boolean hasIcon()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
execute
public void execute()
- Description copied from interface:
Executable
- This method executes the command.
- Specified by:
execute
in interface Executable
Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.