svn-gvsig-desktop / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / ui / showResults / ShowResultsDialog.java @ 3566
History | View | Annotate | Download (4.88 KB)
1 | 3566 | jorpiell | |
---|---|---|---|
2 | 3214 | jorpiell | /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
3 | *
|
||
4 | * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
||
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 2
|
||
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, write to the Free Software
|
||
18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
||
19 | *
|
||
20 | * For more information, contact:
|
||
21 | *
|
||
22 | * Generalitat Valenciana
|
||
23 | * Conselleria d'Infraestructures i Transport
|
||
24 | * Av. Blasco Ib??ez, 50
|
||
25 | * 46010 VALENCIA
|
||
26 | * SPAIN
|
||
27 | *
|
||
28 | * +34 963862235
|
||
29 | * gvsig@gva.es
|
||
30 | * www.gvsig.gva.es
|
||
31 | *
|
||
32 | * or
|
||
33 | *
|
||
34 | * IVER T.I. S.A
|
||
35 | * Salamanca 50
|
||
36 | * 46005 Valencia
|
||
37 | * Spain
|
||
38 | *
|
||
39 | * +34 963163400
|
||
40 | * dac@iver.es
|
||
41 | */
|
||
42 | package es.gva.cit.gazetteer.ui.showResults; |
||
43 | 3229 | jorpiell | import es.gva.cit.catalogClient.traductor.WithOutAndamiTranslator; |
44 | 3214 | jorpiell | import es.gva.cit.catalogClient.utils.Frames; |
45 | import es.gva.cit.gazetteer.GazetteerClient; |
||
46 | import es.gva.cit.gazetteer.querys.Feature; |
||
47 | import java.awt.Dimension; |
||
48 | import java.awt.event.WindowEvent; |
||
49 | import java.awt.event.WindowListener; |
||
50 | import javax.swing.JDialog; |
||
51 | |||
52 | /**
|
||
53 | * DOCUMENT ME!
|
||
54 | 3566 | jorpiell | *
|
55 | *
|
||
56 | 3214 | jorpiell | * @author luisw
|
57 | */
|
||
58 | public class ShowResultsDialog extends JDialog implements WindowListener { |
||
59 | 3566 | jorpiell | |
60 | /**
|
||
61 | *
|
||
62 | *
|
||
63 | */
|
||
64 | 3214 | jorpiell | int recordsByPage;
|
65 | 3566 | jorpiell | |
66 | /**
|
||
67 | *
|
||
68 | *
|
||
69 | */
|
||
70 | 3480 | jorpiell | protected boolean isGotoClicked; |
71 | 3566 | jorpiell | |
72 | /**
|
||
73 | *
|
||
74 | *
|
||
75 | */
|
||
76 | 3480 | jorpiell | protected boolean isKeepOldClicked; |
77 | 3566 | jorpiell | /**
|
78 | * <p></p>
|
||
79 | *
|
||
80 | *
|
||
81 | */
|
||
82 | protected es.gva.cit.gazetteer.ui.showResults.ShowResultsDialogPanel showResultsDialogPanel = null; |
||
83 | 3214 | jorpiell | |
84 | 3566 | jorpiell | /**
|
85 | * Crea un nuevo ShowResultsDialog.
|
||
86 | *
|
||
87 | *
|
||
88 | * @param client Gazetteer Client
|
||
89 | * @param features The found features
|
||
90 | * @param recordsByPage Number of records that will be showed
|
||
91 | * @param isGotoClicked
|
||
92 | * @param isKeepOldClicked
|
||
93 | */
|
||
94 | public ShowResultsDialog(GazetteerClient client, Feature[] features, int recordsByPage, boolean isGotoClicked, boolean isKeepOldClicked) { |
||
95 | 3214 | jorpiell | super();
|
96 | this.recordsByPage = recordsByPage;
|
||
97 | 3480 | jorpiell | this.isGotoClicked = isGotoClicked;
|
98 | this.isKeepOldClicked = isKeepOldClicked;
|
||
99 | 3566 | jorpiell | initialize(client,features); |
100 | } |
||
101 | 3214 | jorpiell | |
102 | 3566 | jorpiell | /**
|
103 | * This method initializes jDialog
|
||
104 | *
|
||
105 | *
|
||
106 | * @param gazetteerClient
|
||
107 | * @param features
|
||
108 | */
|
||
109 | private void initialize(es.gva.cit.gazetteer.GazetteerClient gazetteerClient, Feature[] features) { |
||
110 | 3409 | jorpiell | Frames.centerFrame(this, 420, 257); |
111 | 3214 | jorpiell | this.setSize(new Dimension(420, 257)); |
112 | this.setTitle("Cliente Gazetteer"); |
||
113 | 3566 | jorpiell | ShowResultsDialogPanel panel = new ShowResultsDialogPanel(gazetteerClient,
|
114 | 3480 | jorpiell | features, recordsByPage, new WithOutAndamiTranslator(),isGotoClicked,isKeepOldClicked);
|
115 | 3409 | jorpiell | panel.setParent(this);
|
116 | 3214 | jorpiell | getContentPane().add(panel); |
117 | this.setVisible(true); |
||
118 | 3566 | jorpiell | } |
119 | /* (non-Javadoc)
|
||
120 | 3214 | jorpiell | * @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
|
121 | */
|
||
122 | 3566 | jorpiell | |
123 | /**
|
||
124 | *
|
||
125 | *
|
||
126 | *
|
||
127 | * @param e
|
||
128 | */
|
||
129 | public void windowActivated(WindowEvent e) { |
||
130 | 3214 | jorpiell | // TODO Auto-generated method stub
|
131 | 3566 | jorpiell | } |
132 | /* (non-Javadoc)
|
||
133 | 3214 | jorpiell | * @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
134 | */
|
||
135 | 3566 | jorpiell | |
136 | /**
|
||
137 | *
|
||
138 | *
|
||
139 | *
|
||
140 | * @param e
|
||
141 | */
|
||
142 | public void windowClosed(WindowEvent e) { |
||
143 | 3214 | jorpiell | // TODO Auto-generated method stub
|
144 | 3566 | jorpiell | } |
145 | /* (non-Javadoc)
|
||
146 | 3214 | jorpiell | * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)
|
147 | */
|
||
148 | 3566 | jorpiell | |
149 | /**
|
||
150 | *
|
||
151 | *
|
||
152 | *
|
||
153 | * @param e
|
||
154 | */
|
||
155 | public void windowClosing(WindowEvent e) { |
||
156 | 3214 | jorpiell | // TODO Auto-generated method stub
|
157 | 3566 | jorpiell | } |
158 | /* (non-Javadoc)
|
||
159 | 3214 | jorpiell | * @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
|
160 | */
|
||
161 | 3566 | jorpiell | |
162 | /**
|
||
163 | *
|
||
164 | *
|
||
165 | *
|
||
166 | * @param e
|
||
167 | */
|
||
168 | public void windowDeactivated(WindowEvent e) { |
||
169 | 3214 | jorpiell | // TODO Auto-generated method stub
|
170 | 3566 | jorpiell | } |
171 | /* (non-Javadoc)
|
||
172 | 3214 | jorpiell | * @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
|
173 | */
|
||
174 | 3566 | jorpiell | |
175 | /**
|
||
176 | *
|
||
177 | *
|
||
178 | *
|
||
179 | * @param e
|
||
180 | */
|
||
181 | public void windowDeiconified(WindowEvent e) { |
||
182 | 3214 | jorpiell | // TODO Auto-generated method stub
|
183 | 3566 | jorpiell | } |
184 | /* (non-Javadoc)
|
||
185 | 3214 | jorpiell | * @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
|
186 | */
|
||
187 | 3566 | jorpiell | |
188 | /**
|
||
189 | *
|
||
190 | *
|
||
191 | *
|
||
192 | * @param e
|
||
193 | */
|
||
194 | public void windowIconified(WindowEvent e) { |
||
195 | 3214 | jorpiell | // TODO Auto-generated method stub
|
196 | 3566 | jorpiell | } |
197 | /* (non-Javadoc)
|
||
198 | 3214 | jorpiell | * @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
|
199 | */
|
||
200 | 3566 | jorpiell | |
201 | /**
|
||
202 | *
|
||
203 | *
|
||
204 | *
|
||
205 | * @param e
|
||
206 | */
|
||
207 | public void windowOpened(WindowEvent e) { |
||
208 | 3214 | jorpiell | // TODO Auto-generated method stub
|
209 | 3566 | jorpiell | } |
210 | } |