Revision 3566 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/ui/chooseResource/ChooseResourceDialog.java

View differences:

ChooseResourceDialog.java
1
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
1

  
2
/* gvSIG. Sistema de Informaci??n Geogr??fica de la Generalitat Valenciana
2 3
*
3 4
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4 5
*
......
20 21
*
21 22
*  Generalitat Valenciana
22 23
*   Conselleria d'Infraestructures i Transport
23
*   Av. Blasco Ib��ez, 50
24
*   Av. Blasco Ib????ez, 50
24 25
*   46010 VALENCIA
25 26
*   SPAIN
26 27
*
......
39 40
*   dac@iver.es
40 41
*/
41 42
package es.gva.cit.catalogClient.ui.chooseResource;
42

  
43
import es.gva.cit.catalogClient.schemas.discoverer.Resource;
44
import es.gva.cit.catalogClient.traductor.WithOutAndamiTranslator;
45
import es.gva.cit.catalogClient.utils.Frames;
43 46
import java.awt.event.WindowEvent;
44 47
import java.awt.event.WindowListener;
45

  
48
import java.util.Collection;
46 49
import javax.swing.JFrame;
47 50

  
48
import es.gva.cit.catalogClient.schemas.discoverer.Resource;
49
import es.gva.cit.catalogClient.traductor.WithOutAndamiTranslator;
50
import es.gva.cit.catalogClient.utils.Frames;
51

  
52 51
/**
52
 * 
53
 * 
54
 * 
53 55
 * @author Jorge Piera Llodra (piera_jor@gva.es)
54 56
 */
55 57
public class ChooseResourceDialog extends JFrame implements WindowListener {
56
    private ChooseResourceDialogPanel contentPane = null;
57
    private Resource[] resources = null;
58
    
59
    /**
60
     * Crea un nuevo ChooseResourceDialog.
61
     *
62
     * @param cliente DOCUMENT ME!
63
     */
64
    public ChooseResourceDialog(Resource[] resources) {
58

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

  
70
    /**
71
     * This method initializes jDialog
72
     */
73
    private void initialize() {
71
/**
72
 * This method initializes jDialog
73
 * 
74
 * 
75
 * @param resources 
76
 */
77
    private void initialize(Collection resources) {        
74 78
        Frames.centerFrame(this,600,175);
75

  
76
        this.setTitle("B�squeda de Cat�logo");
77

  
79
        this.setTitle("B??squeda de Cat??logo");
78 80
        //setResizable(false);
79 81
        setName("chooseResources");
80

  
81 82
        ChooseResourceDialogPanel panel = new ChooseResourceDialogPanel(resources,new WithOutAndamiTranslator());
82 83
        panel.setParent(this);
83 84
        getContentPane().add(panel);
84 85
       
85 86
        setVisible(true);
86
    }
87

  
88

  
87
    } 
89 88
/* (non-Javadoc)
90 89
 * @see java.awt.event.WindowListener#windowActivated(java.awt.event.WindowEvent)
91 90
 */
92
public void windowActivated(WindowEvent e) {
91

  
92
/**
93
 * 
94
 * 
95
 * 
96
 * @param e 
97
 */
98
    public void windowActivated(WindowEvent e) {        
93 99
    // TODO Auto-generated method stub
94
    
95
}
96

  
100
    } 
97 101
/* (non-Javadoc)
98 102
 * @see java.awt.event.WindowListener#windowClosed(java.awt.event.WindowEvent)
99 103
 */
100
public void windowClosed(WindowEvent e) {
104

  
105
/**
106
 * 
107
 * 
108
 * 
109
 * @param e 
110
 */
111
    public void windowClosed(WindowEvent e) {        
101 112
    // TODO Auto-generated method stub
102
    
103
}
104

  
113
    } 
105 114
/* (non-Javadoc)
106 115
 * @see java.awt.event.WindowListener#windowClosing(java.awt.event.WindowEvent)
107 116
 */
108
public void windowClosing(WindowEvent e) {
117

  
118
/**
119
 * 
120
 * 
121
 * 
122
 * @param e 
123
 */
124
    public void windowClosing(WindowEvent e) {        
109 125
    // TODO Auto-generated method stub
110
    
111
}
112

  
126
    } 
113 127
/* (non-Javadoc)
114 128
 * @see java.awt.event.WindowListener#windowDeactivated(java.awt.event.WindowEvent)
115 129
 */
116
public void windowDeactivated(WindowEvent e) {
130

  
131
/**
132
 * 
133
 * 
134
 * 
135
 * @param e 
136
 */
137
    public void windowDeactivated(WindowEvent e) {        
117 138
    // TODO Auto-generated method stub
118
    
119
}
120

  
139
    } 
121 140
/* (non-Javadoc)
122 141
 * @see java.awt.event.WindowListener#windowDeiconified(java.awt.event.WindowEvent)
123 142
 */
124
public void windowDeiconified(WindowEvent e) {
143

  
144
/**
145
 * 
146
 * 
147
 * 
148
 * @param e 
149
 */
150
    public void windowDeiconified(WindowEvent e) {        
125 151
    // TODO Auto-generated method stub
126
    
127
}
128

  
152
    } 
129 153
/* (non-Javadoc)
130 154
 * @see java.awt.event.WindowListener#windowIconified(java.awt.event.WindowEvent)
131 155
 */
132
public void windowIconified(WindowEvent e) {
156

  
157
/**
158
 * 
159
 * 
160
 * 
161
 * @param e 
162
 */
163
    public void windowIconified(WindowEvent e) {        
133 164
    // TODO Auto-generated method stub
134
    
135
}
136

  
165
    } 
137 166
/* (non-Javadoc)
138 167
 * @see java.awt.event.WindowListener#windowOpened(java.awt.event.WindowEvent)
139 168
 */
140
public void windowOpened(WindowEvent e) {
169

  
170
/**
171
 * 
172
 * 
173
 * 
174
 * @param e 
175
 */
176
    public void windowOpened(WindowEvent e) {        
141 177
    // TODO Auto-generated method stub
142
    
143
}
144

  
178
    } 
145 179
/* (non-Javadoc)
146 180
 * @see es.gva.cit.catalogClient.ui.ILoadResource#loadResource(es.gva.cit.catalogClient.parsers.Resource)
147 181
 */
148
public void loadResource(Resource resource) {
182

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

Also available in: Unified diff