Statistics
| Revision:

root / trunk / applications / appgvSIG / src / com / iver / cit / gvsig / project / documents / table / ObjectSelectionStep.java @ 11877

History | View | Annotate | Download (904 Bytes)

1 7304 caballero
package com.iver.cit.gvsig.project.documents.table;
2
3
import com.iver.utiles.swing.objectSelection.ObjectSelection;
4
import com.iver.utiles.swing.wizard.Step;
5
import com.iver.utiles.swing.wizard.WizardControl;
6
7
8
/**
9
 * Control ObjectSelection como paso de un asistente
10
 *
11
 * @author Fernando Gonz?lez Cort?s
12
 */
13
public class ObjectSelectionStep extends ObjectSelection implements Step {
14
15
    private WizardControl w;
16
17
        /**
18
         * @see com.iver.utiles.swing.wizard.Step#init(com.iver.utiles.swing.wizard.Wizard)
19
         */
20
        public void init(WizardControl w) {
21
                this.w = w;
22
        }
23
24
        /**
25
         * @see com.iver.utiles.swing.objectSelection.ObjectSelection#seleccion()
26
         */
27
        protected void seleccion() {
28
                if (w != null) {
29
                        w.enableNext(getCombo().getSelectedIndex() != -1);
30
                }
31
        }
32
33
        /**
34
         * Obtiene el elemento seleccionado
35
         *
36
         * @return
37
         */
38
        public Object getSelectedItem() {
39
                return getCombo().getSelectedItem();
40
        }
41
}