Browse Source

图表切换

master
Fangjie Hu 8 years ago
parent
commit
c7313ff1e6
  1. 7
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

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

@ -291,8 +291,10 @@ public class ChartTypePane extends AbstractChartAttrPane{
paneState.setPaneState(collection.getState()); paneState.setPaneState(collection.getState());
} }
// TODO: 2016/11/17 因为现在populate面板时会重新构造面板,所以每次都需要重构
private boolean needReactor(ChartCollection collection) { private boolean needReactor(ChartCollection collection) {
return paneState.getChartID() != collection.getRepresentChartID() || paneState.getPaneState() != collection.getState(); /*return paneState.getChartID() != collection.getRepresentChartID() || paneState.getPaneState() != collection.getState();*/
return true;
} }
/** /**
@ -305,6 +307,9 @@ public class ChartTypePane extends AbstractChartAttrPane{
this.removeAttributeChangeListener(); this.removeAttributeChangeListener();
buttonPane.populateBean(collection); buttonPane.populateBean(collection);
chartTypePane.populateBean(chart); chartTypePane.populateBean(chart);
//remove面板之后,就需要重构下拉框
reactorChartTypePane(collection);
this.initAllListeners(); this.initAllListeners();
} }

Loading…
Cancel
Save