Browse Source

将旧的面板换成新的面板

research/11.0
fly.li 3 years ago
parent
commit
6d4045543f
  1. 16
      designer-realize/src/main/java/com/fr/design/actions/report/ReportEngineAttrAction.java

16
designer-realize/src/main/java/com/fr/design/actions/report/ReportEngineAttrAction.java

@ -1,14 +1,12 @@
package com.fr.design.actions.report;
import com.fr.base.svg.IconUtils;
import com.fr.design.actions.ReportComponentAction;
import com.fr.design.dialog.BasicDialog;
import com.fr.design.dialog.DialogActionAdapter;
import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.WorkSheetDesigner;
import com.fr.design.menu.KeySetUtils;
import com.fr.design.report.LayerReportPane;
import com.fr.design.report.LayerReportEnginePane;
import com.fr.report.worksheet.WorkSheet;
public class ReportEngineAttrAction extends ReportComponentAction<WorkSheetDesigner> {
@ -19,7 +17,7 @@ public class ReportEngineAttrAction extends ReportComponentAction<WorkSheetDesig
this.setName(getMenuKeySet().getMenuKeySetName() + "...");
this.setMnemonic(getMenuKeySet().getMnemonic());
this.setSmallIcon("/com/fr/design/images/m_report/reportEngineAttr");
this.generateAndSetSearchText(LayerReportPane.class.getName());
this.generateAndSetSearchText(LayerReportEnginePane.class.getName());
}
@ -37,21 +35,19 @@ public class ReportEngineAttrAction extends ReportComponentAction<WorkSheetDesig
}
final WorkSheet tplEC = jws.getTemplateReport();
final LayerReportPane layerReportPane = new LayerReportPane(tplEC);
layerReportPane.populateBean(tplEC.getLayerReportAttr());
BasicDialog dialog = layerReportPane.showWindow(DesignerContext.getDesignerFrame());
final LayerReportEnginePane layerReportEnginePane = new LayerReportEnginePane(tplEC);
layerReportEnginePane.populateBean(tplEC.getLayerReportAttr());
BasicDialog dialog = layerReportEnginePane.showWindow(DesignerContext.getDesignerFrame());
isChange = false;
dialog.addDialogActionListener(new DialogActionAdapter() {
@Override
public void doOk() {
isChange = true;
tplEC.setLayerReportAttr(layerReportPane.updateBean());
tplEC.setLayerReportAttr(layerReportEnginePane.updateBean());
}
});
dialog.setVisible(true);
return isChange;
}

Loading…
Cancel
Save