|
|
@ -70,11 +70,15 @@ public class ReportFitAttrAction extends JTemplateAction { |
|
|
|
UIDialog dialog = attrPane.showWindowWithCustomSize(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { |
|
|
|
UIDialog dialog = attrPane.showWindowWithCustomSize(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void doOk() { |
|
|
|
public void doOk() { |
|
|
|
wbTpl.setReportFitAttr(attrPane.updateBean()); |
|
|
|
fireEditingOk(jwb, wbTpl, attrPane.updateBean(), fitAttr); |
|
|
|
jwb.fireTargetModified(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, DesignSizeI18nManager.getInstance().i18nDimension("com.fr.design.report.fit.templatePane.dialog")); |
|
|
|
}, DesignSizeI18nManager.getInstance().i18nDimension("com.fr.design.report.fit.templatePane.dialog")); |
|
|
|
dialog.setVisible(true); |
|
|
|
dialog.setVisible(true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void fireEditingOk(final JTemplate jwb, final FitProvider wbTpl, ReportFitAttr newReportFitAttr, ReportFitAttr oldReportFitAttr) { |
|
|
|
|
|
|
|
wbTpl.setReportFitAttr(newReportFitAttr); |
|
|
|
|
|
|
|
jwb.fireTargetModified(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|