Revision 17593 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/gui/panels/WFSOptionsPanel.java
WFSOptionsPanel.java | ||
---|---|---|
107 | 107 |
* @author Jorge Piera Llodr? (piera_jor@gva.es) |
108 | 108 |
* @author Pablo Piqueras Bartolom? |
109 | 109 |
*/ |
110 |
public class WFSOptionsPanel extends JPanel{
|
|
110 |
public class WFSOptionsPanel extends DefaultWFSDialogPanel{
|
|
111 | 111 |
|
112 | 112 |
private JPanel credentialsPanel = null; |
113 | 113 |
private JLabel usernameLabel = null; |
... | ... | |
123 | 123 |
private JLabel srsLabel = null; |
124 | 124 |
private JTextField srsText = null; |
125 | 125 |
private JLabel jLabelMiliSeconds = null; |
126 |
private WFSParamsPanel parent = null; |
|
127 |
/** |
|
128 |
* This method initializes |
|
129 |
* |
|
130 |
*/ |
|
131 |
public WFSOptionsPanel(WFSParamsPanel parent) { |
|
126 |
|
|
127 |
public WFSOptionsPanel() { |
|
132 | 128 |
super(); |
133 |
this.parent = parent; |
|
134 | 129 |
initialize(); |
135 | 130 |
} |
136 | 131 |
|
137 | 132 |
/** |
138 |
* This method initializes this |
|
139 |
* |
|
140 |
*/ |
|
141 |
private void initialize() { |
|
142 |
this.setLayout(null); |
|
143 |
this.setBounds(10, 5, 481, 427); |
|
144 |
this.add(getConnectionParamsPanel(), null); |
|
145 |
this.add(getFormatPanel(), null); |
|
146 |
} |
|
147 |
|
|
148 |
|
|
149 |
/** |
|
150 | 133 |
* This method initializes usernameText |
151 | 134 |
* |
152 | 135 |
* @return javax.swing.JTextField |
... | ... | |
157 | 140 |
usernameText.setBounds(new java.awt.Rectangle(100,25,200,20)); |
158 | 141 |
usernameText.addKeyListener(new java.awt.event.KeyAdapter() { |
159 | 142 |
public void keyTyped(java.awt.event.KeyEvent e) { |
160 |
parent.isApplicable(true);
|
|
143 |
getParamsPanelData().isApplicable(true);
|
|
161 | 144 |
} |
162 | 145 |
}); |
163 | 146 |
} |
... | ... | |
175 | 158 |
passwordText.setBounds(new java.awt.Rectangle(100,50,200,20)); |
176 | 159 |
passwordText.addKeyListener(new java.awt.event.KeyAdapter() { |
177 | 160 |
public void keyTyped(java.awt.event.KeyEvent e) { |
178 |
parent.isApplicable(true);
|
|
161 |
getParamsPanelData().isApplicable(true);
|
|
179 | 162 |
} |
180 | 163 |
}); |
181 | 164 |
} |
... | ... | |
225 | 208 |
bufferText.setToolTipText(PluginServices.getText(bufferText, "set_Max_Number_Of_Features_Will_Be_Loaded")); |
226 | 209 |
bufferText.addKeyListener(new java.awt.event.KeyAdapter() { |
227 | 210 |
public void keyTyped(java.awt.event.KeyEvent e) { |
228 |
parent.isApplicable(true);
|
|
211 |
getParamsPanelData().isApplicable(true);
|
|
229 | 212 |
} |
230 | 213 |
}); |
231 | 214 |
} |
... | ... | |
245 | 228 |
timeOutText.setToolTipText(PluginServices.getText(timeOutText, "set_TimeOut_Explanation")); |
246 | 229 |
timeOutText.addKeyListener(new java.awt.event.KeyAdapter() { |
247 | 230 |
public void keyTyped(java.awt.event.KeyEvent e) { |
248 |
parent.isApplicable(true);
|
|
231 |
getParamsPanelData().isApplicable(true);
|
|
249 | 232 |
} |
250 | 233 |
}); |
251 | 234 |
} |
... | ... | |
296 | 279 |
return 10000; |
297 | 280 |
} |
298 | 281 |
} |
299 |
|
|
282 |
|
|
300 | 283 |
/** |
301 | 284 |
* Gets the SRS |
302 | 285 |
* @return |
... | ... | |
348 | 331 |
* Refresh the panel |
349 | 332 |
* @param feature |
350 | 333 |
*/ |
351 |
public void refresh(WFSLayerNode feature) {
|
|
352 |
Vector srs = feature.getSrs();
|
|
334 |
public void refresh(WFSLayerNode layer) {
|
|
335 |
Vector srs = layer.getSrs();
|
|
353 | 336 |
if (srs.size() > 0){ |
354 | 337 |
getSrsText().setText((String)srs.get(0)); |
355 | 338 |
} |
... | ... | |
361 | 344 |
getUsernameText().setText(status.getUserName()); |
362 | 345 |
getPasswordText().setText(status.getPassword()); |
363 | 346 |
} |
364 |
|
|
347 |
|
|
365 | 348 |
public JLabel getJLabelMiliSeconds() { |
366 | 349 |
if (jLabelMiliSeconds == null) { |
367 | 350 |
jLabelMiliSeconds = new JLabel(); |
... | ... | |
371 | 354 |
|
372 | 355 |
return jLabelMiliSeconds; |
373 | 356 |
} |
357 |
|
|
358 |
@Override |
|
359 |
protected void initialize() { |
|
360 |
setLabel(PluginServices.getText(this, "options")); |
|
361 |
setLabelGroup(PluginServices.getText(this, "wfs")); |
|
362 |
this.setLayout(null); |
|
363 |
this.setBounds(10, 5, 481, 427); |
|
364 |
this.add(getConnectionParamsPanel(), null); |
|
365 |
this.add(getFormatPanel(), null); |
|
366 |
} |
|
374 | 367 |
} |
Also available in: Unified diff