|
|
|
@ -16,6 +16,7 @@ import com.fr.design.utils.ComponentUtils;
|
|
|
|
|
import com.fr.env.utils.DesignerInteractionHistory; |
|
|
|
|
import com.fr.form.ui.container.WAbsoluteLayout; |
|
|
|
|
import com.fr.form.ui.container.WAbsoluteLayout.BoundsWidget; |
|
|
|
|
import com.fr.form.ui.container.WBorderLayout; |
|
|
|
|
|
|
|
|
|
import java.awt.*; |
|
|
|
|
|
|
|
|
@ -130,10 +131,9 @@ public abstract class AccessDirection implements Direction {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private WAbsoluteLayout getLayout(final FormDesigner designer) { |
|
|
|
|
XLayoutContainer formLayoutContainer = (XLayoutContainer) XCreatorUtils.createXCreator( |
|
|
|
|
designer.getTarget().getContainer()); |
|
|
|
|
WAbsoluteLayout layout; |
|
|
|
|
if (formLayoutContainer.acceptType(XWBorderLayout.class)) {//看起来这边的作用应该是为了区别cpt(得到XWParameterLayout)还是frm(得到XWBorderLayout)的参数界面
|
|
|
|
|
//看起来这边的作用应该是为了区别cpt(得到XWParameterLayout)还是frm(得到XWBorderLayout)的参数界面
|
|
|
|
|
if (designer.getTarget().getContainer().acceptType(WBorderLayout.class)) { |
|
|
|
|
Container container = designer.getSelectionModel().getSelection().getSelectedCreator().getParent(); |
|
|
|
|
if (container instanceof XWAbsoluteLayout) { |
|
|
|
|
layout = ((XWAbsoluteLayout) container).toData(); |
|
|
|
|