Browse Source

REPORT-55243:将JStreamBook换成JWorkBook

research/11.0
fly.li 3 years ago
parent
commit
310e77f355
  1. 10
      designer-realize/src/main/java/com/fr/nx/app/designer/menu/CalculateAttrAction.java

10
designer-realize/src/main/java/com/fr/nx/app/designer/menu/CalculateAttrAction.java

@ -6,18 +6,18 @@ import com.fr.design.beans.BasicBeanPane;
import com.fr.design.dialog.DialogActionAdapter; import com.fr.design.dialog.DialogActionAdapter;
import com.fr.design.dialog.UIDialog; import com.fr.design.dialog.UIDialog;
import com.fr.design.mainframe.DesignerContext; import com.fr.design.mainframe.DesignerContext;
import com.fr.design.mainframe.JWorkBook;
import com.fr.design.menu.MenuKeySet; import com.fr.design.menu.MenuKeySet;
import com.fr.locale.InterProviderFactory; import com.fr.locale.InterProviderFactory;
import com.fr.main.impl.WorkBook; import com.fr.main.impl.WorkBook;
import com.fr.nx.app.designer.JStreamBook;
import com.fr.plugin.attr.CalculatorAttrMark; import com.fr.plugin.attr.CalculatorAttrMark;
import javax.swing.KeyStroke; import javax.swing.KeyStroke;
import java.awt.event.ActionEvent; import java.awt.event.ActionEvent;
public class CalculateAttrAction extends JTemplateAction<JStreamBook> { public class CalculateAttrAction extends JTemplateAction<JWorkBook> {
public CalculateAttrAction(JStreamBook jTemplate) { public CalculateAttrAction(JWorkBook jTemplate) {
super(jTemplate); super(jTemplate);
initMenuStyle(); initMenuStyle();
} }
@ -35,7 +35,7 @@ public class CalculateAttrAction extends JTemplateAction<JStreamBook> {
* @param e 事件 * @param e 事件
*/ */
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
final JStreamBook jwb = getEditingComponent(); final JWorkBook jwb = getEditingComponent();
if (jwb == null) { if (jwb == null) {
return; return;
} }
@ -45,7 +45,7 @@ public class CalculateAttrAction extends JTemplateAction<JStreamBook> {
showReportFitDialog(mark, jwb, workBook, attrPane); showReportFitDialog(mark, jwb, workBook, attrPane);
} }
private void showReportFitDialog(CalculatorAttrMark mark, final JStreamBook jwb, final WorkBook workBook, final BasicBeanPane<CalculatorAttrMark> attrPane) { private void showReportFitDialog(CalculatorAttrMark mark, final JWorkBook jwb, final WorkBook workBook, final BasicBeanPane<CalculatorAttrMark> attrPane) {
attrPane.populateBean(mark); attrPane.populateBean(mark);
UIDialog dialog = attrPane.showMediumWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { UIDialog dialog = attrPane.showMediumWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() {
@Override @Override

Loading…
Cancel
Save