From c25e38e5f6c9db1260c5fdfe9e40388e8c0a805c Mon Sep 17 00:00:00 2001 From: mengao <283296419@qq.com> Date: Mon, 17 Apr 2017 21:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=B7=E8=BE=BE=E5=9B=BE=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E8=87=AA=E5=AE=9A=E4=B9=89=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E6=9C=80=E5=B0=8F=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/chart/gui/data/TableDataPane.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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); } } + /** * 更新界面属性 */