Browse Source

由于report的elementCaseMobileAttrProvider没有改好,form里面菜单弹窗先屏蔽防止报错

master
fanglei 8 years ago
parent
commit
3036113ec5
  1. 34
      designer_form/src/com/fr/design/mainframe/actions/FormMobileAttrAction.java

34
designer_form/src/com/fr/design/mainframe/actions/FormMobileAttrAction.java

@ -35,23 +35,23 @@ public class FormMobileAttrAction extends JTemplateAction<JForm> {
*/ */
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
final JForm jf = getEditingComponent(); // final JForm jf = getEditingComponent();
if (jf == null) { // if (jf == null) {
return; // return;
} // }
final Form formTpl = jf.getTarget(); // final Form formTpl = jf.getTarget();
ElementCaseMobileAttr mobileAttr = formTpl.getReportMobileAttr(); // ElementCaseMobileAttr mobileAttr = formTpl.getReportMobileAttr();
//
final FormMobileAttrPane mobileAttrPane = new FormMobileAttrPane(); // final FormMobileAttrPane mobileAttrPane = new FormMobileAttrPane();
mobileAttrPane.populateBean(mobileAttr); // mobileAttrPane.populateBean(mobileAttr);
BasicDialog dialog = mobileAttrPane.showWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() { // BasicDialog dialog = mobileAttrPane.showWindow(DesignerContext.getDesignerFrame(), new DialogActionAdapter() {
@Override // @Override
public void doOk() { // public void doOk() {
formTpl.setReportMobileAttr(mobileAttrPane.updateBean()); // formTpl.setReportMobileAttr(mobileAttrPane.updateBean());
jf.fireTargetModified(); // jf.fireTargetModified();
} // }
}); // });
dialog.setVisible(true); // dialog.setVisible(true);
} }
private static final MenuKeySet REPORT_APP_ATTR = new MenuKeySet() { private static final MenuKeySet REPORT_APP_ATTR = new MenuKeySet() {

Loading…
Cancel
Save