Statistics
| Revision:

root / trunk / applications / appCatalogAndGazetteerClient / src / es / gva / cit / catalog / ui / chooseresource / ChooseResourceDialog.java @ 15558

History | View | Annotate | Download (4.2 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.catalog.ui.chooseresource;
43
import java.awt.event.WindowEvent;
44
import java.awt.event.WindowListener;
45
import java.util.Collection;
46

    
47
import javax.swing.JFrame;
48

    
49
import es.gva.cit.catalog.schemas.Resource;
50
import es.gva.cit.catalog.utils.Frames;
51

    
52
/**
53
 * 
54
 * 
55
 * 
56
 * @author Jorge Piera Llodra (piera_jor@gva.es)
57
 */
58
public class ChooseResourceDialog extends JFrame implements WindowListener {
59

    
60
/**
61
 * Crea un nuevo ChooseResourceDialog.
62
 * 
63
 * @param cliente DOCUMENT ME!
64
 * 
65
 * @param resources 
66
 */
67
    public  ChooseResourceDialog(Collection resources) {        
68
        super();
69
        initialize(resources);
70
    } 
71

    
72
/**
73
 * This method initializes jDialog
74
 * 
75
 * 
76
 * @param resources 
77
 */
78
    private void initialize(Collection resources) {        
79
        Frames.centerFrame(this,600,175);
80
        this.setTitle("Busqueda de Cat?logo");
81
        //setResizable(false);
82
        setName("chooseResources");
83
        ChooseResourceDialogPanel panel = new ChooseResourceDialogPanel(resources);
84
        panel.setParent(this);
85
        getContentPane().add(panel);
86
       
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
    // TODO Auto-generated method stub
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
    // TODO Auto-generated method stub
114
    } 
115
/* (non-Javadoc)
116
 * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)
117
 */
118

    
119
/**
120
 * 
121
 * 
122
 * 
123
 * @param e 
124
 */
125
    public void windowClosing(WindowEvent e) {        
126
    // TODO Auto-generated method stub
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
    // TODO Auto-generated method stub
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
    // TODO Auto-generated method stub
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
    // TODO Auto-generated method stub
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
    // TODO Auto-generated method stub
179
    } 
180
/* (non-Javadoc)
181
 * @see es.gva.cit.catalogClient.ui.ILoadResource#loadResource(es.gva.cit.catalogClient.parsers.Resource)
182
 */
183

    
184
/**
185
 * 
186
 * 
187
 * 
188
 * @param resource 
189
 */
190
    public void loadResource(Resource resource) {        
191
    System.out.println(resource.getLinkage() + " solo puede ser cargado usando gvSIG");
192
    } 
193
 }