java.lang.Object
fxlauncher.DefaultUIProvider
- All Implemented Interfaces:
UIProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.scene.ParentCreate the Node that will be displayed while the launcher is loading resources, before the update process starts.javafx.scene.ParentcreateUpdater(FXManifest manifest) Create the Node that will be displayed while the launcher is updating resources.voidinit(javafx.stage.Stage stage) Initialization method called beforeUIProvider.createLoader()andUIProvider.createUpdater(FXManifest).voidupdateProgress(double progress) Called when the update/download progress is changing.
-
Constructor Details
-
DefaultUIProvider
public DefaultUIProvider()
-
-
Method Details
-
createLoader
public javafx.scene.Parent createLoader()Description copied from interface:UIProviderCreate the Node that will be displayed while the launcher is loading resources, before the update process starts. The default implementation is an intdeterminate progress indicator, but you can return any arbitrary scene graph.- Specified by:
createLoaderin interfaceUIProvider- Returns:
- The launcher UI
-
createUpdater
Description copied from interface:UIProviderCreate the Node that will be displayed while the launcher is updating resources. This Node should update it's display whenever theUIProvider.updateProgress(double)method is called.- Specified by:
createUpdaterin interfaceUIProvider- Returns:
- The updater Node
- See Also:
-
updateProgress
public void updateProgress(double progress) Description copied from interface:UIProviderCalled when the update/download progress is changing. The progress is a value between 0 and 1, indicating the completion rate of the update process.- Specified by:
updateProgressin interfaceUIProvider- Parameters:
progress- A number between 0 and 1
-
init
public void init(javafx.stage.Stage stage) Description copied from interface:UIProviderInitialization method called beforeUIProvider.createLoader()andUIProvider.createUpdater(FXManifest). This is a good place to add stylesheets and perform other configuration.- Specified by:
initin interfaceUIProvider- Parameters:
stage- The stage that will be used to contain the loader and updater.
-