Revision 44044 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/export/swing/impl/WizardOptionPanelAdapter.java
WizardOptionPanelAdapter.java | ||
---|---|---|
23 | 23 |
package org.gvsig.export.swing.impl; |
24 | 24 |
|
25 | 25 |
import javax.swing.JPanel; |
26 |
import org.gvsig.export.swing.JExportProcessPanel; |
|
26 | 27 |
import org.gvsig.export.swing.spi.ExportPanel; |
27 | 28 |
import org.gvsig.export.swing.spi.ExportPanelValidationException; |
28 | 29 |
|
... | ... | |
44 | 45 |
private static final Logger LOG = LoggerFactory.getLogger(WizardOptionPanelAdapter.class); |
45 | 46 |
|
46 | 47 |
private final ExportPanel exportPanel; |
48 |
private final DefaultJExportProcessPanel processPanel; |
|
47 | 49 |
|
48 |
public WizardOptionPanelAdapter(ExportPanel exportPanel) { |
|
50 |
public WizardOptionPanelAdapter(DefaultJExportProcessPanel processPanel, ExportPanel exportPanel) {
|
|
49 | 51 |
super(); |
50 | 52 |
this.exportPanel = exportPanel; |
53 |
this.processPanel= processPanel; |
|
51 | 54 |
} |
52 |
|
|
55 |
|
|
53 | 56 |
@Override |
54 | 57 |
public String getPanelTitle() { |
55 | 58 |
return exportPanel.getTitlePanel(); |
... | ... | |
77 | 80 |
); |
78 | 81 |
} |
79 | 82 |
try { |
83 |
this.processPanel.setLastAcction(JExportProcessPanel.BUTTON_NEXT); |
|
80 | 84 |
this.exportPanel.nextPanel(); |
81 | 85 |
} catch (Exception ex) { |
82 | 86 |
LOG.warn("Fail the call to exitPanel.", ex); |
... | ... | |
93 | 97 |
@Override |
94 | 98 |
public void lastPanel() { |
95 | 99 |
try { |
100 |
this.processPanel.setLastAcction(JExportProcessPanel.BUTTON_BACK); |
|
96 | 101 |
this.exportPanel.previousPanel(); |
97 | 102 |
} catch (Exception ex) { |
98 | 103 |
LOG.warn("Fail the call to previousPanel.", ex); |
Also available in: Unified diff