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