Statistics
| Revision:

root / branches / v05 / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / ui / search / SearchDialog.java @ 4392

History | View | Annotate | Download (4.15 KB)

1

    
2
/* 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.search;
43
import es.gva.cit.catalogClient.traductor.WithOutAndamiTranslator;
44
import es.gva.cit.catalogClient.utils.Frames;
45
import es.gva.cit.gazetteer.GazetteerClient;
46
import java.awt.event.WindowEvent;
47
import java.awt.event.WindowListener;
48
import javax.swing.JFrame;
49

    
50
/**
51
 * This class represents the search frame.
52
 * 
53
 * 
54
 * @author Jorge Piera Llodra (piera_jor@gva.es)
55
 */
56
public class SearchDialog extends JFrame implements WindowListener {
57

    
58
/**
59
 * Crea un nuevo SearchDialog.
60
 * 
61
 * @param cliente DOCUMENT ME!
62
 * 
63
 * @param gazetterClient 
64
 */
65
    public  SearchDialog(GazetteerClient gazetterClient,Object serverConnectFrame) {        
66
        super();
67
        initialize(gazetterClient, serverConnectFrame);
68
    } 
69

    
70
/**
71
 * This method initializes jDialog
72
 * 
73
 * 
74
 * @param gazetterClient 
75
 */
76
    private void initialize(es.gva.cit.gazetteer.GazetteerClient gazetterClient,Object serverConnectFrame) {        
77
        Frames.centerFrame(this,525,115);
78
                
79
      this.setTitle("B?squeda por Nomencl?tor");
80
      setName("search");
81
        SearchDialogPanel panel = new SearchDialogPanel(gazetterClient,serverConnectFrame,new WithOutAndamiTranslator());
82
        panel.setCatalogClient(gazetterClient);
83
        panel.setParent(this);
84
        getContentPane().add(panel);
85
        addWindowListener(this);
86
        setVisible(true);
87
    } 
88
/* (non-Javadoc)
89
     * @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
90
     */
91

    
92
/**
93
 * 
94
 * 
95
 * 
96
 * @param e 
97
 */
98
    public void windowActivated(WindowEvent e) {        
99
        // your code here
100
    } 
101
/* (non-Javadoc)
102
     * @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
103
     */
104

    
105
/**
106
 * 
107
 * 
108
 * 
109
 * @param e 
110
 */
111
    public void windowClosed(WindowEvent e) {        
112
        System.exit(0);
113
    } 
114
/* (non-Javadoc)
115
     * @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
116
     */
117

    
118
/**
119
 * 
120
 * 
121
 * 
122
 * @param arg0 
123
 */
124
    public void windowClosing(WindowEvent arg0) {        
125
        System.exit(0);
126
    } 
127
/* (non-Javadoc)
128
     * @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
129
     */
130

    
131
/**
132
 * 
133
 * 
134
 * 
135
 * @param e 
136
 */
137
    public void windowDeactivated(WindowEvent e) {        
138
        // your code here
139
    } 
140
/* (non-Javadoc)
141
     * @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
142
     */
143

    
144
/**
145
 * 
146
 * 
147
 * 
148
 * @param e 
149
 */
150
    public void windowDeiconified(WindowEvent e) {        
151
        // your code here
152
    } 
153
/* (non-Javadoc)
154
     * @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
155
     */
156

    
157
/**
158
 * 
159
 * 
160
 * 
161
 * @param e 
162
 */
163
    public void windowIconified(WindowEvent e) {        
164
        // your code here
165
    } 
166
/* (non-Javadoc)
167
     * @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
168
     */
169

    
170
/**
171
 * 
172
 * 
173
 * 
174
 * @param e 
175
 */
176
    public void windowOpened(WindowEvent e) {        
177
        // your code here
178
    } 
179
 }