Files
contract-manager/src/main/java/com/ecep/contract/manager/ui/AbstManagerWindowController.java
danyz 8135acf16a feat: 添加功能模块相关字段和界面优化
- 在FUNC表中添加CONTROLLER、ICON和DESCRIPTION字段
- 重构角色管理相关类名和路径
- 优化公司表格单元格显示逻辑
- 添加功能权限管理界面
- 优化日志配置和FXML文件引用
- 移除冗余代码和注释
2025-08-23 18:39:05 +08:00

47 lines
1.3 KiB
Java

package com.ecep.contract.manager.ui;
import com.ecep.contract.manager.ds.other.model.IdentityEntity;
import com.ecep.contract.manager.ds.other.vo.IdentityViewModel;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.stage.WindowEvent;
public abstract class AbstManagerWindowController<T extends IdentityEntity, TV extends IdentityViewModel<T>, Skin extends ManagerSkin>
extends AbstEntityBasedController<T, TV, Skin> {
// searcher
@FXML
public TextField searchKeyField;
@FXML
public Button searchBtn;
@FXML
public HBox footer;
// paging
@FXML
public Button previousPageBtn;
@FXML
public Button nextPageBtn;
@FXML
public TextField currentPageNumberField;
@Override
public void onShown(WindowEvent windowEvent) {
// fixed fx:include uninitialized issue
previousPageBtn = (Button) footer.lookup("#previousPageBtn");
nextPageBtn = (Button) footer.lookup("#nextPageBtn");
currentPageNumberField = (TextField) footer.lookup("#currentPageNumberField");
leftStatusLabel = (Label) footer.lookup("#leftStatusLabel");
//
super.onShown(windowEvent);
}
}