Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.utils / src / main / java / org / gvsig / utils / listManager / ListManagerListener.java @ 40561

History | View | Annotate | Download (1.8 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.listManager;
25

    
26
/**
27
 * Interfaz listener de los eventos que lanza el control listManager
28
 *
29
 * @author Fernando Gonz?lez Cort?s
30
 */
31
public interface ListManagerListener {
32
    /**
33
     * Invocado cuando se pulsa el bot?n de a?adir, deber? retornar el objeto
34
     * que se a?ade y se mostrar? en la lista el resultado de su m?todo
35
     * toString(). Si implementa la interfaz Propertiable se habilitar? el
36
     * control Properties cuando se seleccione dicho elemento
37
     *
38
     * @return Objetos que se a?ade.
39
     */
40
    public Object[] addObjects();
41

    
42
    /**
43
     * Invocado cuando se selecciona un elemento Propertiable de la lista y
44
     * luego se pincha en el boton de propiedades
45
     *
46
     * @param selected Objeto seleccionado
47
     *
48
     * @return retornar? las propiedades de dicho objeto
49
     */
50
    public Object getProperties(Object selected);
51
}