Class OptionsGui

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class OptionsGui extends Gui
Generated source of a graphical user interface (GUI) for command line processing.
The parallel data model class is Options.
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_12h00m35
by program bandm/metatools/option/compiler, version 2.1
command line =
java bandm/metatools/option/compiler d2dOptions.xml eu.bandm.tools.d2d2.base Options OptionsGui $(HOME)/metatools/src
See Also:
  • Field Details

  • Constructor Details

    • OptionsGui

      protected OptionsGui()
  • Method Details

    • getModel

      public Options 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 OptionsGui 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(Options 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
    • displayActive

      protected void displayActive()
      Description copied from class: Gui
      Will be overridden by the generated code. Sets some options to active and others to inactive, depending on the rules and the current states of arguments.
      Overrides:
      displayActive in class Gui