java.lang.Object
javafx.application.Application
de.zocher_regel.util.UtilAppl
public abstract class UtilAppl
extends javafx.application.Application
From this class the Main classes of the applications will inherit.
It is the main interface to JavaFX GUI.
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen javafx.application.Application
javafx.application.Application.Parameters -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected UtilInterpreterThe interpreter for commands.protected UtilMenuBarThe menu bar, normally an instance of an implementation of UtilMenuBar.(Package privat) final StringBuilderThe StringBuider for collecting logging messages.Von Klasse geerbte Felder javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected voidAn inheriting application may override this to place special menu entries in the tools menu, e. g.:if(PROP.putIfEmpty(UtilSetting.MenuTools2,"explorer.exe"))refreshNecessary();E. g.protected booleancheckProperty(PropertyEntry propertyEntry) If the property belongs to this package (to UtilSetting), check its value.(Package privat) final voidclearLog()Clear the StringBuffer with logging messages.protected StringThe help for a selected menu depends on the user's language.protected final StringTo a selected menu belongs a special help in the help pane.protected abstract KeyAblegetKeyAbleFromKey(String key) The function that gives the enum instance for its qualified name.protected KeyAblegetKeyAbleFromKeyCode(javafx.scene.input.KeyCode keyCode) Instead of selecting a menu a function key may be pressed.protected static final KeyAblegetKeyAbleFromKeyFunction(String key, Function<String, KeyAble> valueOfFunct) Because enums cannot be inherited, a function gives the enum instance for its name.protected abstract UtilMenuBarApplications using this package have their own menu bar.(Package privat) final javafx.stage.StagegetStage()The application (this class or an implementing Main class) has a GUI with a stage.protected StringgetTitle()The title deplayed in the GUI.protected final voidhandleEvent(javafx.event.Event event) Events that are processed here are menu events and pressed function keys.protected abstract voidCreate and assign the special interpreter of the application which uses this module.final booleanIn batch phase, before the GUI is started, missing parameters cannot be entered in the GUI.final voidrefresh()Refresh the GUI if necessary.final voidNotify when a value displayed in the GUI has changed.final voidsetHelpContentKey(String helpContentKey) If another menu is selected, the help pane should be updated.final voidstart(javafx.stage.Stage stage) voidstop()Von Klasse geerbte Methoden javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet
-
Felddetails
-
interpreter
The interpreter for commands. This is normally an instance of an implementation of UtilInterpreter. -
textSb
The StringBuider for collecting logging messages.
-
-
Konstruktordetails
-
UtilAppl
protected UtilAppl()Create an instance of this class.
-
-
Methodendetails
-
applSpecificUtilMenu
protected void applSpecificUtilMenu()An inheriting application may override this to place special menu entries in the tools menu, e. g.:if(PROP.putIfEmpty(UtilSetting.MenuTools2,"explorer.exe"))refreshNecessary();E. g. Photo application uses GIMP, Irfanview, Riot. -
checkProperty
If the property belongs to this package (to UtilSetting), check its value. This method is called by UtilProperties after loading.- Parameter:
propertyEntry- , i. e. key (enum class name and enum instance name) and value)- Gibt zurück:
- if valid
-
clearLog
final void clearLog()Clear the StringBuffer with logging messages. -
getHelpContent
The help for a selected menu depends on the user's language. (en, de).- Gibt zurück:
- the help fitting the selected menu
-
getHelpContentKey
To a selected menu belongs a special help in the help pane.- Gibt zurück:
- the key (for NLS enabled help) of the selected menu
-
getKeyAbleFromKey
The function that gives the enum instance for its qualified name. It is necessary because setting as enums cannot be inherited- Parameter:
key- is a field used in KeyAble- Gibt zurück:
- the enum instance as KeyAble, which is typically a setting
-
getKeyAbleFromKeyCode
Instead of selecting a menu a function key may be pressed.- Parameter:
keyCode- of the function key pressed- Gibt zurück:
- a menu command KeyAble (Setting)
-
getKeyAbleFromKeyFunction
protected static final KeyAble getKeyAbleFromKeyFunction(String key, Function<String, KeyAble> valueOfFunct) Because enums cannot be inherited, a function gives the enum instance for its name.- Parameter:
key- the qualified enum instance namevalueOfFunct- the function the supplies the enum instance- Gibt zurück:
- the enum instance as KeyAble
-
getMenuBar
Applications using this package have their own menu bar.- Gibt zurück:
- the instance of a descendant of UtilMenuBar
-
getStage
final javafx.stage.Stage getStage()The application (this class or an implementing Main class) has a GUI with a stage.- Gibt zurück:
- the stage if the GUI is already active
-
getTitle
The title deplayed in the GUI.- Gibt zurück:
- the module name as default
-
handleEvent
protected final void handleEvent(javafx.event.Event event) Events that are processed here are menu events and pressed function keys. All other events are ignored. The interpreter is called.- Parameter:
event- like menu selection or function key
-
initInterpreter
protected abstract void initInterpreter()Create and assign the special interpreter of the application which uses this module. -
isInBatchPhase
public final boolean isInBatchPhase()In batch phase, before the GUI is started, missing parameters cannot be entered in the GUI.- Gibt zurück:
- is in batch phase, no GUI is available
-
refresh
public final void refresh()Refresh the GUI if necessary. -
refreshNecessary
public final void refreshNecessary()Notify when a value displayed in the GUI has changed. -
setHelpContentKey
If another menu is selected, the help pane should be updated.- Parameter:
helpContentKey- of the new help content, used für @se UtilNls.
-
start
public final void start(javafx.stage.Stage stage) - Angegeben von:
startin Klassejavafx.application.Application
-
stop
public void stop()- Setzt außer Kraft:
stopin Klassejavafx.application.Application
-