Browse Source

populate之前init面板让组件没有listener。typepane先和stylepane逻辑统一,dev里面我不init面板,只是把所有listener remove掉,这样比较合理

master
fr_shine 8 years ago
parent
commit
76a69cd25e
  1. 4
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

4
designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

@ -300,8 +300,12 @@ public class ChartTypePane extends AbstractChartAttrPane{
*/ */
public void populate(ChartCollection collection) { public void populate(ChartCollection collection) {
Chart chart = collection.getSelectedChart(); Chart chart = collection.getSelectedChart();
this.remove(leftContentPane);
initContentPane();
this.removeAttributeChangeListener();
buttonPane.populateBean(collection); buttonPane.populateBean(collection);
chartTypePane.populateBean(chart); chartTypePane.populateBean(chart);
this.initAllListeners();
} }
/** /**

Loading…
Cancel
Save