diff --git a/designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java b/designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java index 849d3c1c8..3e1b6e0af 100644 --- a/designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java +++ b/designer_chart/src/com/fr/design/mainframe/chart/gui/data/TableDataPane.java @@ -22,16 +22,12 @@ public class TableDataPane extends FurtherBasicBeanPane{ private static final long serialVersionUID = 4740461028440155147L; private static final int TOP = -5; private DatabaseTableDataPane tableDataPane; - protected AbstractTableDataContentPane dataContentPane; + private AbstractTableDataContentPane dataContentPane; - public AbstractTableDataContentPane getDataContentPane() { + protected AbstractTableDataContentPane getDataContentPane() { return dataContentPane; } - public void setDataContentPane(AbstractTableDataContentPane dataContentPane) { - this.dataContentPane = dataContentPane; - } - private ChartDataPane parent; public TableDataPane(ChartDataPane parent) { @@ -112,15 +108,20 @@ public class TableDataPane extends FurtherBasicBeanPane{ * @param collection 图表属性的集合 */ public void refreshContentPane(ChartCollection collection) { + refreshContentPane(getContentPane(collection.getSelectedChart().getPlot())); + } + + protected void refreshContentPane(AbstractTableDataContentPane contentPane) { if(dataContentPane != null) { remove(dataContentPane); } - dataContentPane = getContentPane(collection.getSelectedChart().getPlot()); + dataContentPane = contentPane; if(dataContentPane != null) { add(dataContentPane, BorderLayout.CENTER); } } + /** * 更新界面属性 */