Statistics
| Revision:

svn-gvsig-desktop / trunk / extensions / extWFS2 / src / com / iver / cit / gvsig / gui / panels / WFSParamsPanel.java @ 8220

History | View | Annotate | Download (15.2 KB)

1 4886 jorpiell
package com.iver.cit.gvsig.gui.panels;
2
3
import java.awt.event.FocusEvent;
4
import java.awt.event.FocusListener;
5 8018 jorpiell
import java.io.ObjectInputStream.GetField;
6 4886 jorpiell
import java.util.prefs.Preferences;
7
8
import javax.swing.JTabbedPane;
9
10 5948 jorpiell
import org.gvsig.remoteClient.wfs.WFSStatus;
11
12 4886 jorpiell
import com.iver.andami.PluginServices;
13
import com.iver.cit.gvsig.fmap.drivers.wfs.FMapWFSDriver;
14
import com.iver.cit.gvsig.fmap.layers.FLayer;
15 5300 jorpiell
import com.iver.cit.gvsig.fmap.layers.FLyrWFS;
16 4886 jorpiell
import com.iver.cit.gvsig.fmap.layers.WFSLayerNode;
17
import com.iver.cit.gvsig.gui.WizardPanel;
18
import com.iver.cit.gvsig.gui.wizards.WFSWizardData;
19 5948 jorpiell
import com.iver.cit.gvsig.gui.wizards.WizardListener;
20 4886 jorpiell
import com.iver.cit.gvsig.gui.wizards.WizardListenerSupport;
21
22
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
23
 *
24
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
25
 *
26
 * This program is free software; you can redistribute it and/or
27
 * modify it under the terms of the GNU General Public License
28
 * as published by the Free Software Foundation; either version 2
29
 * of the License, or (at your option) any later version.
30
 *
31
 * This program is distributed in the hope that it will be useful,
32
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
33
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
34
 * GNU General Public License for more details.
35
 *
36
 * You should have received a copy of the GNU General Public License
37
 * along with this program; if not, write to the Free Software
38
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
39
 *
40
 * For more information, contact:
41
 *
42
 *  Generalitat Valenciana
43
 *   Conselleria d'Infraestructures i Transport
44
 *   Av. Blasco Ib??ez, 50
45
 *   46010 VALENCIA
46
 *   SPAIN
47
 *
48
 *      +34 963862235
49
 *   gvsig@gva.es
50
 *      www.gvsig.gva.es
51
 *
52
 *    or
53
 *
54
 *   IVER T.I. S.A
55
 *   Salamanca 50
56
 *   46005 Valencia
57
 *   Spain
58
 *
59
 *   +34 963163400
60
 *   dac@iver.es
61
 */
62
/* CVS MESSAGES:
63
 *
64
 * $Id$
65
 * $Log$
66 8220 jorpiell
 * Revision 1.16  2006-10-23 07:37:04  jorpiell
67
 * Ya funciona el filterEncoding
68 8144 jorpiell
 *
69
 * Revision 1.14  2006/10/13 13:05:32  ppiqueras
70 8078 ppiqueras
 * Permite el refrescado de datos del panel de filtrado sobre capa WFS.
71
 *
72
 * Revision 1.13  2006/10/10 12:55:06  jorpiell
73 8018 jorpiell
 * Se ha a?adido el soporte de features complejas
74
 *
75
 * Revision 1.12  2006/10/02 09:17:48  jorpiell
76 7723 jorpiell
 * A?adido el setCRS a la capa
77
 *
78
 * Revision 1.11  2006/09/29 13:02:38  ppiqueras
79 7698 ppiqueras
 * Filtro para WFS. De momento s?lo interfaz gr?fica.
80
 *
81
 * Revision 1.10  2006/07/21 11:50:31  jaume
82 6501 jaume
 * improved appearance
83
 *
84
 * Revision 1.9  2006/06/21 12:35:45  jorpiell
85 5948 jorpiell
 * Se ha a?adido la ventana de propiedades. Esto implica a?adir listeners por todos los paneles. Adem?s no se muestra la geomatr?a en la lista de atributos y se muestran ?nicamnete los que se van a descargar
86
 *
87
 * Revision 1.8  2006/06/15 07:50:58  jorpiell
88 5856 jorpiell
 * A?adida la funcionalidad de reproyectar y hechos algunos cambios en la interfaz
89
 *
90
 * Revision 1.7  2006/05/25 16:22:47  jorpiell
91 5463 jorpiell
 * Se limpia el panel cada vez que se conecta con un servidor distinto
92
 *
93
 * Revision 1.6  2006/05/25 16:01:43  jorpiell
94 5454 jorpiell
 * Se ha a?adido la funcionalidad para eliminar el namespace de los tipos de atributos
95
 *
96
 * Revision 1.5  2006/05/25 10:31:06  jorpiell
97 5438 jorpiell
 * Como ha cambiado la forma de mostrar las capas (una tabla, en lugar de una lista), los paneles han tenido que ser modificados
98
 *
99
 * Revision 1.4  2006/05/23 08:09:39  jorpiell
100 5339 jorpiell
 * Se ha cambiado la forma en la que se leian los valores seleccionados en los paneles y se ha cambiado el comportamiento de los botones
101
 *
102
 * Revision 1.3  2006/05/19 12:57:08  jorpiell
103 5300 jorpiell
 * Modificados algunos paneles
104
 *
105
 * Revision 1.2  2006/04/20 16:38:24  jorpiell
106 4911 jorpiell
 * Ahora mismo ya se puede hacer un getCapabilities y un getDescribeType de la capa seleccionada para ver los atributos a dibujar. Queda implementar el panel de opciones y hacer el getFeature().
107
 *
108
 * Revision 1.1  2006/04/19 12:50:16  jorpiell
109 4886 jorpiell
 * Primer commit de la aplicaci?n. Se puede hacer un getCapabilities y ver el mensaje de vienvenida del servidor
110
 *
111
 *
112
 */
113
/**
114
 * @author Jorge Piera Llodr? (piera_jor@gva.es)
115
 */
116
public class WFSParamsPanel extends WizardPanel{
117
        private JTabbedPane jTabbedPane = null;  //  @jve:decl-index=0:visual-constraint="37,30"
118
        private WFSSelectFeaturePanel featurePanel = null;
119 5438 jorpiell
        private WFSSelectAttributesPanel fieldsPanel = null;
120 4911 jorpiell
        private WFSOptionsPanel optionsPanel = null;
121 5856 jorpiell
        private WFSFormatPanel formatPanel = null;
122 7698 ppiqueras
        private WFSFilterPanel filterPanel = null;
123 8018 jorpiell
        private WFSAreaPanel areaPanel = null;
124 4886 jorpiell
        private WFSWizardData data;
125
        private WizardListenerSupport listenerSupport;
126
        public        static Preferences fPrefs = Preferences.userRoot().node( "gvsig.wcs-wizard" );
127 4911 jorpiell
        private WFSInfoPanel infoPanel;
128
        private int indFields;
129 5856 jorpiell
        private int indFormat;
130 7698 ppiqueras
        private int indFilter;
131 8018 jorpiell
        private int indArea;
132 6501 jaume
133 4886 jorpiell
        /**
134 6501 jaume
         * This method initializes jTabbedPane
135
         *
136
         * @return javax.swing.JTabbedPane
137
         */
138
139 4886 jorpiell
        public WFSParamsPanel(){
140
                super();
141
                initialize();
142
        }
143
        /**
144
         * Returns the tab amount that the WFSParamsPanel currently have
145 6501 jaume
         *
146 4886 jorpiell
         * Devuelve el n?mero de solapas que tiene actualmente el WFSParamsPanel
147 6501 jaume
         *
148 4886 jorpiell
         * @return int
149
         */
150
        public int getNumTabs(){
151
                 return getJTabbedPane().getTabCount();
152
        }
153 6501 jaume
154 4886 jorpiell
        private void initialize() {
155
                this.setLayout(null);
156
                this.setVisible(false);
157 6501 jaume
                this.setBounds(0, 0, 510, 427);
158 4886 jorpiell
                this.add(getJTabbedPane(), null);
159
        }
160 6501 jaume
161 4886 jorpiell
        /**
162
         * Sets the focus to the tab next to the current one.
163 6501 jaume
         *
164 4886 jorpiell
         * Enfoca a la solapa siguiente a la actualmente enfocada del TabbedPane
165
         *
166
         */
167
        public void avanzaTab(){
168
            int currentPage = currentPage();
169
            int nPages = getNumTabs();
170
                if (nPages -1 > currentPage){
171
                        getJTabbedPane().setSelectedIndex(nextPageEnabled());
172
                }
173
        }
174 6501 jaume
175 4886 jorpiell
        /**
176 6501 jaume
         * Sets the focus to the tab previous to the current one.
177
         *
178 4886 jorpiell
         * Enfoca a la solapa anterior a la actualmente enfocada del TabbedPane
179 6501 jaume
         *
180 4886 jorpiell
         */
181
        public void retrocedeTab(){
182
                this.getJTabbedPane().setSelectedIndex(previousEnabledPage());
183
        }
184 6501 jaume
185 4886 jorpiell
        /**
186
         * Returns the current tab index.
187 6501 jaume
         *
188 4886 jorpiell
         * Devuelve el n?mero de solapa en que se encuentra
189 6501 jaume
         *
190 4886 jorpiell
         * @return
191
         */
192
        public int getIndiceSolapaActual(){
193
                return this.getJTabbedPane().getSelectedIndex();
194
        }
195 6501 jaume
196 5454 jorpiell
        public JTabbedPane getJTabbedPane() {
197 4886 jorpiell
                if (jTabbedPane == null) {
198
                        jTabbedPane = new JTabbedPane();
199 6501 jaume
                        jTabbedPane.setBounds(4, 4, 502, 415);
200 4886 jorpiell
                        jTabbedPane.addTab(PluginServices.getText(this, "info"), null, getInfoPanel());
201 8018 jorpiell
                        jTabbedPane.addTab(PluginServices.getText(this, "feature"), null, getFeaturesPanel(), null);
202
                        jTabbedPane.addTab(PluginServices.getText(this, "attributes"),null, getAttributesPanel(), null);
203 5856 jorpiell
                        indFields = jTabbedPane.getTabCount() - 1;
204 4911 jorpiell
                        jTabbedPane.setEnabledAt(indFields, false);
205 5856 jorpiell
                        //jTabbedPane.addTab(PluginServices.getText(this,"formatos"),null,getFormatPanel(),null);
206 8018 jorpiell
//                        indFormat = jTabbedPane.getTabCount() - 1;
207
//                        jTabbedPane.setEnabledAt(indFormat, false);
208 4911 jorpiell
                        jTabbedPane.addTab(PluginServices.getText(this, "options"),null, getOptionsPanel(), null);
209 8220 jorpiell
                        jTabbedPane.addTab(PluginServices.getText(this, "filter"),null, getFilterPanel(), null);
210 7698 ppiqueras
                        indFilter = jTabbedPane.getTabCount() - 1;
211
                        jTabbedPane.setEnabledAt(indFilter, false);
212 8018 jorpiell
                        //jTabbedPane.addTab(PluginServices.getText(this, "area"),null, getAreaPanel(), null);
213
                        indArea = jTabbedPane.getTabCount() - 1;
214
                        jTabbedPane.setEnabledAt(indArea, false);
215 4886 jorpiell
                }
216
                return jTabbedPane;
217
        }
218 6501 jaume
219 4911 jorpiell
        private WFSInfoPanel getInfoPanel() {
220 4886 jorpiell
                if (infoPanel==null) {
221 4911 jorpiell
                        infoPanel = new WFSInfoPanel();
222 4886 jorpiell
                        infoPanel.addFocusListener(new FocusListener() {
223
                                public void focusGained(java.awt.event.FocusEvent e) {
224 5339 jorpiell
                                        refreshInfo();
225 4886 jorpiell
                                }
226
227 5339 jorpiell
                                private void refreshInfo() {
228
                                        WFSLayerNode selectedNode = featurePanel.getSelectedFeature();
229 5948 jorpiell
                                        if (selectedNode != null){
230
                                                selectedNode.setSelectedFields(fieldsPanel.getSelectedFields());
231 6501 jaume
                                        }
232 5339 jorpiell
                                        data.setUserName(optionsPanel.getUserName());
233
                                        data.setBuffer(optionsPanel.getBuffer());
234
                                        data.setTimeOut(optionsPanel.getTimeout());
235
                                        infoPanel.refresh(data,selectedNode);
236
                                }
237
238 4886 jorpiell
                                public void focusLost(FocusEvent e) {
239 6501 jaume
240 4886 jorpiell
                                }
241
                        });
242
                }
243
                return infoPanel;
244
        }
245 6501 jaume
246 4886 jorpiell
        /**
247 6501 jaume
         *
248 4911 jorpiell
         * @return the selected list
249 4886 jorpiell
         */
250 4911 jorpiell
        private Object getSelectedFeature() {
251
                return featurePanel.getSelectedFeature();
252 6501 jaume
        }
253
254
255 4886 jorpiell
        /**
256 6501 jaume
         * This method initializes panelFeatures
257
         *
258
         * @return javax.swing.JPanel
259
         */
260 8018 jorpiell
        private WFSSelectFeaturePanel getFeaturesPanel() {
261 4886 jorpiell
                if (featurePanel == null) {
262 4911 jorpiell
                        featurePanel = new WFSSelectFeaturePanel(this);
263 4886 jorpiell
                        featurePanel.setLayout(null);
264
                }
265
                return featurePanel;
266
        }
267 6501 jaume
268 4886 jorpiell
        /**
269 6501 jaume
         * This method initializes fieldsPanel
270
         *
271
         * @return javax.swing.JPanel
272
         */
273 8018 jorpiell
        private WFSSelectAttributesPanel getAttributesPanel(){
274 4911 jorpiell
                if (fieldsPanel == null) {
275 5948 jorpiell
                        fieldsPanel = new WFSSelectAttributesPanel(this);
276 4911 jorpiell
                        fieldsPanel.setLayout(null);
277
                }
278
                return fieldsPanel;
279
        }
280 6501 jaume
281
282
283 4911 jorpiell
        /**
284 6501 jaume
         * This method initializes fieldsPanel
285
         *
286
         * @return javax.swing.JPanel
287
         */
288 5300 jorpiell
        private WFSOptionsPanel getOptionsPanel(){
289 4911 jorpiell
                if (optionsPanel == null) {
290 5948 jorpiell
                        optionsPanel = new WFSOptionsPanel(this);
291 4911 jorpiell
                        optionsPanel.setLayout(null);
292
                }
293
                return optionsPanel;
294
        }
295 6501 jaume
296 7698 ppiqueras
297
        /**
298
         * This method initializes filterPanel
299
         *
300
         * @return javax.swing.JPanel
301
         */
302 8018 jorpiell
        private WFSFilterPanel getFilterPanel(){
303 7698 ppiqueras
                if (filterPanel == null) {
304
                        filterPanel = new WFSFilterPanel(this);
305
                        filterPanel.setVisible(true);
306
                        //filterPanel.setLayout(null);
307
                }
308
                return filterPanel;
309
        }
310
311 8018 jorpiell
        /**
312
         * This method initializes areaPanel
313
         *
314
         * @return javax.swing.JPanel
315
         */
316
        private WFSAreaPanel getAreaPanel(){
317
                if (areaPanel == null) {
318
                        areaPanel = new WFSAreaPanel(this);
319
                        areaPanel.setVisible(true);
320
                }
321
                return areaPanel;
322
        }
323 6501 jaume
324 4911 jorpiell
        /**
325 6501 jaume
         * This method initializes formatPanel
326
         *
327
         * @return javax.swing.JPanel
328
         */
329 5856 jorpiell
        private WFSFormatPanel getFormatPanel(){
330
                if (formatPanel == null) {
331
                        formatPanel = new WFSFormatPanel();
332
                        formatPanel.setLayout(null);
333
                }
334
                return formatPanel;
335
        }
336 6501 jaume
337 5856 jorpiell
        /**
338 4886 jorpiell
         * Verifies that the selected parameters are enough to request the coverage
339
         * to the server.
340 6501 jaume
         *
341 4886 jorpiell
         * Comprueba que los par?metros seleccionados son suficientes para pedir la
342
         * cobertura al servidor.
343 6501 jaume
         *
344 4886 jorpiell
         * @return boolean
345
         */
346
        public boolean isCorretlyConfigured() {
347 5339 jorpiell
                if (featurePanel.getSelectedFeature()!= null){
348
                        return true;
349
                }else{
350
                        return false;
351
                }
352 6501 jaume
        }
353 4886 jorpiell
354
        /**
355
         * Cleans up the wizard's components but the server's layers list.
356 6501 jaume
         *
357 4886 jorpiell
         * Limpia todos los componentes del wizard excepto la lista de capas del
358
         * servidor.
359
         */
360
        public void cleanupWizard() {
361 5454 jorpiell
                jTabbedPane.setEnabledAt(indFields,false);
362 5856 jorpiell
//                jTabbedPane.setEnabledAt(indFormat,false);
363 4886 jorpiell
        }
364 6501 jaume
365 4886 jorpiell
        /**
366 4911 jorpiell
         * Refreshes the wizard components data each time a feature
367
         * is selected.
368 6501 jaume
         *
369
         * Actualiza los datos de los componentes del wizard cada vez
370 4911 jorpiell
         * que se selecciona una feature diferente.
371 6501 jaume
         *
372 4911 jorpiell
         * @param feature
373
         * Selected feature
374 4886 jorpiell
         */
375 4911 jorpiell
        public void refreshData(WFSLayerNode feature){
376 5438 jorpiell
                if (feature != null){
377
                        feature = (WFSLayerNode)data.getFeatureInfo(feature.getName());
378 5856 jorpiell
                        fieldsPanel.refresh(feature);
379 5454 jorpiell
                        jTabbedPane.setEnabledAt(indFields,true);
380 7698 ppiqueras
                        jTabbedPane.setEnabledAt(indFilter,true);
381 8018 jorpiell
                        jTabbedPane.setEnabledAt(indArea,true);
382 5856 jorpiell
//                        formatPanel.refresh(feature);
383
//                        jTabbedPane.setEnabledAt(indFormat,true);
384
                        optionsPanel.refresh(feature);
385 8220 jorpiell
                        filterPanel.refresh(feature);
386 5438 jorpiell
                }
387 5339 jorpiell
                listenerSupport.callStateChanged(isCorretlyConfigured());
388 6501 jaume
389 4886 jorpiell
        }
390 6501 jaume
391 5948 jorpiell
        public void refreshInfo(WFSLayerNode feature){
392
                infoPanel.refresh(data,feature);
393
        }
394 4886 jorpiell
395
        /**
396
         * Sets the object that holds the wizard data.
397 6501 jaume
         *
398 4886 jorpiell
         * Establece el objeto que contiene los datos del wizard.
399 6501 jaume
         *
400 4886 jorpiell
         * @param data
401
         */
402
        public void setWizardData(WFSWizardData data) {
403
                this.data = data;
404 5463 jorpiell
                //WFSLayerNode selectedNode = (WFSLayerNode)featurePanel.getSelectedFeature();
405 4911 jorpiell
                featurePanel.setWizardData(data);
406 5339 jorpiell
                data.setBuffer(optionsPanel.getBuffer());
407 6501 jaume
                data.setTimeOut(optionsPanel.getTimeout());
408
                infoPanel.refresh(data,null);
409 4886 jorpiell
        }
410 6501 jaume
411 4886 jorpiell
        /**
412
         * Sets the wizard's data source
413 6501 jaume
         *
414 4886 jorpiell
         * Establece el origen de los datos del wizard
415
         * @param dataSource
416
         */
417
        public void setDataSource(WFSWizardData dataSource) {
418
                this.data = dataSource;
419 6501 jaume
420 4886 jorpiell
        }
421 6501 jaume
422
423 4886 jorpiell
    /**
424
     * Returns the next enabled tab's index.
425 6501 jaume
     *
426 4886 jorpiell
     * Devuelve el ?ndicie de la siguiente pesta?a habilitada del wizard o -1 si no hay
427
     * ninguna.
428 6501 jaume
     *
429 4886 jorpiell
     * @return The index or -1 if there is no one.
430
     */
431
    public int nextPageEnabled() {
432
        int currentPage = currentPage();
433
        int nPages = getNumTabs();
434
        if (currentPage == nPages)
435
                return -1;
436
        for (int i=currentPage+1; i<nPages; i++){
437
            if (getJTabbedPane().isEnabledAt(i)){
438
                return i;
439
            }
440
        }
441
        return -1;
442
    }
443 6501 jaume
444 4886 jorpiell
    /**
445
     * Returns the index of the current tab.
446 6501 jaume
     *
447 4886 jorpiell
     * Devuelve el ?ndice de la p?gina actual del wizard.
448 6501 jaume
     *
449 4886 jorpiell
     * @return
450
     */
451
    public int currentPage() {
452
        return getJTabbedPane().getSelectedIndex();
453
    }
454 6501 jaume
455 4886 jorpiell
    /**
456
     * Returns the index of the previous enabled tab.
457 6501 jaume
     *
458 4886 jorpiell
     * Devuelve el ?ndice de la anterior p?gina habilitada del wizard o -1 si no hay
459
     * ninguna.
460 6501 jaume
     *
461 4886 jorpiell
     * @return The index, or -1 if there is no one.
462
     */
463
    public int previousEnabledPage() {
464
        int currentPage = currentPage();
465
        int j=0;
466
        if (currentPage == 0)
467
            j= -1;
468
        for (int i = currentPage-1; i>-1; i--){
469
            if (getJTabbedPane().isEnabledAt(i)){
470
                j= i;
471
                    break;
472
            }
473
        }
474
        return j;
475
    }
476
477
        public FMapWFSDriver getDriver() {
478
                return data.getDriver();
479
        }
480 6501 jaume
481 4886 jorpiell
        public void setListenerSupport(WizardListenerSupport support) {
482
                listenerSupport = support;
483
        }
484
485 6501 jaume
486 5300 jorpiell
        /*
487
         *  (non-Javadoc)
488
         * @see com.iver.cit.gvsig.gui.WizardPanel#initWizard()
489
         */
490
        public void initWizard() {
491 6501 jaume
492 5300 jorpiell
        }
493 6501 jaume
494 5300 jorpiell
        /*
495
         *  (non-Javadoc)
496
         * @see com.iver.cit.gvsig.gui.WizardPanel#execute()
497
         */
498 6501 jaume
        public void execute() {
499
500 5300 jorpiell
        }
501 6501 jaume
502 5300 jorpiell
        /*
503
         *  (non-Javadoc)
504
         * @see com.iver.cit.gvsig.gui.ILayerPanel#getLayer()
505
         */
506
        public FLayer getLayer() {
507
                FLyrWFS layer = new FLyrWFS();
508 8018 jorpiell
                layer.setName(getFeaturesPanel().getLayerText());
509
                layer.setLayerName(getFeaturesPanel().getLayerName());
510 5948 jorpiell
                layer.setWfsLayerNode(getLayerNode());
511 8018 jorpiell
                layer.setFields(getAttributesPanel().getSelectedFields());
512 5300 jorpiell
                layer.setUserName(getOptionsPanel().getUserName());
513
                layer.setPassword(getOptionsPanel().getPassword());
514
                layer.setNumfeatures(getOptionsPanel().getBuffer());
515
                layer.setTimeout(getOptionsPanel().getTimeout());
516 7723 jorpiell
                layer.setSrs(getOptionsPanel().getSRS());
517 8018 jorpiell
                layer.setAttributesQuery(getFilterPanel().getQuery());
518 5300 jorpiell
                layer.setWfsDriver(data.getDriver());
519
                return layer;
520
        }
521 6501 jaume
522 5948 jorpiell
        private WFSLayerNode getLayerNode(){
523 8018 jorpiell
                WFSLayerNode layerNode = getFeaturesPanel().getWFSLayerNode();
524
                layerNode.setSelectedFields(getAttributesPanel().getSelectedFields());
525 8220 jorpiell
                layerNode.setFilter(getFilterPanel().getQuery());
526 5948 jorpiell
                return layerNode;
527
        }
528 6501 jaume
529
530 5948 jorpiell
        public void setSelectedFeature(WFSLayerNode layerNode){
531 8018 jorpiell
                getFeaturesPanel().setSelectedFeature(layerNode);
532
                getAttributesPanel().setSelectedFields(layerNode);
533 8220 jorpiell
                getFilterPanel().setQuery(layerNode.getFilter());
534
        }
535
536
537 5948 jorpiell
        /**
538
         * @return Returns the data.
539
         */
540
        public WFSWizardData getData() {
541
                return data;
542
        }
543
        public void setLayerName(String name) {
544 8018 jorpiell
                getFeaturesPanel().setLayerName(name);
545 6501 jaume
546 5948 jorpiell
        }
547 6501 jaume
548 5948 jorpiell
        public void addWizardListener(WizardListener listener) {
549 6501 jaume
                listenerSupport.addWizardListener(listener);
550 5948 jorpiell
        }
551 6501 jaume
552 5948 jorpiell
        public void isApplicable(boolean applicable){
553
                listenerSupport.callStateChanged(applicable);
554
        }
555
556 6501 jaume
557 5948 jorpiell
        public void setStatus(WFSStatus status) {
558 6501 jaume
                getOptionsPanel().setStatus(status);
559 5948 jorpiell
        }
560 6501 jaume
561
562 4886 jorpiell
}