|
|
|
@ -27,7 +27,7 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void styleSelectBoxChange() { |
|
|
|
|
customPane.setVisible(styleSelectBox.getSelectedIndex() != 0); |
|
|
|
|
getCustomPane().setVisible(getStyleSelectBox().getSelectedIndex() != 0); |
|
|
|
|
super.styleSelectBoxChange(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -49,8 +49,8 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe
|
|
|
|
|
protected Component[][] contentPaneComponents() { |
|
|
|
|
return new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Match_Color_Scheme")), styleSelectBox}, |
|
|
|
|
new Component[]{null, customPane}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Match_Color_Scheme")), getStyleSelectBox()}, |
|
|
|
|
new Component[]{null, getCustomPane()}, |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -61,14 +61,14 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe
|
|
|
|
|
|
|
|
|
|
public void populateBean(AttrFillStyle condition) { |
|
|
|
|
if (condition.isPredefinedStyle()) { |
|
|
|
|
styleSelectBox.setSelectType(ColorSchemeComboBox.SelectType.DEFAULT); |
|
|
|
|
getStyleSelectBox().setSelectType(ColorSchemeComboBox.SelectType.DEFAULT); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
populateBean(condition.getColorFillStyle()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void updateBean(AttrFillStyle attrFillStyle) { |
|
|
|
|
if (styleSelectBox.getSelectedIndex() == 0) { |
|
|
|
|
if (getStyleSelectBox().getSelectedIndex() == 0) { |
|
|
|
|
attrFillStyle.setPredefinedStyle(true); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
@ -83,7 +83,7 @@ public class VanChartFillStylePane extends ColorFillStylePane implements Designe
|
|
|
|
|
AttrFillStyle attrFillStyle = new AttrFillStyle(); |
|
|
|
|
updateBean(attrFillStyle); |
|
|
|
|
|
|
|
|
|
styleSelectBox.refresh(); |
|
|
|
|
getStyleSelectBox().refresh(); |
|
|
|
|
|
|
|
|
|
populateBean(attrFillStyle); |
|
|
|
|
GUICoreUtils.repaint(this); |
|
|
|
|