- java.lang.Object
-
- javafx.application.Application
-
- eu.ess.xaos.app.XAOSApplication
-
- eu.ess.xaos.demos.simple.SimpleApplication
-
public class SimpleApplication extends XAOSApplication
A simple, one-window application.- Author:
- claudio.rosati@esss.se
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javafx.application.Application
Application.Parameters
-
-
Field Summary
-
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA
-
-
Constructor Summary
Constructors Constructor Description SimpleApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
protected void
startApplication(BorderPane sceneRoot)
The main entry point for a XAOS application.-
Methods inherited from class eu.ess.xaos.app.XAOSApplication
getScene, getStage, init, initApplication, start, step, step, stepsBegin, stepsComplete, stepsIndeterminate, stop, stopApplication, subStep
-
Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet
-
-
-
-
Method Detail
-
main
public static void main(String[] args)
-
startApplication
protected void startApplication(BorderPane sceneRoot) throws Exception
Description copied from class:XAOSApplication
The main entry point for a XAOS application. ThestartApplication
method is called after theXAOSApplication.initApplication()
method has returned, and after the system is ready for the application to begin running.Inside this methods
Application.notifyPreloader(PreloaderNotification)
can be invoked to inform thePreloader
of the current startup progress:notifyPreloader(new ProgressNotification(progress));
where
progress
is a number between 0 (started) to 1 (completed).The implementation of this method provided by the
XAOSApplication
class does nothing.Note: Contrarily to the
Application.start(Stage)
method, this one is not called on the JavaFX Application Thread.- Overrides:
startApplication
in classXAOSApplication
- Parameters:
sceneRoot
- TheBorderPane
root container pre-installed in the application'sScene
.- Throws:
Exception
- If something goes wrong.
-
-