|
|
|
@ -1337,6 +1337,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
// 当前选中控件可以上移一层吗?
|
|
|
|
|
public boolean isCurrentComponentMovableUp() { |
|
|
|
|
XCreator creator = getSelectionModel().getSelection().getSelectedCreator(); |
|
|
|
|
if (null == creator) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
XLayoutContainer container = (XLayoutContainer) creator.getParent(); |
|
|
|
|
if (container == null || !container.supportInnerOrderChangeActions()) { |
|
|
|
|
return false; |
|
|
|
@ -1347,6 +1350,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection
|
|
|
|
|
// 当前选中控件可以下移一层吗?
|
|
|
|
|
public boolean isCurrentComponentMovableDown() { |
|
|
|
|
XCreator creator = getSelectionModel().getSelection().getSelectedCreator(); |
|
|
|
|
if (creator == null) { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
XLayoutContainer container = (XLayoutContainer) creator.getParent(); |
|
|
|
|
if (container == null || !container.supportInnerOrderChangeActions()) { |
|
|
|
|
return false; |
|
|
|
|