root / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / ui / search / SearchDialog.java @ 3229
History | View | Annotate | Download (3.68 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.gazetteer.ui.search; |
42 |
|
43 |
import es.gva.cit.gazetteer.GazetteerClient; |
44 |
import es.gva.cit.catalogClient.traductor.WithOutAndamiTranslator; |
45 |
import es.gva.cit.catalogClient.utils.Frames; |
46 |
|
47 |
import java.awt.event.WindowEvent; |
48 |
import java.awt.event.WindowListener; |
49 |
|
50 |
import javax.swing.JFrame; |
51 |
|
52 |
|
53 |
/**
|
54 |
* This class represents the search frame.
|
55 |
*
|
56 |
* @author Jorge Piera Llodra (piera_jor@gva.es)
|
57 |
*/
|
58 |
public class SearchDialog extends JFrame implements WindowListener { |
59 |
private SearchDialogPanel contentPane = null; |
60 |
private GazetteerClient client;
|
61 |
|
62 |
/**
|
63 |
* Crea un nuevo SearchDialog.
|
64 |
*
|
65 |
* @param cliente DOCUMENT ME!
|
66 |
*/
|
67 |
public SearchDialog(GazetteerClient client) {
|
68 |
super();
|
69 |
this.client = client;
|
70 |
initialize(); |
71 |
} |
72 |
|
73 |
/**
|
74 |
* This method initializes jDialog
|
75 |
*/
|
76 |
private void initialize() { |
77 |
Frames.centerFrame(this,525,115); |
78 |
|
79 |
this.setTitle("B?squeda por Nomencl?tor"); |
80 |
|
81 |
//setResizable(false);
|
82 |
setName("search");
|
83 |
|
84 |
SearchDialogPanel panel = new SearchDialogPanel(client,new WithOutAndamiTranslator()); |
85 |
panel.setCatalogClient(client); |
86 |
panel.setParent(this);
|
87 |
getContentPane().add(panel); |
88 |
addWindowListener(this);
|
89 |
setVisible(true);
|
90 |
} |
91 |
|
92 |
/* (non-Javadoc)
|
93 |
* @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
|
94 |
*/
|
95 |
public void windowActivated(WindowEvent e) { |
96 |
} |
97 |
|
98 |
/* (non-Javadoc)
|
99 |
* @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
100 |
*/
|
101 |
public void windowClosed(WindowEvent e) { |
102 |
System.exit(0); |
103 |
} |
104 |
|
105 |
/* (non-Javadoc)
|
106 |
* @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
|
107 |
*/
|
108 |
public void windowClosing(WindowEvent arg0) { |
109 |
System.exit(0); |
110 |
} |
111 |
|
112 |
/* (non-Javadoc)
|
113 |
* @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
|
114 |
*/
|
115 |
public void windowDeactivated(WindowEvent e) { |
116 |
} |
117 |
|
118 |
/* (non-Javadoc)
|
119 |
* @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
|
120 |
*/
|
121 |
public void windowDeiconified(WindowEvent e) { |
122 |
} |
123 |
|
124 |
/* (non-Javadoc)
|
125 |
* @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
|
126 |
*/
|
127 |
public void windowIconified(WindowEvent e) { |
128 |
} |
129 |
|
130 |
/* (non-Javadoc)
|
131 |
* @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
|
132 |
*/
|
133 |
public void windowOpened(WindowEvent e) { |
134 |
} |
135 |
} |