|
|
|
@ -181,15 +181,20 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void clearTitleWidget() { |
|
|
|
|
if (acceptType(XWFitLayout.class)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
XWTitleLayout parent = (XWTitleLayout) this.getParent(); |
|
|
|
|
if (parent.getComponentCount() > 1) { |
|
|
|
|
parent.remove(parent.getTitleCreator()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
private void clearTitleWidget() { |
|
|
|
|
if (acceptType(XWFitLayout.class)) { |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
XWTitleLayout parent = (XWTitleLayout) this.getParent(); |
|
|
|
|
if (parent.getComponentCount() > 1) { |
|
|
|
|
parent.remove(parent.getTitleCreator()); |
|
|
|
|
WTitleLayout layout = parent.toData(); |
|
|
|
|
Rectangle rec = new Rectangle(layout.getBodyBoundsWidget().getBounds()); |
|
|
|
|
//删除标题组件后,容器高度为body高度+标题组件的高度
|
|
|
|
|
rec.height += WTitleLayout.TITLE_HEIGHT; |
|
|
|
|
layout.updateChildBounds(rec); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 设置样式为标题样式时,对应组件加上标题 |
|
|
|
|