|
|
@ -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(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|