public interface UIProvider
DefaultUIProvider class, but you
can provide a custom implementation to alter the appearance of the loader UI.
Implement this interface and make sure to embed the classes inside the fxlauncher.jar
right around the "embed manifest" step. You have to do this manually as there is no function
in the plugin to support this yet. Basically you have to do the following two steps:
1. Copy the implementation classes into the fxlauncher.jar
2. Create META-INF/services/fxlauncher.UIProvider inside the fxlauncher.jar. The content must
be a string with the fully qualified name of your implementation class.
Typical example:
| Modifier and Type | Method and Description |
|---|---|
javafx.scene.Parent |
createLoader()
Create the Node that will be displayed while the launcher is loading resources,
before the update process starts.
|
javafx.scene.Parent |
createUpdater(FXManifest manifest)
Create the Node that will be displayed while the launcher is updating resources.
|
void |
init(javafx.stage.Stage stage)
Initialization method called before
createLoader()
and createUpdater(FXManifest). |
void |
updateProgress(double progress)
Called when the update/download progress is changing.
|
void init(javafx.stage.Stage stage)
createLoader()
and createUpdater(FXManifest). This is a good place to add
stylesheets and perform other configuration.stage - The stage that will be used to contain the loader and updater.javafx.scene.Parent createLoader()
javafx.scene.Parent createUpdater(FXManifest manifest)
updateProgress(double)
method is called.updateProgress(double)void updateProgress(double progress)
progress - A number between 0 and 1Copyright © 2018 SYSE. All rights reserved.