Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.utils / src / main / java / org / gvsig / utils / swing / wizard / WizardControl.java @ 40561

History | View | Annotate | Download (2.42 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
package org.gvsig.utils.swing.wizard;
25

    
26
/**
27
 * Visi?n que tienen los escuchadores de eventos sobre el Wizard
28
 *
29
 * @author Fernando Gonz?lez Cort?s
30
 */
31
public interface WizardControl {
32
        /**
33
         * Activa el paso al siguiente paso del asistente
34
         *
35
         * @param enabled si se habilita o no
36
         */
37
        public abstract void enableNext(boolean enabled);
38

    
39
        /**
40
         * Activa el paso al paso anterior del asistente
41
         *
42
         * @param enabled si se habilita o no
43
         */
44
        public abstract void enableBack(boolean enabled);
45

    
46
        /**
47
         * Muestra el panel del siguiente paso del asistente
48
         */
49
        public abstract void nextStep();
50

    
51
        /**
52
         * Muestra el panel del paso anterior del asistente
53
         */
54
        public abstract void backStep();
55

    
56
        /**
57
         * Se cancela el asistente. Esta operaci?n no tiene ning?n efecto, salvo
58
         * que se disparar? el evento de cancelado. El resultado de esto depender?
59
         * de las implementaciones que haya escuchando el evento. Generalmente
60
         * deber? haber un objeto que al escuchar este evento cerrar? el
61
         * asistente.
62
         */
63
        public abstract void cancel();
64

    
65
        /**
66
         * Se finaliza el asistente. Esta operaci?n no tiene ning?n efecto, salvo
67
         * que se disparar? el evento de finalizaci?n. El resultado de esto
68
         * depender? de las implementaciones que haya escuchando el evento.
69
         * Generalmente deber? haber un objeto que al escuchar este evento cerrar?
70
         * el asistente.
71
         */
72
        public abstract void finish();
73

    
74
        /**
75
         * Obtiene el paso actual del asistente
76
         *
77
         * @return Paso actual del asistente
78
         */
79
        public abstract Step getCurrentStep();
80
}