Statistics
| Revision:

root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / gazetteer / ui / search / SearchDialog.java @ 15558

History | View | Annotate | Download (4.05 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 java.awt.event.WindowEvent;
44
import java.awt.event.WindowListener;
45

    
46
import javax.swing.JFrame;
47

    
48
import es.gva.cit.catalog.utils.Frames;
49
import es.gva.cit.gazetteer.GazetteerClient;
50

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

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

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

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

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

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

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

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

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

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