svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.exportto / org.gvsig.exportto.swing / org.gvsig.exportto.swing.prov / org.gvsig.exportto.swing.prov.jdbc / src / main / java / org / gvsig / exportto / swing / prov / jdbc / panel / UpdateTableStatisticsPanel.java @ 41642
History | View | Annotate | Download (1.44 KB)
1 | 41638 | jjdelcerro | |
---|---|---|---|
2 | package org.gvsig.exportto.swing.prov.jdbc.panel; |
||
3 | |||
4 | import javax.swing.JComponent; |
||
5 | import org.gvsig.exportto.swing.prov.jdbc.ExporttoJDBCOptions; |
||
6 | import org.gvsig.exportto.swing.spi.ExporttoPanelValidationException; |
||
7 | import org.gvsig.exportto.swing.spi.ExporttoSwingProviderPanel; |
||
8 | import org.gvsig.tools.ToolsLocator; |
||
9 | import org.gvsig.tools.i18n.I18nManager; |
||
10 | |||
11 | |||
12 | public class UpdateTableStatisticsPanel extends UpdateTableStatisticsPanelLayout implements ExporttoSwingProviderPanel { |
||
13 | private static final long serialVersionUID = -8450431632002084194L; |
||
14 | |||
15 | private ExporttoJDBCOptions provider;
|
||
16 | |||
17 | public UpdateTableStatisticsPanel(ExporttoJDBCOptions provider) {
|
||
18 | this.provider = provider;
|
||
19 | initComponents(); |
||
20 | } |
||
21 | |||
22 | private void initComponents() { |
||
23 | this.chkUpdateStatisticsTableAfterInserts.setEnabled(true); |
||
24 | this.chkUpdateStatisticsTableAfterInserts.setSelected(true); |
||
25 | } |
||
26 | |||
27 | public String getPanelTitle() { |
||
28 | I18nManager i18nManager = ToolsLocator.getI18nManager(); |
||
29 | 41642 | jjdelcerro | return i18nManager.getTranslation("update_table_statistics"); |
30 | 41638 | jjdelcerro | } |
31 | |||
32 | public boolean isValidPanel() throws ExporttoPanelValidationException { |
||
33 | return true; |
||
34 | } |
||
35 | |||
36 | public void enterPanel() { |
||
37 | // Default do nothing
|
||
38 | } |
||
39 | |||
40 | public JComponent asJComponent() { |
||
41 | return this; |
||
42 | } |
||
43 | |||
44 | public boolean getUpdateTableStatistics() { |
||
45 | return this.chkUpdateStatisticsTableAfterInserts.isSelected(); |
||
46 | } |
||
47 | } |