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

Loading…
Cancel
Save