Class FXInstance
java.lang.Object
madkit.internal.FXInstance
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic voidsetHeadlessMode(boolean inhibit) If set totrue, the application will run in headless mode and will not start the JavaFX application.static voidsetStarted(boolean isStarted) static voidStarts the JavaFX application if it is not already started and not in headless mode.
-
Method Details
-
startFX
Starts the JavaFX application if it is not already started and not in headless mode.- Parameters:
logger- the logger to use
-
setHeadlessMode
public static void setHeadlessMode(boolean inhibit) If set totrue, the application will run in headless mode and will not start the JavaFX application. It will inhibit the JavaFX initialization and calls toFXExecutor.runLater(Runnable)andFXExecutor.runAndWait(Runnable)This is useful for running the application in environments that do not support JavaFX.- Parameters:
inhibit-trueto set headless mode
-
isStarted
public static boolean isStarted()- Returns:
- the isStarted
-
setStarted
public static void setStarted(boolean isStarted) - Parameters:
isStarted- the isStarted to set
-
isHeadlessMode
public static boolean isHeadlessMode()- Returns:
- the headlessMode
-