Browse Source

Merge pull request #906 in BA/design from ~MANGO/design:dev to dev

* commit 'de88676473718e3791828128c4fc2bd141267485':
  在使用form的时候发现form里面的图表编辑面板不能正常加载,重新修改下加载图表编辑面板加载的位置
master
superman 8 years ago
parent
commit
fd1d2d76b4
  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