Statistics
| Revision:

svn-gvsig-desktop / branches / v2_0_0_prep / extensions / extWFS2 / src / com / iver / cit / gvsig / gui / panels / AbstractWFSPanel.java @ 29248

History | View | Annotate | Download (3.72 KB)

1
package com.iver.cit.gvsig.gui.panels;
2

    
3
import java.awt.Dimension;
4

    
5
import org.gvsig.fmap.dal.serverexplorer.wfs.WFSServerExplorer;
6
import org.gvsig.fmap.geom.GeometryManager;
7
import org.gvsig.gui.beans.panelGroup.panels.AbstractPanel;
8
import org.slf4j.Logger;
9
import org.slf4j.LoggerFactory;
10

    
11
import com.iver.cit.gvsig.gui.panels.model.WFSSelectedFeature;
12
import com.iver.cit.gvsig.gui.panels.model.WFSSelectedFeatureManager;
13

    
14

    
15
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
16
 *
17
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
18
 *
19
 * This program is free software; you can redistribute it and/or
20
 * modify it under the terms of the GNU General Public License
21
 * as published by the Free Software Foundation; either version 2
22
 * of the License, or (at your option) any later version.
23
 *
24
 * This program is distributed in the hope that it will be useful,
25
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
27
 * GNU General Public License for more details.
28
 *
29
 * You should have received a copy of the GNU General Public License
30
 * along with this program; if not, write to the Free Software
31
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
32
 *
33
 * For more information, contact:
34
 *
35
 *  Generalitat Valenciana
36
 *   Conselleria d'Infraestructures i Transport
37
 *   Av. Blasco Ib??ez, 50
38
 *   46010 VALENCIA
39
 *   SPAIN
40
 *
41
 *      +34 963862235
42
 *   gvsig@gva.es
43
 *      www.gvsig.gva.es
44
 *
45
 *    or
46
 *
47
 *   IVER T.I. S.A
48
 *   Salamanca 50
49
 *   46005 Valencia
50
 *   Spain
51
 *
52
 *   +34 963163400
53
 *   dac@iver.es
54
 */
55

    
56
/* CVS MESSAGES:
57
 *
58
 * $Id$
59
 * $Log$
60
 *
61
 */
62

    
63
/**
64
 * <p>Default panel used to create a WFS group's panel.</p>
65
 * 
66
 * @author Jorge Piera LLodr? (jorge.piera@iver.es)
67
 * @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es)
68
 */
69
public abstract class AbstractWFSPanel extends AbstractPanel implements IWFSPanel {
70
        // Default dimensions of all WFS panels
71
        static final int PANEL_WIDTH = 475;
72
        static final int PANEL_HEIGHT = 365;
73
        protected static final Logger logger = LoggerFactory.getLogger(AbstractWFSPanel.class);
74

    
75
        /**
76
         * Initializes an WFS panel.
77
         */
78
        public AbstractWFSPanel() {
79
                super();
80
                setPreferredSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT));
81
        }
82

    
83
        /*
84
         * (non-Javadoc)
85
         * @see org.gvsig.gui.beans.panelGroup.panels.AbstractPanel#initialize()
86
         */
87
        protected void initialize() {
88
                // By default all panels will be at the GUI
89
                setVisible(true);
90
        }
91

    
92
        /**
93
         * <p>Gets the information of the wizard used to add or load panels.</p>
94
         * 
95
         * @return the wizard data
96
         */
97
        public WFSServerExplorer getServerExplorer(){
98
                return (getPanelGroup() == null)? null: ((WFSParamsPanel)getPanelGroup()).getServerExplorer();  
99
        }
100
        
101
        public WFSSelectedFeatureManager getSelectedFeatureManager(){
102
                return (getPanelGroup() == null)? null: ((WFSParamsPanel)getPanelGroup()).getSelectedFeatureManager();
103
        }
104

    
105
        /*
106
         * (non-Javadoc)
107
         * @see org.gvsig.gui.beans.panelGroup.panels.AbstractPanel#setReference(java.lang.Object)
108
         */
109
        public void setReference(Object ref) {
110
                super.setReference(ref);
111
        }        
112
 
113
        /*
114
         * (non-Javadoc)
115
         * @see com.iver.cit.gvsig.gui.panels.IWFSPanel#refresh(com.iver.cit.gvsig.fmap.layers.WFSLayerNode)
116
         */
117
        public void refresh(WFSSelectedFeature layer) {
118
        }
119

    
120
        /*
121
         * (non-Javadoc)
122
         * @see org.gvsig.gui.beans.panelGroup.panels.IPanel#accept()
123
         */
124
        public void accept() {
125
        }
126

    
127
        /*
128
         * (non-Javadoc)
129
         * @see org.gvsig.gui.beans.panelGroup.panels.IPanel#apply()
130
         */
131
        public void apply() {
132
        }
133

    
134
        /*
135
         * (non-Javadoc)
136
         * @see org.gvsig.gui.beans.panelGroup.panels.IPanel#cancel()
137
         */
138
        public void cancel() {
139
        }
140

    
141
        /*
142
         * (non-Javadoc)
143
         * @see org.gvsig.gui.beans.panelGroup.panels.IPanel#selected()
144
         */
145
        public void selected() {
146
        }
147
}