You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.fr.plugin.event.manager.ui;
|
|
|
|
|
|
|
|
import com.fr.design.gui.frpane.LoadingBasicPane;
|
|
|
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 普通报表和表单事件管理器面板的父类
|
|
|
|
* @author Joe
|
|
|
|
* Created by Joe on 12/11/2020
|
|
|
|
*/
|
|
|
|
public abstract class EventManagerPane<T> extends LoadingBasicPane {
|
|
|
|
protected EventConfigPane eventConfigPane;
|
|
|
|
private T target;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void initComponents(JPanel container) {
|
|
|
|
initData(target);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTarget(T target) {
|
|
|
|
this.target = target;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected String title4PopupWindow() {
|
|
|
|
return com.fr.design.i18n.Toolkit.i18nText("Fine-Plugin_Event_Manager_Title");
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 初始化数据
|
|
|
|
*
|
|
|
|
* @param target
|
|
|
|
*/
|
|
|
|
protected abstract void initData(T target);
|
|
|
|
|
|
|
|
public void update() {
|
|
|
|
eventConfigPane.update();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|