Revision 4187 branches/v05/extensions/extWMS/src/com/iver/cit/gvsig/gui/panels/DimensionPanel.java
DimensionPanel.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
|
1 |
/* gvSIG. Sistema de Informaci�n Geogr�fica de la Generalitat Valenciana
|
|
2 | 2 |
* |
3 | 3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
4 | 4 |
* |
... | ... | |
20 | 20 |
* |
21 | 21 |
* Generalitat Valenciana |
22 | 22 |
* Conselleria d'Infraestructures i Transport |
23 |
* Av. Blasco Ib??ez, 50
|
|
23 |
* Av. Blasco Ib��ez, 50
|
|
24 | 24 |
* 46010 VALENCIA |
25 | 25 |
* SPAIN |
26 | 26 |
* |
... | ... | |
143 | 143 |
private Pager getJPanel() { |
144 | 144 |
if (pager == null) { |
145 | 145 |
pager = new Pager(Pager.HORIZONTAL); |
146 |
pager.setBounds(5, 20, 190, 50);
|
|
146 |
pager.setBounds(5, 20, 240, 50);
|
|
147 | 147 |
pager.addListener(new BeanListener() { |
148 | 148 |
public void beanValueChanged(Object value) { |
149 | 149 |
currentSelectedValue = ((Integer) value).intValue(); |
... | ... | |
164 | 164 |
if (valueEditionPanel == null) { |
165 | 165 |
ButtonGroup group = new ButtonGroup(); |
166 | 166 |
lblValueText = new JLabel(); |
167 |
lblValueText.setBounds(54, 4, 140, 20);
|
|
167 |
lblValueText.setBounds(54, 4, 190, 20);
|
|
168 | 168 |
lblValueText.setText(""); |
169 | 169 |
lblValue = new JLabel(); |
170 | 170 |
lblValue.setBounds(7, 4, 45, 20); |
... | ... | |
173 | 173 |
java.awt.Font.BOLD, 11)); |
174 | 174 |
valueEditionPanel = new JPanel(); |
175 | 175 |
valueEditionPanel.setLayout(null); |
176 |
valueEditionPanel.setBounds(256, 12, 195, 200);
|
|
176 |
valueEditionPanel.setBounds(206, 12, 245, 200);
|
|
177 | 177 |
valueEditionPanel.add(getRdBtnSingleValue(), null); |
178 | 178 |
valueEditionPanel.add(getRdBtnMultipleValue(), null); |
179 | 179 |
valueEditionPanel.add(getRdBtnInterval(), null); |
... | ... | |
199 | 199 |
private JRadioButton getRdBtnSingleValue() { |
200 | 200 |
if (rdBtnSingle == null) { |
201 | 201 |
rdBtnSingle = new JRadioButton(); |
202 |
rdBtnSingle.setBounds(7, 70, 128, 20);
|
|
202 |
rdBtnSingle.setBounds(7, 70, 180, 20);
|
|
203 | 203 |
rdBtnSingle.addActionListener(new java.awt.event.ActionListener() { |
204 | 204 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
205 | 205 |
mode = SINGLE_VALUE; |
... | ... | |
219 | 219 |
private JRadioButton getRdBtnMultipleValue() { |
220 | 220 |
if (rdBtnMultiple == null) { |
221 | 221 |
rdBtnMultiple = new JRadioButton(); |
222 |
rdBtnMultiple.setBounds(7, 89, 130, 20);
|
|
222 |
rdBtnMultiple.setBounds(7, 89, 180, 20);
|
|
223 | 223 |
rdBtnMultiple |
224 | 224 |
.addActionListener(new java.awt.event.ActionListener() { |
225 | 225 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
... | ... | |
241 | 241 |
private JRadioButton getRdBtnInterval() { |
242 | 242 |
if (rdBtnInterval == null) { |
243 | 243 |
rdBtnInterval = new JRadioButton(); |
244 |
rdBtnInterval.setBounds(7, 108, 130, 20);
|
|
244 |
rdBtnInterval.setBounds(7, 108, 180, 20);
|
|
245 | 245 |
rdBtnInterval |
246 | 246 |
.addActionListener(new java.awt.event.ActionListener() { |
247 | 247 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
... | ... | |
262 | 262 |
private JButton getBtnAdd() { |
263 | 263 |
if (btnAdd == null) { |
264 | 264 |
btnAdd = new JButton(); |
265 |
btnAdd.setBounds(7, 127, 90, 23);
|
|
265 |
btnAdd.setBounds(7, 130, 110, 20);
|
|
266 | 266 |
btnAdd.addActionListener(new java.awt.event.ActionListener() { |
267 | 267 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
268 | 268 |
execute("add"); |
... | ... | |
419 | 419 |
private JTextField getTxt() { |
420 | 420 |
if (txt == null) { |
421 | 421 |
txt = new JTextField(); |
422 |
txt.setBounds(8, 152, 180, 22);
|
|
422 |
txt.setBounds(7, 153, 234, 22);
|
|
423 | 423 |
txt.addKeyListener(new java.awt.event.KeyAdapter() { |
424 | 424 |
public void keyTyped(java.awt.event.KeyEvent e) { |
425 | 425 |
userEdits = true; |
... | ... | |
437 | 437 |
private JScrollPane getScrlDimension() { |
438 | 438 |
if (scrlDimension == null) { |
439 | 439 |
scrlDimension = new JScrollPane(); |
440 |
scrlDimension.setBounds(5, 17, 250, 196);
|
|
440 |
scrlDimension.setBounds(5, 17, 200, 196);
|
|
441 | 441 |
scrlDimension.setViewportView(getLstDimensions()); |
442 | 442 |
} |
443 | 443 |
return scrlDimension; |
... | ... | |
505 | 505 |
} |
506 | 506 |
} |
507 | 507 |
pager.setItemCount(currentDimension.valueCount()); |
508 |
pager.setValue(0, false);
|
|
508 |
pager.setValue(0, true);
|
|
509 | 509 |
} |
510 | 510 |
|
511 | 511 |
/** |
... | ... | |
592 | 592 |
private JButton getBtnSet() { |
593 | 593 |
if (btnSet == null) { |
594 | 594 |
btnSet = new JButton(); |
595 |
btnSet.setBounds(7, 177, 90, 23);
|
|
595 |
btnSet.setBounds(7, 178, 110, 20);
|
|
596 | 596 |
btnSet.setText(PluginServices.getText(this, "set")); |
597 | 597 |
btnSet.addActionListener(new java.awt.event.ActionListener() { |
598 | 598 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
... | ... | |
611 | 611 |
private JButton getBtnClear() { |
612 | 612 |
if (btnClear == null) { |
613 | 613 |
btnClear = new JButton(); |
614 |
btnClear.setBounds(97, 127, 90, 23);
|
|
614 |
btnClear.setBounds(131, 130, 110, 20);
|
|
615 | 615 |
btnClear.setText(PluginServices.getText(this, "clear")); |
616 | 616 |
btnClear.addActionListener(new java.awt.event.ActionListener() { |
617 | 617 |
public void actionPerformed(java.awt.event.ActionEvent e) { |
... | ... | |
664 | 664 |
String separator = (val.getMode() == MULTIPLE_VALUE) ? "," : "/"; |
665 | 665 |
Integer[] indexes = val.getIndexes(); |
666 | 666 |
for (int j = 0; j < indexes.length; j++) { |
667 |
// values += ((IFMapWMSDimension) key).valueAt(indexes[j] |
|
668 |
// .intValue()); |
|
669 | 667 |
values += val.getOwner().valueAt(indexes[j].intValue()); |
670 | 668 |
if (j < indexes.length - 1) |
671 | 669 |
values += separator; |
672 | 670 |
} |
673 |
// v.add(((IFMapWMSDimension) key).getName() + "=" + values); |
|
674 | 671 |
v.add((String)key + "=" + values); |
675 | 672 |
} |
676 | 673 |
i++; |
Also available in: Unified diff