java.lang.Object
javafx.application.Application
org.tentackle.fx.rdc.app.FxApplication
- Direct Known Subclasses:
LoginApplication
public abstract class FxApplication
extends javafx.application.Application
Tentackle FX application base class.
Usually the application initially launched is the LoginApplication.
- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters -
Field Summary
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetStopReason(int exitValue, Throwable exitThrowable) Sets the exit value and throwable to be picked up by the stop-method when the last window is closed and stop is not invoked explicitly from within the application with a non-zero exit value.abstract voidshowApplicationStatus(String msg, double progress) Shows the initialization status during application startup.voidstart(javafx.stage.Stage stage) abstract voidstartApplication(javafx.stage.Stage primaryStage) The main entry point for all Tentackle JavaFX applications.voidstop()Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet
-
Constructor Details
-
FxApplication
public FxApplication()Parent constructor.
-
-
Method Details
-
start
public void start(javafx.stage.Stage stage) - Specified by:
startin classjavafx.application.Application
-
setStopReason
Sets the exit value and throwable to be picked up by the stop-method when the last window is closed and stop is not invoked explicitly from within the application with a non-zero exit value.- Parameters:
exitValue- the exit valueexitThrowable- the exit throwable
-
stop
public void stop()- Overrides:
stopin classjavafx.application.Application
-
startApplication
public abstract void startApplication(javafx.stage.Stage primaryStage) The main entry point for all Tentackle JavaFX applications.This is just a replacement for
Application.start(javafx.stage.Stage)to make sure the client application is really implementing this method.- Parameters:
primaryStage- the primary stage
-
showApplicationStatus
Shows the initialization status during application startup.- Parameters:
msg- the message shown in the viewprogress- the progress, 0 to disable, negative if infinite, 1.0 if done
-