|
|
@ -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() { |
|
|
|