|
|
@ -1140,6 +1140,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection |
|
|
|
public boolean isCurrentComponentMovableUp() { |
|
|
|
public boolean isCurrentComponentMovableUp() { |
|
|
|
XCreator creator = getSelectionModel().getSelection().getSelectedCreator(); |
|
|
|
XCreator creator = getSelectionModel().getSelection().getSelectedCreator(); |
|
|
|
Container container = creator.getParent(); |
|
|
|
Container container = creator.getParent(); |
|
|
|
|
|
|
|
if (container == null) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
return creator.isMovable() && container.getComponentZOrder(creator) > 0; |
|
|
|
return creator.isMovable() && container.getComponentZOrder(creator) > 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -1147,6 +1150,9 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection |
|
|
|
public boolean isCurrentComponentMovableDown() { |
|
|
|
public boolean isCurrentComponentMovableDown() { |
|
|
|
XCreator creator = getSelectionModel().getSelection().getSelectedCreator(); |
|
|
|
XCreator creator = getSelectionModel().getSelection().getSelectedCreator(); |
|
|
|
Container container = creator.getParent(); |
|
|
|
Container container = creator.getParent(); |
|
|
|
|
|
|
|
if (container == null) { |
|
|
|
|
|
|
|
return false; |
|
|
|
|
|
|
|
} |
|
|
|
return creator.isMovable() && container.getComponentZOrder(creator) < container.getComponentCount() - 1; |
|
|
|
return creator.isMovable() && container.getComponentZOrder(creator) < container.getComponentCount() - 1; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|