|
|
|
@ -102,18 +102,12 @@ public class FormArea extends JComponent implements ScrollRulerComponent {
|
|
|
|
|
} |
|
|
|
|
this.setFocusTraversalKeysEnabled(false); |
|
|
|
|
this.designer.addMouseWheelListener(showValSpinnerMouseWheelListener); |
|
|
|
|
initMobileAttrModifiedListener(); |
|
|
|
|
widthPane.setEnabled(!jForm.getTarget().getFormMobileAttr().isMobileOnly()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initMobileAttrModifiedListener() { |
|
|
|
|
if (jForm == null) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
jForm.addTargetModifiedListener(new TargetModifiedListener() { |
|
|
|
|
@Override |
|
|
|
|
public void targetModified(TargetModifiedEvent e) { |
|
|
|
|
public void onMobileAttrModified() { |
|
|
|
|
FormMobileAttr formMobileAttr = jForm.getTarget().getFormMobileAttr(); |
|
|
|
|
if (formMobileAttr.isMobileOnly() && Math.abs(widthPane.getValue() - MOBILE_ONLY_WIDTH) > 0.0000001) { |
|
|
|
|
if (formMobileAttr.isMobileOnly()) { |
|
|
|
|
widthPane.setValue(MOBILE_ONLY_WIDTH); |
|
|
|
|
changeWidthPaneValue(MOBILE_ONLY_WIDTH); |
|
|
|
|
heightPane.setValue(MOBILE_ONLY_HEIGHT); |
|
|
|
@ -121,9 +115,6 @@ public class FormArea extends JComponent implements ScrollRulerComponent {
|
|
|
|
|
} |
|
|
|
|
widthPane.setEnabled(!formMobileAttr.isMobileOnly()); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
widthPane.setEnabled(!jForm.getTarget().getFormMobileAttr().isMobileOnly()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
MouseWheelListener showValSpinnerMouseWheelListener = new MouseWheelListener() { |
|
|
|
|
@Override |
|
|
|
|