java.lang.Object
de.zocher_regel.util.UtilInterpreter
This class executes commands of the setting menu.
Interpreters of other menus should inherit this class and execute
super.interprete.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected final PathStart a dialog to ask for the directory.protected final PathchooseFile(KeyAble keyAble, String initialFileName, Path path, String title, javafx.stage.FileChooser.ExtensionFilter... fcExtFilters) Start a dialog to choose a file.protected voidhelp()Copyright, disclaimer and so on.protected voidinitProperties(boolean clear) Load the properties from the properties file or reset them to default.protected booleanInterpret a command with parameters.protected final voidPerform the instructions passed as parameter in foreground or background.
-
Felddetails
-
appl
The application (Main) of this module. -
cmd
The current command (@see Setting) with its parameters.
-
-
Konstruktordetails
-
UtilInterpreter
Construct UtilInterpreter for this module.- Parameter:
appl- the application (Main) of this module
-
-
Methodendetails
-
chooseDir
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 directorytitle- 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 nullpath- in batch processing absolute path of the filetitle- shown in panelfcExtFilters- 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
Interpret a command with parameters.- Parameter:
cmd- command with optional parameters- Gibt zurück:
- whether the command has been executed.
-
perform
Perform the instructions passed as parameter in foreground or background.- Parameter:
runnable- the instructions to be performed
-