Revision 37780 branches/v2_0_0_prep/libraries/org.gvsig.exportto/org.gvsig.exportto.swing/org.gvsig.exportto.swing.impl/src/main/java/org/gvsig/exportto/swing/impl/wizard/DefaultWizardContainer.java

View differences:

DefaultWizardContainer.java
31 31
import org.gvsig.gui.beans.wizard.panel.NotContinueWizardException;
32 32
import org.gvsig.gui.beans.wizard.panel.OptionPanel;
33 33

  
34

  
35 34
/**
36 35
 * @author gvSIG Team
37 36
 * @version $Id$
38
 *
37
 * 
39 38
 */
40
public class DefaultWizardContainer implements OptionPanel{
41
    private static final Logger LOG =
42
        LoggerFactory.getLogger(DefaultWizardContainer.class);
43
    
39
public class DefaultWizardContainer implements OptionPanel {
40

  
41
    private static final Logger LOG = LoggerFactory
42
        .getLogger(DefaultWizardContainer.class);
43

  
44 44
    private ExporttoSwingProviderPanel exporttoSwingProviderPanel = null;
45
        
45

  
46 46
    public DefaultWizardContainer(
47 47
        ExporttoSwingProviderPanel exporttoSwingProviderPanel) {
48 48
        super();
49 49
        this.exporttoSwingProviderPanel = exporttoSwingProviderPanel;
50 50
    }
51 51

  
52
    public String getPanelTitle() {      
52
    public String getPanelTitle() {
53 53
        return exporttoSwingProviderPanel.getPanelTitle();
54 54
    }
55 55

  
56 56
    public void nextPanel() throws NotContinueWizardException {
57 57
        try {
58
            if (!this.exporttoSwingProviderPanel.isValidPanel()){
59
                throw new NotContinueWizardException("Error validating the form", exporttoSwingProviderPanel, false);
58
            if (!this.exporttoSwingProviderPanel.isValidPanel()) {
59
                throw new NotContinueWizardException(
60
                    "Error validating the form", exporttoSwingProviderPanel,
61
                    false);
60 62
            }
61 63
        } catch (ExporttoPanelValidationException e) {
62 64
            LOG.error("Error validating the form", e);
63
            throw new NotContinueWizardException("Error validating the form", e, exporttoSwingProviderPanel);
64
        }        
65
            throw new NotContinueWizardException("Error validating the form",
66
                e, exporttoSwingProviderPanel);
67
        }
65 68
    }
66 69

  
67 70
    public void lastPanel() {
68 71
        // TODO Auto-generated method stub
69
        
72

  
70 73
    }
71 74

  
72 75
    public void updatePanel() {
73
        
76

  
74 77
    }
75 78

  
76 79
    public JPanel getJPanel() {

Also available in: Unified diff