Class TethysUIFXLaunchState
java.lang.Object
io.github.tonywasher.joceanus.tethys.javafx.launch.util.TethysUIFXLaunchState
State for javaFX program.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceSet state interface. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachToStage(javafx.stage.Stage pStage) Attach to stage.voidInitialise the main program.voidCreate an FXSplash.(package private) TethysUIProgramObtain the program definitions.voidhandleStateChangeNotification(javafx.application.Preloader.StateChangeNotification pEvent) handle the state notification change.voidstartMain(javafx.stage.Stage pStage) Start the main panel.voidstartPreLoader(javafx.stage.Stage pStage) Start the preLoader.
-
Constructor Details
-
TethysUIFXLaunchState
Constructor.- Parameters:
pProgram- the program- Throws:
OceanusException- on error
-
-
Method Details
-
getProgramDefinitions
TethysUIProgram getProgramDefinitions()Obtain the program definitions.- Returns:
- the program definitions
-
createSplash
public void createSplash()Create an FXSplash. -
startPreLoader
public void startPreLoader(javafx.stage.Stage pStage) Start the preLoader.- Parameters:
pStage- the preLoader stage
-
createMain
Initialise the main program.- Throws:
OceanusException- on error
-
startMain
public void startMain(javafx.stage.Stage pStage) Start the main panel.- Parameters:
pStage- the main stage
-
attachToStage
protected void attachToStage(javafx.stage.Stage pStage) Attach to stage.- Parameters:
pStage- the stage
-
handleStateChangeNotification
public void handleStateChangeNotification(javafx.application.Preloader.StateChangeNotification pEvent) handle the state notification change.- Parameters:
pEvent- the event
-