Statistics
| Revision:

svn-gvsig-desktop / trunk / applications / appCatalogYNomenclatorClient / src / es / gva / cit / gazetteer / ui / showResults / ShowResultsDialog.java @ 3613

History | View | Annotate | Download (4.88 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.showResults;
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 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
 * 
55
 * 
56
 * @author luisw
57
 */
58
public class ShowResultsDialog extends JDialog implements WindowListener {
59

    
60
/**
61
 * 
62
 * 
63
 */
64
    int recordsByPage;
65

    
66
/**
67
 * 
68
 * 
69
 */
70
    protected boolean isGotoClicked;
71

    
72
/**
73
 * 
74
 * 
75
 */
76
    protected boolean isKeepOldClicked;
77
/**
78
 * <p></p>
79
 * 
80
 * 
81
 */
82
    protected es.gva.cit.gazetteer.ui.showResults.ShowResultsDialogPanel showResultsDialogPanel = null;
83

    
84
/**
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
        super();
96
        this.recordsByPage = recordsByPage;
97
        this.isGotoClicked = isGotoClicked;
98
        this.isKeepOldClicked = isKeepOldClicked;
99
        initialize(client,features);
100
    } 
101

    
102
/**
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
        Frames.centerFrame(this, 420, 257);
111
        this.setSize(new Dimension(420, 257));
112
        this.setTitle("Cliente Gazetteer");
113
        ShowResultsDialogPanel panel = new ShowResultsDialogPanel(gazetteerClient,
114
                features, recordsByPage, new WithOutAndamiTranslator(),isGotoClicked,isKeepOldClicked);
115
        panel.setParent(this);
116
        getContentPane().add(panel);
117
        this.setVisible(true);
118
    } 
119
/* (non-Javadoc)
120
     * @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
121
     */
122

    
123
/**
124
 * 
125
 * 
126
 * 
127
 * @param e 
128
 */
129
    public void windowActivated(WindowEvent e) {        
130
        // TODO Auto-generated method stub
131
    } 
132
/* (non-Javadoc)
133
     * @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
134
     */
135

    
136
/**
137
 * 
138
 * 
139
 * 
140
 * @param e 
141
 */
142
    public void windowClosed(WindowEvent e) {        
143
        // TODO Auto-generated method stub
144
    } 
145
/* (non-Javadoc)
146
     * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)
147
     */
148

    
149
/**
150
 * 
151
 * 
152
 * 
153
 * @param e 
154
 */
155
    public void windowClosing(WindowEvent e) {        
156
        // TODO Auto-generated method stub
157
    } 
158
/* (non-Javadoc)
159
     * @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
160
     */
161

    
162
/**
163
 * 
164
 * 
165
 * 
166
 * @param e 
167
 */
168
    public void windowDeactivated(WindowEvent e) {        
169
        // TODO Auto-generated method stub
170
    } 
171
/* (non-Javadoc)
172
     * @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
173
     */
174

    
175
/**
176
 * 
177
 * 
178
 * 
179
 * @param e 
180
 */
181
    public void windowDeiconified(WindowEvent e) {        
182
        // TODO Auto-generated method stub
183
    } 
184
/* (non-Javadoc)
185
     * @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
186
     */
187

    
188
/**
189
 * 
190
 * 
191
 * 
192
 * @param e 
193
 */
194
    public void windowIconified(WindowEvent e) {        
195
        // TODO Auto-generated method stub
196
    } 
197
/* (non-Javadoc)
198
     * @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
199
     */
200

    
201
/**
202
 * 
203
 * 
204
 * 
205
 * @param e 
206
 */
207
    public void windowOpened(WindowEvent e) {        
208
        // TODO Auto-generated method stub
209
    } 
210
 }