|
|
|
@ -274,13 +274,16 @@ public class NewJForm extends JForm {
|
|
|
|
|
|
|
|
|
|
public UIButton[] createExtraButtons() { |
|
|
|
|
UIButton[] extraButtons = super.createExtraButtons(); |
|
|
|
|
if (mobileForm()) { |
|
|
|
|
return extraButtons; |
|
|
|
|
} |
|
|
|
|
switchAction = new SwitchAction(); |
|
|
|
|
return ArrayUtils.addAll(extraButtons, new UIButton[]{switchAction.getToolBarButton()}); |
|
|
|
|
return addAdaptiveSwitchButton(extraButtons); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private UIButton[] addAdaptiveSwitchButton(UIButton[] extraButtons) { |
|
|
|
|
switchAction = new SwitchAction(); |
|
|
|
|
if (!mobileForm()) { |
|
|
|
|
return ArrayUtils.addAll(extraButtons, new UIButton[]{switchAction.getToolBarButton()}); |
|
|
|
|
} |
|
|
|
|
return extraButtons; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isNewJFrom() { |
|
|
|
|
return jFormType == null || jFormType.isNewType(); |
|
|
|
|