Module platform

Interface Command

All Known Implementing Classes:
APIApplication, APIRunner, BackboneVisualizer, BallStickVisualizer, ButtonWidget, CLIApplication, CommandItem, EditTool, EventAdapter, ExplorerFactory, HelpExplorerFactory, HighlighterImpl.Unhighlight, HttpResponse, HttpServerProject, IMP, Job, LabelRenderer, LabelRenderer.LabelData, Layout, LockProtectedCommand, LSystem.Apply, NewProject, NewRGG, OptionExplorerFactory, PanelFactory, ProjectExplorerFactory, RemoteClientImpl, RGG.Apply, SpaceFilledVisualizer, SynchronousCommand, ToolBarFactory, UIApplication, WidgetAdapter, XLinLineRunner, XLMacro

public interface Command
A Command is an object which can be executed by a set of methods of a JobManager.
Author:
Ole Kniemeyer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Command
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a name which can be used in the graphical user interface to represent this command.
    void
    run(Object info, Context context)
    Performs the actions of this command.
  • Field Details

    • DISPOSE

      static final Command DISPOSE
  • Method Details

    • getCommandName

      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(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 argument
      context - a context