gluon-mobile - Gluon Afterburner Presenter.initialize() 未调用
问题描述
存储库链接:https ://gitlab.com/RichardGladman/medimindr
我使用 IntelliJ 插件使用 Afterburner 项目创建了一个新的多视图,并向该项目添加了一个新视图。它显示了一些关于我认为很容易的信息。该视图显示得很好,但 AboutPresenter 未初始化意味着 AppBar 未填充。
演示者类
package com.thefifthcontinent.medimindr.views;
... imports snipped ...
public class AboutPresenter extends GluonPresenter<MediMindr> {
@FXML
private View about;
public void initialize() {
about.showingProperty().addListener((obs, oldValue, newValue) -> {
if (newValue) {
AppBar appBar = getApp().getAppBar();
appBar.setNavIcon(MaterialDesignIcon.MENU.button(e ->
getApp().getDrawer().open()));
appBar.setTitleText("About");
}
});
}
}
AppViewManager 中的创建
public static final AppView ABOUT_VIEW = view(
bundle.getString("drawer.about"),
AboutPresenter.class,
MaterialDesignIcon.DASHBOARD,
SHOW_IN_DRAWER);
我看不出我所做的和项目创建的有什么区别。
解决方案
事实证明它们仍然在 pom.xml 中配置。我认为这将是使用 Afterburner 的自动喷射。
推荐阅读
- c# - MVC .NET - 将多个模型传递给剃刀视图
- angularjs - Angularjs 和 moment.js - angularjs 没有显示正确的日期
- html - 导致奇怪外观的框架文本
- mysql - 如何分组并计算组的平均值
- mysql - Tornado websockets 与 mysql 和 redis
- scala - 如何在scala中模拟包含实用程序函数的目标文件
- angular - Angular CLI 两个捆绑包(一个用于生产,第二个用于开发)
- vuejs2 - 错误:使用 Element UI 文档示例在组件中未定义渲染函数或模板
- javascript - 在 Node.js Express 和 Passport.js 身份验证后 res.redirect 不起作用
- django - Django:使用户 is_active = False