svn-gvsig-desktop / tags / v2_0_0_Build_2065 / extensions / extWFS2 / src / org / gvsig / wfs / gui / panels / AbstractWFSPanel.java @ 40276
History | View | Annotate | Download (3.66 KB)
1 |
package org.gvsig.wfs.gui.panels; |
---|---|
2 |
|
3 |
import java.awt.Dimension; |
4 |
|
5 |
import org.gvsig.fmap.dal.serverexplorer.wfs.WFSServerExplorer; |
6 |
import org.gvsig.gui.beans.panelGroup.panels.AbstractPanel; |
7 |
import org.gvsig.wfs.gui.panels.model.WFSSelectedFeature; |
8 |
import org.gvsig.wfs.gui.panels.model.WFSSelectedFeatureManager; |
9 |
import org.slf4j.Logger; |
10 |
import org.slf4j.LoggerFactory; |
11 |
|
12 |
|
13 |
|
14 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
15 |
*
|
16 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
17 |
*
|
18 |
* This program is free software; you can redistribute it and/or
|
19 |
* modify it under the terms of the GNU General Public License
|
20 |
* as published by the Free Software Foundation; either version 2
|
21 |
* of the License, or (at your option) any later version.
|
22 |
*
|
23 |
* This program is distributed in the hope that it will be useful,
|
24 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
25 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
26 |
* GNU General Public License for more details.
|
27 |
*
|
28 |
* You should have received a copy of the GNU General Public License
|
29 |
* along with this program; if not, write to the Free Software
|
30 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
31 |
*
|
32 |
* For more information, contact:
|
33 |
*
|
34 |
* Generalitat Valenciana
|
35 |
* Conselleria d'Infraestructures i Transport
|
36 |
* Av. Blasco Ib??ez, 50
|
37 |
* 46010 VALENCIA
|
38 |
* SPAIN
|
39 |
*
|
40 |
* +34 963862235
|
41 |
* gvsig@gva.es
|
42 |
* www.gvsig.gva.es
|
43 |
*
|
44 |
* or
|
45 |
*
|
46 |
* IVER T.I. S.A
|
47 |
* Salamanca 50
|
48 |
* 46005 Valencia
|
49 |
* Spain
|
50 |
*
|
51 |
* +34 963163400
|
52 |
* dac@iver.es
|
53 |
*/
|
54 |
|
55 |
/* CVS MESSAGES:
|
56 |
*
|
57 |
* $Id$
|
58 |
* $Log$
|
59 |
*
|
60 |
*/
|
61 |
|
62 |
/**
|
63 |
* <p>Default panel used to create a WFS group's panel.</p>
|
64 |
*
|
65 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
66 |
* @author Pablo Piqueras Bartolom? (pablo.piqueras@iver.es)
|
67 |
*/
|
68 |
public abstract class AbstractWFSPanel extends AbstractPanel implements IWFSPanel { |
69 |
// Default dimensions of all WFS panels
|
70 |
static final int PANEL_WIDTH = 475; |
71 |
static final int PANEL_HEIGHT = 365; |
72 |
protected static final Logger logger = LoggerFactory.getLogger(AbstractWFSPanel.class); |
73 |
|
74 |
/**
|
75 |
* Initializes an WFS panel.
|
76 |
*/
|
77 |
public AbstractWFSPanel() {
|
78 |
super();
|
79 |
setPreferredSize(new Dimension(PANEL_WIDTH, PANEL_HEIGHT)); |
80 |
} |
81 |
|
82 |
/*
|
83 |
* (non-Javadoc)
|
84 |
* @see org.gvsig.gui.beans.panelGroup.panels.AbstractPanel#initialize()
|
85 |
*/
|
86 |
protected void initialize() { |
87 |
// By default all panels will be at the GUI
|
88 |
setVisible(true);
|
89 |
} |
90 |
|
91 |
/**
|
92 |
* <p>Gets the information of the wizard used to add or load panels.</p>
|
93 |
*
|
94 |
* @return the wizard data
|
95 |
*/
|
96 |
public WFSServerExplorer getServerExplorer(){
|
97 |
return (getPanelGroup() == null)? null: ((WFSParamsPanel)getPanelGroup()).getServerExplorer(); |
98 |
} |
99 |
|
100 |
public WFSSelectedFeatureManager getSelectedFeatureManager(){
|
101 |
return (getPanelGroup() == null)? null: ((WFSParamsPanel)getPanelGroup()).getSelectedFeatureManager(); |
102 |
} |
103 |
|
104 |
/*
|
105 |
* (non-Javadoc)
|
106 |
* @see org.gvsig.gui.beans.panelGroup.panels.AbstractPanel#setReference(java.lang.Object)
|
107 |
*/
|
108 |
public void setReference(Object ref) { |
109 |
super.setReference(ref);
|
110 |
} |
111 |
|
112 |
/*
|
113 |
* (non-Javadoc)
|
114 |
* @see com.iver.cit.gvsig.gui.panels.IWFSPanel#refresh(com.iver.cit.gvsig.fmap.layers.WFSLayerNode)
|
115 |
*/
|
116 |
public void refresh(WFSSelectedFeature layer) { |
117 |
} |
118 |
|
119 |
/*
|
120 |
* (non-Javadoc)
|
121 |
* @see org.gvsig.gui.beans.panelGroup.panels.IPanel#accept()
|
122 |
*/
|
123 |
public void accept() { |
124 |
} |
125 |
|
126 |
/*
|
127 |
* (non-Javadoc)
|
128 |
* @see org.gvsig.gui.beans.panelGroup.panels.IPanel#apply()
|
129 |
*/
|
130 |
public void apply() { |
131 |
} |
132 |
|
133 |
/*
|
134 |
* (non-Javadoc)
|
135 |
* @see org.gvsig.gui.beans.panelGroup.panels.IPanel#cancel()
|
136 |
*/
|
137 |
public void cancel() { |
138 |
} |
139 |
|
140 |
/*
|
141 |
* (non-Javadoc)
|
142 |
* @see org.gvsig.gui.beans.panelGroup.panels.IPanel#selected()
|
143 |
*/
|
144 |
public void selected() { |
145 |
} |
146 |
} |