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