Revision 43126 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.ui/src/main/java/org/gvsig/gui/beans/wizard/panel/OptionPanelContainer.java

View differences:

OptionPanelContainer.java
32 32

  
33 33
import javax.swing.JOptionPane;
34 34

  
35
import jwizardcomponent.JWizardComponents;
36 35
import jwizardcomponent.JWizardPanel;
36
import org.gvsig.gui.beans.wizard.WizardPanelWithLogo;
37 37

  
38 38
import org.slf4j.Logger;
39 39
import org.slf4j.LoggerFactory;
......
50 50
public class OptionPanelContainer extends JWizardPanel {
51 51

  
52 52
    private static final long serialVersionUID = 3947658150325230122L;
53
    private static final Logger LOG = LoggerFactory.getLogger(OptionPanelContainer.class);
54

  
53 55
    private OptionPanel optionPanel = null;
54
    private static final Logger log =
55
        LoggerFactory.getLogger(OptionPanelContainer.class);
56

  
57
    public OptionPanelContainer(JWizardComponents wizardComponents,
56
    private WizardPanelWithLogo wizardPanel;
57
    
58
    public OptionPanelContainer(WizardPanelWithLogo wizardPanel,
58 59
        OptionPanel optionPanel) {
59
        super(wizardComponents);
60
        super(wizardPanel.getWizardComponents());
60 61
        this.optionPanel = optionPanel;
62
        this.wizardPanel = wizardPanel;
61 63
        setLayout(new BorderLayout());
62 64
        setBorder(javax.swing.BorderFactory.createCompoundBorder(
63 65
            javax.swing.BorderFactory.createTitledBorder(optionPanel
......
73 75
     */
74 76
    @Override
75 77
    public void back() {
78
        this.wizardPanel.setDirection(WizardPanelWithLogo.ACTION_PREVIOUS);
79
        LOG.debug("WizarPanel '"+this.optionPanel.getPanelTitle()+"' back.");
76 80
        optionPanel.lastPanel();
77 81
        super.back();
78 82
    }
......
85 89
    @Override
86 90
    public void next() {
87 91
        try {
92
            this.wizardPanel.setDirection(WizardPanelWithLogo.ACTION_NEXT);
93
            LOG.debug("WizarPanel '"+this.optionPanel.getPanelTitle()+"' next.");
88 94
            optionPanel.nextPanel();
89 95
            super.next();
90 96
        } catch (NotContinueWizardException e) {
91 97
            // this is not an error and not need to raise a error or
92 98
            // warning in the log.
93
            log.info("It is not possible to continue with the wizard. "+e.displayMessage());
99
            LOG.info("It is not possible to continue with the wizard. "+e.displayMessage());
94 100
            if (e.displayMessage()) {
95 101
                JOptionPane.showMessageDialog(e.getComponent(), e
96 102
                    .getLocalizedMessageStack());
......
105 111
     */
106 112
    @Override
107 113
    public void update() {
114
        LOG.debug("WizarPanel '"+this.optionPanel.getPanelTitle()+"' update, direction "+this.wizardPanel.getDirection()+".");
108 115
        optionPanel.updatePanel();
109 116
        super.update();
110 117
    }

Also available in: Unified diff