|
|
@ -9,7 +9,6 @@ import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.mainframe.chart.AbstractChartAttrPane; |
|
|
|
import com.fr.design.mainframe.chart.AbstractChartAttrPane; |
|
|
|
import com.fr.design.mainframe.chart.PaneTitleConstants; |
|
|
|
import com.fr.design.mainframe.chart.PaneTitleConstants; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
@ -28,29 +27,42 @@ public class ExtendedOtherPane extends AbstractChartAttrPane { |
|
|
|
private UISpinner autoRefreshTime; |
|
|
|
private UISpinner autoRefreshTime; |
|
|
|
private JPanel contentPane; |
|
|
|
private JPanel contentPane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected AbstractChart getAbstractChart(Chart chart) { |
|
|
|
|
|
|
|
if (chart != null && chart instanceof AbstractChart) { |
|
|
|
|
|
|
|
return (AbstractChart) chart; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void populate(ChartCollection collection) { |
|
|
|
public void populate(ChartCollection collection) { |
|
|
|
if (collection != null) { |
|
|
|
if (collection == null || collection.getSelectedChart() == null) { |
|
|
|
Chart chart = collection.getSelectedChart(); |
|
|
|
return; |
|
|
|
if (chart != null && chart instanceof AbstractChart) { |
|
|
|
} |
|
|
|
hyperLinkPane.populateBean((AbstractChart) chart); |
|
|
|
|
|
|
|
autoRefreshTime.setValue(((AbstractChart) chart).getAutoRefreshTime()); |
|
|
|
AbstractChart chart = getAbstractChart(collection.getSelectedChart()); |
|
|
|
refreshEnabled.setSelectedIndex(((AbstractChart) chart).isRefreshEnabled() ? 0 : 1); |
|
|
|
|
|
|
|
checkRefreshEnable(); |
|
|
|
if (chart != null) { |
|
|
|
} |
|
|
|
hyperLinkPane.populateBean(chart); |
|
|
|
|
|
|
|
autoRefreshTime.setValue(chart.getAutoRefreshTime()); |
|
|
|
|
|
|
|
refreshEnabled.setSelectedIndex(chart.isRefreshEnabled() ? 0 : 1); |
|
|
|
|
|
|
|
checkRefreshEnable(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void update(ChartCollection collection) { |
|
|
|
public void update(ChartCollection collection) { |
|
|
|
if (collection != null) { |
|
|
|
if (collection == null || collection.getSelectedChart() == null) { |
|
|
|
Chart chart = collection.getSelectedChart(); |
|
|
|
return; |
|
|
|
if (chart != null && chart instanceof AbstractChart) { |
|
|
|
} |
|
|
|
hyperLinkPane.updateBean((AbstractChart) chart); |
|
|
|
|
|
|
|
((AbstractChart) chart).setAutoRefreshTime(autoRefreshTime.getValue()); |
|
|
|
AbstractChart chart = getAbstractChart(collection.getSelectedChart()); |
|
|
|
((AbstractChart) chart).setRefreshEnabled(refreshEnabled.getSelectedIndex() == 0); |
|
|
|
|
|
|
|
} |
|
|
|
if (chart != null) { |
|
|
|
|
|
|
|
hyperLinkPane.updateBean(chart); |
|
|
|
|
|
|
|
chart.setAutoRefreshTime(autoRefreshTime.getValue()); |
|
|
|
|
|
|
|
chart.setRefreshEnabled(refreshEnabled.getSelectedIndex() == 0); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|