de.grogra.pf.ui
Interface Command
- All Known Implementing Classes:
- ButtonWidget, CommandItem, ExplorerFactory, HttpResponse, HttpServerProject, Layout, LockProtectedCommand, LSystem.Apply, NewProject, NewRGG, OpenAleaCommand, OptionExplorerFactory, PanelFactory, RemoteClientImpl, RGG.Apply, ServerProject, SynchronousCommand, ToolBarFactory, WidgetAdapter
public interface Command
A Command is an object which can be executed
by a set of methods of a JobManager.
- Author:
- Ole Kniemeyer
|
Method Summary |
java.lang.String |
getCommandName()
Returns a name which can be used in the graphical user interface
to represent this command. |
void |
run(java.lang.Object info,
Context context)
Performs the actions of this command. |
DISPOSE
static final Command DISPOSE
getCommandName
java.lang.String getCommandName()
- Returns a name which can be used in the graphical user interface
to represent this command.
- Returns:
- this commands's name
run
void run(java.lang.Object info,
Context context)
- Performs the actions of this command. This method is invoked
by the
JobManager after the command has been submitted
to the job manager by one of execute, runAt,
or runLater-methods. The arguments info
and context are the arguments which have been provided
as arguments to the JobManager-methods.
- Parameters:
info - an argumentcontext - a context