svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.newlayer / org.gvsig.newlayer.lib / org.gvsig.newlayer.lib.api / src / main / java / org / gvsig / newlayer / NewLayerProviderPanel.java @ 45564
History | View | Annotate | Download (2.35 KB)
1 |
/*
|
---|---|
2 |
* gvSIG. Desktop Geographic Information System.
|
3 |
*
|
4 |
* Copyright (C) 2007-2020 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, see <https://www.gnu.org/licenses/>.
|
18 |
*
|
19 |
* For any additional information, do not hesitate to contact us
|
20 |
* at info AT gvsig.com, or visit our website www.gvsig.com.
|
21 |
*/
|
22 |
package org.gvsig.newlayer; |
23 |
|
24 |
import org.gvsig.newlayer.spi.NewLayerPanelValidationException; |
25 |
import org.gvsig.tools.swing.api.Component; |
26 |
|
27 |
/**
|
28 |
*
|
29 |
* @author gvSIG Team
|
30 |
*/
|
31 |
public interface NewLayerProviderPanel extends Component { |
32 |
|
33 |
|
34 |
public String getIdPanel(); |
35 |
|
36 |
public String getTitlePanel(); |
37 |
|
38 |
/**
|
39 |
* Este metodo se llamo para comprobar si los datos del panel son coherentes
|
40 |
* y se pueden aceptar.
|
41 |
* Se invoca antes de invocar al metodo "nextPanel".
|
42 |
* Devolvera false en caso de que no se deba abandonar el panel, normalmente
|
43 |
* por que los datos no estan completos. En caso de que se desee presentar un
|
44 |
* mensaje al usuario se podra lanzar la excecion NewLayerPanelValidationException
|
45 |
* indicando en ella el mensaje.
|
46 |
*
|
47 |
* @return true si va todo bien, false si no se debe abandonar el panel.
|
48 |
* @throws NewLayerPanelValidationException
|
49 |
*/
|
50 |
public boolean validatePanel() throws NewLayerPanelValidationException; |
51 |
|
52 |
/**
|
53 |
* Este metodo se llama cada vez que se va a presenta un panel al usuario,
|
54 |
* indistintamente si llego a el por ir hacia delante o hacia atras.
|
55 |
*/
|
56 |
public void enterPanel(); |
57 |
|
58 |
/**
|
59 |
* Este metodo se llama sobre el panel que abandona el usuario cuando
|
60 |
* pulsa en el boton "siguiente".
|
61 |
*/
|
62 |
public void nextPanel(); |
63 |
|
64 |
/**
|
65 |
* Este metodo se llama sobre el panel que abandona el usuario cuando pulsa
|
66 |
* en el boton "anterior".
|
67 |
*/
|
68 |
public void previousPanel(); |
69 |
|
70 |
} |