java.lang.Object
javafx.application.Application
cc.wanforme.ofx.BaseOFXApplication
public abstract class BaseOFXApplication
extends javafx.application.Application
-
嵌套类概要
从类继承的嵌套类/接口 javafx.application.Application
javafx.application.Application.Parameters -
字段概要
从类继承的字段 javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected voiddo something after stage.show()static org.springframework.context.ConfigurableApplicationContextvoidinit()static voidlaunchOFX(Class<? extends BaseOFXApplication> app, Class<?> springApp, Class<? extends BaseView> mainView, String[] args) launch application ( SpringBoot and FXApplication )protected abstract voidscene(javafx.scene.Scene scene) custom style for scene
自定义场景的设置和样式protected abstract voidstage(javafx.stage.Stage primaryStage) custom style for primary stage 自定义舞台的设置和样式voidstart(javafx.stage.Stage pStage) protected org.springframework.context.ConfigurableApplicationContextstartSpringApp(Class<?> clazz, String[] args) 启动 spring 程序从类继承的方法 javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
构造器详细资料
-
BaseOFXApplication
public BaseOFXApplication() -
BaseOFXApplication
-
-
方法详细资料
-
launchOFX
public static void launchOFX(Class<? extends BaseOFXApplication> app, Class<?> springApp, Class<? extends BaseView> mainView, String[] args) launch application ( SpringBoot and FXApplication )- 参数:
app-mainView-args-
-
init
- 覆盖:
init在类中javafx.application.Application- 抛出:
Exception
-
start
- 指定者:
start在类中javafx.application.Application- 抛出:
Exception
-
startSpringApp
protected org.springframework.context.ConfigurableApplicationContext startSpringApp(Class<?> clazz, String[] args) 启动 spring 程序 -
scene
protected abstract void scene(javafx.scene.Scene scene) custom style for scene
自定义场景的设置和样式- 参数:
scene-
-
stage
protected abstract void stage(javafx.stage.Stage primaryStage) custom style for primary stage 自定义舞台的设置和样式- 参数:
primaryStage-
-
afterShow
protected void afterShow()do something after stage.show() -
getSpringContext
public static org.springframework.context.ConfigurableApplicationContext getSpringContext()
-