public abstract class AbstractJavaFxApplicationSupport
extends javafx.application.Application
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractJavaFxApplicationSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeInitialView(javafx.stage.Stage stage,
org.springframework.context.ConfigurableApplicationContext ctx)
Gets called after full initialization of Spring application context
and JavaFX platform right before the initial view is shown.
|
void |
beforeShowingSplash(javafx.stage.Stage splashStage) |
static javafx.application.HostServices |
getAppHostServices() |
static javafx.scene.Scene |
getScene() |
static javafx.stage.Stage |
getStage() |
static SystemTray |
getSystemTray() |
void |
init() |
static void |
launch(Class<? extends javafx.application.Application> appClass,
Class<? extends AbstractFxmlView> view,
SplashScreen splashScreen,
String[] args)
Launch app.
|
static void |
launch(Class<? extends javafx.application.Application> appClass,
Class<? extends AbstractFxmlView> view,
String[] args)
Launch app.
|
static void |
launchApp(Class<? extends javafx.application.Application> appClass,
Class<? extends AbstractFxmlView> view,
SplashScreen splashScreen,
String[] args)
Deprecated.
To be more in line with javafx.application please use launch
|
static void |
launchApp(Class<? extends javafx.application.Application> appClass,
Class<? extends AbstractFxmlView> view,
String[] args)
Deprecated.
To be more in line with javafx.application please use launch
|
Collection<javafx.scene.image.Image> |
loadDefaultIcons() |
protected static void |
setTitle(String title)
Sets the title.
|
static void |
showView(Class<? extends AbstractFxmlView> newView)
Show view.
|
static void |
showView(Class<? extends AbstractFxmlView> window,
javafx.stage.Modality mode) |
void |
start(javafx.stage.Stage stage) |
void |
stop() |
public static javafx.stage.Stage getStage()
public static javafx.scene.Scene getScene()
public static javafx.application.HostServices getAppHostServices()
public static SystemTray getSystemTray()
public static void showView(Class<? extends AbstractFxmlView> window, javafx.stage.Modality mode)
window - The FxmlView derived class that should be shown.mode - See javafx.stage.Modality.public void init()
throws Exception
init in class javafx.application.ApplicationExceptionpublic void start(javafx.stage.Stage stage)
throws Exception
start in class javafx.application.ApplicationExceptionpublic static void showView(Class<? extends AbstractFxmlView> newView)
newView - the new viewpublic void stop()
throws Exception
stop in class javafx.application.ApplicationExceptionprotected static void setTitle(String title)
title - the new titlepublic static void launch(Class<? extends javafx.application.Application> appClass, Class<? extends AbstractFxmlView> view, String[] args)
appClass - the app classview - the viewargs - the args@Deprecated public static void launchApp(Class<? extends javafx.application.Application> appClass, Class<? extends AbstractFxmlView> view, String[] args)
appClass - the app classview - the viewargs - the argspublic static void launch(Class<? extends javafx.application.Application> appClass, Class<? extends AbstractFxmlView> view, SplashScreen splashScreen, String[] args)
appClass - the app classview - the viewsplashScreen - the splash screenargs - the args@Deprecated public static void launchApp(Class<? extends javafx.application.Application> appClass, Class<? extends AbstractFxmlView> view, SplashScreen splashScreen, String[] args)
appClass - the app classview - the viewsplashScreen - the splash screenargs - the argspublic void beforeInitialView(javafx.stage.Stage stage,
org.springframework.context.ConfigurableApplicationContext ctx)
By default noop.
stage - can be used to customize the stage before being displayedctx - represents spring ctx where you can loog for beans.public void beforeShowingSplash(javafx.stage.Stage splashStage)
public Collection<javafx.scene.image.Image> loadDefaultIcons()
Copyright © 2018. All rights reserved.