|
|
|
@ -160,7 +160,7 @@ public class XWCardLayout extends XLayoutContainer {
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
protected XLayoutContainer getCreatorWrapper(String widgetName) { |
|
|
|
|
initStyle(); |
|
|
|
|
refreshStylePreviewEffect(); |
|
|
|
|
Dimension dimension = new Dimension(); |
|
|
|
|
//主结构是一个borderlayout, 标签部分是north, card部分为center
|
|
|
|
|
WCardMainBorderLayout border = new WCardMainBorderLayout(); |
|
|
|
@ -389,7 +389,7 @@ public class XWCardLayout extends XLayoutContainer {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void propertyChange() { |
|
|
|
|
initStyle(); |
|
|
|
|
refreshStylePreviewEffect(); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}; |
|
|
|
@ -397,10 +397,10 @@ public class XWCardLayout extends XLayoutContainer {
|
|
|
|
|
|
|
|
|
|
//初始化样式
|
|
|
|
|
@Override |
|
|
|
|
protected void initStyle() { |
|
|
|
|
public void refreshStylePreviewEffect() { |
|
|
|
|
BorderPacker style = toData().getBorderStyle(); |
|
|
|
|
initBorderTitleStyle(style); |
|
|
|
|
initBorderAndBackgroundStyle(); |
|
|
|
|
refreshBorderAndBackgroundStylePreviewEffect(); |
|
|
|
|
clearOrShowTitleLayout(ComparatorUtils.equals(style.getType(), LayoutBorderStyle.TITLE)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -479,7 +479,7 @@ public class XWCardLayout extends XLayoutContainer {
|
|
|
|
|
*/ |
|
|
|
|
@Override |
|
|
|
|
public void firePropertyChange() { |
|
|
|
|
initStyle(); |
|
|
|
|
refreshStylePreviewEffect(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void resetTabBackground(TemplateStyle templateStyle) { |
|
|
|
|