Class ToolGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
Tool.MyGui

public class ToolGui extends Gui
Generated source of a graphical user interface (GUI) for command line processing.
The parallel data model class is ToolOptions.
The normal way of operation is:
  1. Create a fresh instance of the GUI for one particular model by invoking makeInstance(Model).
  2. Let the user edit the widgets of the GUI by integrating it into an interactive Swing window architecture.
  3. (The state of the gui can any times be reset by model2view(Model).)
  4. Whenever a GUI interaction in this architecture requires some "action", copy the new values of the GUI into some Model object by invoking view2model(Model) and process them as usual.
For further details see the documentation of the methods inherited from super class Gui and to the user documentation.
Created on 2024-11-24_11h57m19
by program bandm/metatools/option/compiler, version 2.1
command line =
java bandm/metatools/option/compiler toolOptions.xml eu.bandm.tools.dtm ToolOptions ToolGui $(HOME)/metatools/src
See Also:
  • Field Details

  • Constructor Details

    • ToolGui

      protected ToolGui()
  • Method Details

    • getModel

      public ToolOptions getModel()
      Description copied from class: Gui
      Overriden by generated code. Gives access to the corresponding Model object.
      Specified by:
      getModel in class Gui
    • makeInstance

      public ToolGui makeInstance(Model model0)
      Description copied from class: Gui
      Overriden by generated code. Creates all fields and initializes them.
      Specified by:
      makeInstance in class Gui
    • set_model

      public void set_model(ToolOptions model0)
    • populate

      public void populate()
      Description copied from class: Gui
      Callback function, overriden by generated code. Inserts the different labels and input widgets for options and their arguments into this. Does not yet fill in values.
      Specified by:
      populate in class Gui
    • model2view

      public void model2view(Model xmodel)
      Description copied from class: Gui
      Overriden by generated code. Copies all argumenta values from Model to GUI.
      Specified by:
      model2view in class Gui
    • view2model

      public void view2model(Model xmodel)
      Description copied from class: Gui
      Overriden by generated code. Copies all argumenta values from GUI to Model.
      Specified by:
      view2model in class Gui