Revision 6115 trunk/extensions/extWMS/src/com/iver/cit/gvsig/gui/panels/DimensionPanel.java

View differences:

DimensionPanel.java
45 45
import java.util.Vector;
46 46

  
47 47
import javax.swing.ButtonGroup;
48
import javax.swing.JButton;
48
import org.gvsig.gui.beans.swing.JButton;
49 49
import javax.swing.JEditorPane;
50 50
import javax.swing.JLabel;
51 51
import javax.swing.JList;
......
63 63

  
64 64
/**
65 65
 * This is the Dimensions tab of the WMS wizard.
66
 * 
66
 *
67 67
 * @author jaume
68
 * 
68
 *
69 69
 */
70 70
public class DimensionPanel extends DefaultBean {
71 71
	static private final int SINGLE_VALUE = 0;
......
106 106
	 * Will contain the settings for a getMap query which are just text. Since
107 107
	 * only one Dimension definition expression is allowed the key for this hash
108 108
	 * map is the dimension name.
109
	 * 
109
	 *
110 110
	 * <b>key:</b> dimension name as string <br>
111 111
	 * <b>value:</b> dimension value as string
112 112
	 */
......
122 122

  
123 123
	/**
124 124
	 * This method initializes this
125
	 * 
125
	 *
126 126
	 * @return void
127 127
	 */
128 128
	private void initialize() {
......
138 138

  
139 139
	/**
140 140
	 * This method initializes jPanel
141
	 * 
141
	 *
142 142
	 * @return javax.swing.JPanel
143 143
	 */
144 144
	private Pager getJPanel() {
......
158 158

  
159 159
	/**
160 160
	 * This method initializes jPanel1
161
	 * 
161
	 *
162 162
	 * @return javax.swing.JPanel
163 163
	 */
164 164
	private JPanel getJPanel1() {
......
194 194

  
195 195
	/**
196 196
	 * This method initializes jRadioButton
197
	 * 
197
	 *
198 198
	 * @return javax.swing.JRadioButton
199 199
	 */
200 200
	private JRadioButton getRdBtnSingleValue() {
......
214 214

  
215 215
	/**
216 216
	 * This method initializes jRadioButton1
217
	 * 
217
	 *
218 218
	 * @return javax.swing.JRadioButton
219 219
	 */
220 220
	private JRadioButton getRdBtnMultipleValue() {
......
236 236

  
237 237
	/**
238 238
	 * This method initializes jRadioButton2
239
	 * 
239
	 *
240 240
	 * @return javax.swing.JRadioButton
241 241
	 */
242 242
	private JRadioButton getRdBtnInterval() {
......
257 257

  
258 258
	/**
259 259
	 * This method initializes btnAdd
260
	 * 
260
	 *
261 261
	 * @return javax.swing.JButton
262 262
	 */
263 263
	private JButton getBtnAdd() {
......
316 316
			settings.remove(currentDimension.getName());
317 317
			callValueChanged(getDimensions());
318 318
		} else if (actionCommand.equals("set")) {
319
			
319

  
320 320
			/*
321 321
			 * Two kinds of input data is accepted: - An array of Integer
322 322
			 * representing points which are computed and obtained from the
......
340 340
			if ((type == Value.EXPR && !((String) val).equals(""))	||
341 341
				(type == Value.INDEXES && ((Integer[]) val).length>0)){
342 342
				settings.put(currentDimension.getName(), new Value(type, mode, val, currentDimension));
343
				
343

  
344 344
			}
345 345
			callValueChanged(getDimensions());
346 346
		}
347 347
		refreshInfo();
348
		
348

  
349 349
		return b;
350 350
	}
351 351

  
......
414 414

  
415 415
	/**
416 416
	 * This method initializes txt
417
	 * 
417
	 *
418 418
	 * @return javax.swing.JTextField
419 419
	 */
420 420
	private JTextField getTxt() {
......
432 432

  
433 433
	/**
434 434
	 * This method initializes scrlDimension
435
	 * 
435
	 *
436 436
	 * @return javax.swing.JScrollPane
437 437
	 */
438 438
	private JScrollPane getScrlDimension() {
......
446 446

  
447 447
	/**
448 448
	 * This method initializes jList
449
	 * 
449
	 *
450 450
	 * @return javax.swing.JList
451 451
	 */
452 452
	private JList getLstDimensions() {
......
490 490
				else
491 491
					getRdBtnInterval().setSelected(true);
492 492
			}
493
			
493

  
494 494
			// text of VALUE
495 495
			if (val.type == Value.EXPR) {
496 496
				txt.setText(val.getExpr());
......
511 511

  
512 512
	/**
513 513
	 * This method initializes editionPanel
514
	 * 
514
	 *
515 515
	 * @return javax.swing.JPanel
516 516
	 */
517 517
	private JPanel getEditionPanel() {
......
538 538

  
539 539
	/**
540 540
	 * This method initializes scrDimInfo
541
	 * 
541
	 *
542 542
	 * @return javax.swing.JScrollPane
543 543
	 */
544 544
	private JScrollPane getScrDimInfo() {
......
552 552

  
553 553
	/**
554 554
	 * This method initializes infoEditor
555
	 * 
555
	 *
556 556
	 * @return javax.swing.JEditorPane
557 557
	 */
558 558
	private JEditorPane getInfoEditor() {
......
565 565

  
566 566
	/**
567 567
	 * This method initializes valuePanel
568
	 * 
568
	 *
569 569
	 * @return javax.swing.JPanel
570 570
	 */
571 571
	private JPanel getValuePanel() {
......
587 587

  
588 588
	/**
589 589
	 * This method initializes btnSet
590
	 * 
590
	 *
591 591
	 * @return javax.swing.JButton
592 592
	 */
593 593
	private JButton getBtnSet() {
......
606 606

  
607 607
	/**
608 608
	 * This method initializes btnClear
609
	 * 
609
	 *
610 610
	 * @return javax.swing.JButton
611 611
	 */
612 612
	private JButton getBtnClear() {
......
625 625

  
626 626
	public void addDimension(IFMapWMSDimension d) throws IllegalArgumentException {
627 627
		d.compile();
628
		
628

  
629 629
		if (dim == null) {
630 630
			dim = new IFMapWMSDimension[] { d };
631 631
		} else {
......
680 680
	 * Sets the value for a Dimension given by the dimension name. The value is
681 681
	 * set as a plain text expressions and the panel will not keep track of what
682 682
	 * position represents this value.
683
	 * 
683
	 *
684 684
	 * @param name
685 685
	 * @param value
686 686
	 */
......
710 710
		private Object value;
711 711
		private IFMapWMSDimension owner;
712 712

  
713
		
714
		
713

  
714

  
715 715
		public Value(int type, int mode, Object value, IFMapWMSDimension owner) {
716 716
			this.type = type;
717 717
			this.valueMode = mode;
......
730 730
		 * a plain String that can be directly used as much it should represent
731 731
		 * a valid value for the WMS server. </li>
732 732
		 * </ol>
733
		 * 
733
		 *
734 734
		 * @return int
735 735
		 */
736 736
		public int getType() {
......
747 747
		}
748 748

  
749 749
		/**
750
		 * Expression of this value, if its type is EXPR 
750
		 * Expression of this value, if its type is EXPR
751 751
		 * @return
752 752
		 */
753 753
		public String getExpr() {

Also available in: Unified diff