Klasse UtilInterpreter

java.lang.Object
de.zocher_regel.util.UtilInterpreter

public class UtilInterpreter extends Object
This class executes commands of the setting menu. Interpreters of other menus should inherit this class and execute super.interprete.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    protected final UtilAppl
    The application (Main) of this module.
    protected Cmd
    The current command (@see Setting) with its parameters.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Construct UtilInterpreter for this module.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    protected final Path
    chooseDir(KeyAble keyAble, Path path, String title)
    Start a dialog to ask for the directory.
    protected final Path
    chooseFile(KeyAble keyAble, String initialFileName, Path path, String title, javafx.stage.FileChooser.ExtensionFilter... fcExtFilters)
    Start a dialog to choose a file.
    protected void
    Copyright, disclaimer and so on.
    protected void
    initProperties(boolean clear)
    Load the properties from the properties file or reset them to default.
    protected boolean
    Interpret a command with parameters.
    protected final void
    perform(Runnable runnable)
    Perform the instructions passed as parameter in foreground or background.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • appl

      protected final UtilAppl appl
      The application (Main) of this module.
    • cmd

      protected Cmd cmd
      The current command (@see Setting) with its parameters.
  • Konstruktordetails

    • UtilInterpreter

      public UtilInterpreter(UtilAppl appl)
      Construct UtilInterpreter for this module.
      Parameter:
      appl - the application (Main) of this module
  • Methodendetails

    • chooseDir

      protected final Path chooseDir(KeyAble keyAble, Path path, String title) throws UtilException
      Start a dialog to ask for the directory. During batch phase the directory is passed as parameter.
      Parameter:
      keyAble - of the setting (the last value chosen)
      path - in batch processing of the directory
      title - shown in panel
      Gibt zurück:
      path of the directory chosen or empty
      Löst aus:
      UtilException - if the path is missing in batch phase
    • chooseFile

      protected final Path chooseFile(KeyAble keyAble, String initialFileName, Path path, String title, javafx.stage.FileChooser.ExtensionFilter... fcExtFilters) throws UtilException
      Start a dialog to choose a file. During batch phase the file is passed as parameter.
      Parameter:
      keyAble - of the setting (the last value chosen)
      initialFileName - may be null
      path - in batch processing absolute path of the file
      title - shown in panel
      fcExtFilters - to filter filenames by extension
      Gibt zurück:
      path of the file or empty
      Löst aus:
      UtilException - if no file has been selected or the file does not exist
    • help

      protected void help()
      Copyright, disclaimer and so on.
    • initProperties

      protected void initProperties(boolean clear)
      Load the properties from the properties file or reset them to default.
      Parameter:
      clear - false: load from properties file, true: reset to defaults
    • interpret

      protected boolean interpret(Cmd cmd)
      Interpret a command with parameters.
      Parameter:
      cmd - command with optional parameters
      Gibt zurück:
      whether the command has been executed.
    • perform

      protected final void perform(Runnable runnable)
      Perform the instructions passed as parameter in foreground or background.
      Parameter:
      runnable - the instructions to be performed