root / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / catalogClient / ui / SearchMiniPanel.java @ 2985
History | View | Annotate | Download (5.09 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
package es.gva.cit.catalogClient.ui; |
42 |
|
43 |
import javax.swing.JPanel; |
44 |
|
45 |
import javax.swing.BoxLayout; |
46 |
import javax.swing.JLabel; |
47 |
import javax.swing.JTextField; |
48 |
|
49 |
import es.gva.cit.catalogClient.querys.Coordinates; |
50 |
/**
|
51 |
* This class is the panel for the mini-search form
|
52 |
*
|
53 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
54 |
*/
|
55 |
public class SearchMiniPanel extends AbstractSearchPanel{ |
56 |
|
57 |
|
58 |
private JPanel topPanel = null; |
59 |
private JLabel t?tleLabel = null; |
60 |
private JTextField titleText = null; |
61 |
/**
|
62 |
* This method initializes
|
63 |
*
|
64 |
*/
|
65 |
public SearchMiniPanel() {
|
66 |
super();
|
67 |
initialize(); |
68 |
} |
69 |
/**
|
70 |
* This method initializes this
|
71 |
*
|
72 |
* @return void
|
73 |
*/
|
74 |
private void initialize() { |
75 |
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); |
76 |
this.setBounds(0, 0, 297, 58); |
77 |
this.add(getTopPanel(), null); |
78 |
|
79 |
} |
80 |
/**
|
81 |
* This method initializes jPanel
|
82 |
*
|
83 |
* @return javax.swing.JPanel
|
84 |
*/
|
85 |
private JPanel getTopPanel() { |
86 |
if (topPanel == null) { |
87 |
t?tleLabel = new JLabel(); |
88 |
topPanel = new JPanel(); |
89 |
t?tleLabel.setText("T?tulo");
|
90 |
topPanel.setPreferredSize(new java.awt.Dimension(252,29)); |
91 |
topPanel.add(t?tleLabel, null);
|
92 |
topPanel.add(getTitleText(), null);
|
93 |
} |
94 |
return topPanel;
|
95 |
} |
96 |
/**
|
97 |
* This method initializes jTextField
|
98 |
*
|
99 |
* @return javax.swing.JTextField
|
100 |
*/
|
101 |
private JTextField getTitleText() { |
102 |
if (titleText == null) { |
103 |
titleText = new JTextField(); |
104 |
titleText.setPreferredSize(new java.awt.Dimension(200,19)); |
105 |
} |
106 |
return titleText;
|
107 |
} |
108 |
/* (non-Javadoc)
|
109 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitle()
|
110 |
*/
|
111 |
public String getTitle() { |
112 |
if (getTitleText().getText().equals("")) { |
113 |
return null; |
114 |
} |
115 |
|
116 |
return getTitleText().getText();
|
117 |
} |
118 |
/* (non-Javadoc)
|
119 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getTitleOption()
|
120 |
*/
|
121 |
public String getTitleOption() { |
122 |
//Y = anY
|
123 |
return "Y"; |
124 |
} |
125 |
/* (non-Javadoc)
|
126 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getAbstract()
|
127 |
*/
|
128 |
public String getAbstract() { |
129 |
// TODO Auto-generated method stub
|
130 |
return null; |
131 |
} |
132 |
/* (non-Javadoc)
|
133 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getKeys()
|
134 |
*/
|
135 |
public String getKeys() { |
136 |
// TODO Auto-generated method stub
|
137 |
return null; |
138 |
} |
139 |
/* (non-Javadoc)
|
140 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCathegory()
|
141 |
*/
|
142 |
public String getCathegory() { |
143 |
// TODO Auto-generated method stub
|
144 |
return null; |
145 |
} |
146 |
/* (non-Javadoc)
|
147 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getScale()
|
148 |
*/
|
149 |
public String getScale() { |
150 |
// TODO Auto-generated method stub
|
151 |
return null; |
152 |
} |
153 |
/* (non-Javadoc)
|
154 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateTo()
|
155 |
*/
|
156 |
public String getDateTo() { |
157 |
// TODO Auto-generated method stub
|
158 |
return null; |
159 |
} |
160 |
/* (non-Javadoc)
|
161 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getDateFrom()
|
162 |
*/
|
163 |
public String getDateFrom() { |
164 |
// TODO Auto-generated method stub
|
165 |
return null; |
166 |
} |
167 |
/* (non-Javadoc)
|
168 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinates()
|
169 |
*/
|
170 |
public Coordinates getCoordinates() {
|
171 |
// TODO Auto-generated method stub
|
172 |
return null; |
173 |
} |
174 |
/* (non-Javadoc)
|
175 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getCoordinatesOption()
|
176 |
*/
|
177 |
public String getCoordinatesOption() { |
178 |
// TODO Auto-generated method stub
|
179 |
return null; |
180 |
} |
181 |
/* (non-Javadoc)
|
182 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#getProvider()
|
183 |
*/
|
184 |
public String getProvider() { |
185 |
// TODO Auto-generated method stub
|
186 |
return null; |
187 |
} |
188 |
/* (non-Javadoc)
|
189 |
* @see es.gva.cit.catalogClient.ui.ISearchPanel#setTitle(java.lang.String)
|
190 |
*/
|
191 |
public void setTitle(String title) { |
192 |
getTitleText().setText(title); |
193 |
|
194 |
} |
195 |
|
196 |
} // @jve:decl-index=0:visual-constraint="10,10"
|