Browse Source

Merge pull request #521 in BA/design from ~XIAOHU/design:master to master

* commit '812c15435c8a6b7c2d8745031e65474332975bfd':
  时间注册
  update
  图表切换
  update
master
superman 8 years ago
parent
commit
c25230ead3
  1. 5
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypeButtonPane.java
  2. 9
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

5
designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypeButtonPane.java

@ -275,8 +275,9 @@ public class ChartTypeButtonPane extends BasicBeanPane<ChartCollection> implemen
break; break;
} }
} }
if (editChartType != null) { //切换时重新更新整个面板
editChartType.populateBean(editingCollection.getSelectedChart()); if (parent != null) {
parent.populate(editingCollection);
} }
} }
} }

9
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;
} }
/** /**
@ -302,9 +304,12 @@ public class ChartTypePane extends AbstractChartAttrPane{
Chart chart = collection.getSelectedChart(); Chart chart = collection.getSelectedChart();
this.remove(leftContentPane); this.remove(leftContentPane);
initContentPane(); initContentPane();
this.removeAttributeChangeListener();
buttonPane.populateBean(collection); buttonPane.populateBean(collection);
chartTypePane.populateBean(chart); chartTypePane.populateBean(chart);
//remove面板之后,就需要重构下拉框
reactorChartTypePane(collection);
this.initAllListeners(); this.initAllListeners();
} }

Loading…
Cancel
Save