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

Loading…
Cancel
Save