Class TethysUIFXLaunchState
java.lang.Object
io.github.tonywasher.joceanus.tethys.javafx.launch.util.TethysUIFXLaunchState
- All Implemented Interfaces:
TethysUIFXBaseState
State for javaFX program.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidattachToStage(javafx.stage.Stage pStage) Attach to stage.voidCreate the main panel.voidCreate an FXSplash.Obtain 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
Description copied from interface:TethysUIFXBaseStateObtain the program definitions.- Specified by:
getProgramDefinitionsin interfaceTethysUIFXBaseState- Returns:
- the program definitions
-
createSplash
public void createSplash()Description copied from interface:TethysUIFXBaseStateCreate an FXSplash.- Specified by:
createSplashin interfaceTethysUIFXBaseState
-
startPreLoader
public void startPreLoader(javafx.stage.Stage pStage) Description copied from interface:TethysUIFXBaseStateStart the preLoader.- Specified by:
startPreLoaderin interfaceTethysUIFXBaseState- Parameters:
pStage- the preLoader stage
-
createMain
Description copied from interface:TethysUIFXBaseStateCreate the main panel.- Specified by:
createMainin interfaceTethysUIFXBaseState- Throws:
OceanusException- on error
-
startMain
public void startMain(javafx.stage.Stage pStage) Description copied from interface:TethysUIFXBaseStateStart the main panel.- Specified by:
startMainin interfaceTethysUIFXBaseState- 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) Description copied from interface:TethysUIFXBaseStatehandle the state notification change.- Specified by:
handleStateChangeNotificationin interfaceTethysUIFXBaseState- Parameters:
pEvent- the event
-