|
|
|
@ -180,16 +180,21 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
|
|
|
|
|
this.setBackground4Painting(null, 0.0); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
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); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 设置样式为标题样式时,对应组件加上标题 |
|
|
|
|