Browse Source

REPORT-53175【10.0.18】组件背景分离为标题/背景/边框

组件样式优化后,期望用户通过组件样式面板中的标题来替换
图表内部的标题,因此新创建的图表组件默认显示组件标题
feature/10.0
Starryi 4 years ago
parent
commit
8da18889b1
  1. 12
      designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

12
designer-form/src/main/java/com/fr/design/designer/creator/XBorderStyleWidgetCreator.java

@ -47,8 +47,16 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{
public AbstractBorderStyleWidget toData() {
return (AbstractBorderStyleWidget) data;
}
protected void initStyle() {
@Override
protected void addToWrapper(XLayoutContainer parentPanel, int width, int minHeight) {
super.addToWrapper(parentPanel, width, minHeight);
// REPORT-53175: 新创建的图表组件默认显示标题 since 10.0.18
// 将当前对象添加到父容器后,初始化默认样式的效果
initStyle();
}
protected void initStyle() {
BorderPacker style = toData().getBorderStyle();
initBorderStyle();
if (ComparatorUtils.equals(style.getType(), LayoutBorderStyle.TITLE)) {

Loading…
Cancel
Save