|
|
@ -1010,15 +1010,7 @@ public class FormDesigner extends TargetComponent<Form> implements TreeSelection |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void refreshCenter(Widget centerWidget, XLayoutContainer formLayoutContainer) { |
|
|
|
private void refreshCenter(Widget centerWidget, XLayoutContainer formLayoutContainer) { |
|
|
|
// 不存在center块, 说明是新建的模板
|
|
|
|
// 不存在center块, 说明是新建的模板(fanglei:大人,时代变了)
|
|
|
|
if (centerWidget == null) { |
|
|
|
|
|
|
|
XLayoutContainer layoutContainer = (XLayoutContainer) XCreatorUtils.createXCreator(new WFitLayout("body")); |
|
|
|
|
|
|
|
layoutContainer.setSize(LARGE_PREFERRED_SIZE); |
|
|
|
|
|
|
|
setRootComponent(layoutContainer); |
|
|
|
|
|
|
|
formLayoutContainer.add(rootComponent, WBorderLayout.CENTER); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
XLayoutContainer centerContainer = (XLayoutContainer) XCreatorUtils.createXCreator(centerWidget); |
|
|
|
XLayoutContainer centerContainer = (XLayoutContainer) XCreatorUtils.createXCreator(centerWidget); |
|
|
|
Dimension d = new Dimension(); |
|
|
|
Dimension d = new Dimension(); |
|
|
|
d.width = ((WFitLayout) centerWidget).getContainerWidth(); |
|
|
|
d.width = ((WFitLayout) centerWidget).getContainerWidth(); |
|
|
|