Browse Source

在使用form的时候发现form里面的图表编辑面板不能正常加载,重新修改下加载图表编辑面板加载的位置

master
mengao 8 years ago
parent
commit
8d64d45fc3
  1. 4
      designer/src/com/fr/quickeditor/ChartQuickEditor.java
  2. 2
      designer_chart/src/com/fr/design/mainframe/MiddleChartPropertyPane.java

4
designer/src/com/fr/quickeditor/ChartQuickEditor.java

@ -45,10 +45,8 @@ public class ChartQuickEditor extends QuickEditor<TargetComponent>{
element = ((ElementCasePane)tc).getEditingElementCase().getFloatElement(fs.getSelectedFloatName());
}
collection = (BaseChartCollection) element.getValue();
String plotID=((ChartCollection)collection).getSelectedChart().getPlot().getPlotID();
add(editingPropertyPane = DesignModuleFactory.getChartPropertyPane(), BorderLayout.CENTER);
editingPropertyPane.addChartEditPane(plotID);
editingPropertyPane.setSupportCellData(true);
}
editingPropertyPane.populateChartPropertyPane(collection, tc);
}

2
designer_chart/src/com/fr/design/mainframe/MiddleChartPropertyPane.java

@ -87,6 +87,8 @@ public abstract class MiddleChartPropertyPane extends BaseChartPropertyPane{
* @param ePane 面板
*/
public void populateChartPropertyPane(ChartCollection collection, TargetComponent<?> ePane) {
addChartEditPane(collection.getSelectedChart().getPlot().getPlotID());
setSupportCellData(true);
this.container.setEPane(ePane);
chartEditPane.populate(collection);
}

Loading…
Cancel
Save