Revision 8692 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.wms/org.gvsig.wms.swing/org.gvsig.wms.swing.impl/src/main/java/org/gvsig/wms/swing/impl/DefaultWMSParametersPanelView.java
DefaultWMSParametersPanelView.java | ||
---|---|---|
13 | 13 |
import javax.swing.JComboBox; |
14 | 14 |
import javax.swing.JEditorPane; |
15 | 15 |
import javax.swing.JLabel; |
16 |
import javax.swing.JList; |
|
16 | 17 |
import javax.swing.JPanel; |
17 | 18 |
import javax.swing.JRadioButton; |
18 | 19 |
import javax.swing.JScrollPane; |
19 | 20 |
import javax.swing.JSlider; |
20 | 21 |
import javax.swing.JTabbedPane; |
21 |
import javax.swing.JTable; |
|
22 | 22 |
import javax.swing.JTextField; |
23 | 23 |
import javax.swing.JTree; |
24 | 24 |
|
... | ... | |
53 | 53 |
JButton btnRemoveLayer = new JButton(); |
54 | 54 |
JButton btnUpLayer = new JButton(); |
55 | 55 |
JButton btnDownLayer = new JButton(); |
56 |
JTable tblLayers = new JTable();
|
|
56 |
JList lstLayers = new JList();
|
|
57 | 57 |
JTree treeStyles = new JTree(); |
58 | 58 |
JLabel lblSettings = new JLabel(); |
59 |
JTable tblDimensionsSettings = new JTable(); |
|
60 | 59 |
JLabel lblSettingsEditor = new JLabel(); |
61 |
JTable tblDimensions = new JTable(); |
|
62 | 60 |
JLabel lblValue = new JLabel(); |
63 | 61 |
JSlider sldValues = new JSlider(); |
64 | 62 |
JButton btnFirst = new JButton(); |
... | ... | |
75 | 73 |
JLabel lblFieldValue = new JLabel(); |
76 | 74 |
JButton btnAddSetting = new JButton(); |
77 | 75 |
JButton btnClearSetting = new JButton(); |
76 |
JList lstDimensions = new JList(); |
|
77 |
JList lstDimensionsSettings = new JList(); |
|
78 | 78 |
JLabel lblFormats = new JLabel(); |
79 |
JTable tblFormats = new JTable(); |
|
80 | 79 |
JCheckBox chkTransparency = new JCheckBox(); |
81 | 80 |
JLabel lblProjection = new JLabel(); |
82 |
JTable tblProjections = new JTable(); |
|
83 | 81 |
JLabel lblInfoFormat = new JLabel(); |
84 |
JTable tblInfoFormats = new JTable(); |
|
82 |
JList lstInfoFormats = new JList(); |
|
83 |
JList lstProjections = new JList(); |
|
84 |
JList lstFormats = new JList(); |
|
85 | 85 |
|
86 | 86 |
/** |
87 | 87 |
* Default constructor |
... | ... | |
250 | 250 |
|
251 | 251 |
txtInformation.setContentType("text/html"); |
252 | 252 |
txtInformation.setName("txtInformation"); |
253 |
txtInformation.setText("<html>\n <head>\n\n </head>\n <body>\n <p style=\"margin-top: 0\">\n \n </p>\n </body>\n</html>\n"); |
|
253 |
txtInformation.setSelectionEnd(1); |
|
254 |
txtInformation.setSelectionStart(1); |
|
255 |
txtInformation.setText("<html>\n <head>\n \n </head>\n <body>\n </body>\n</html>\n"); |
|
254 | 256 |
JScrollPane jscrollpane1 = new JScrollPane(); |
255 | 257 |
jscrollpane1.setViewportView(txtInformation); |
256 | 258 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
... | ... | |
294 | 296 |
public JPanel createPanel3() |
295 | 297 |
{ |
296 | 298 |
JPanel jpanel1 = new JPanel(); |
297 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
|
|
299 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:GROW(1.0),CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
|
|
298 | 300 |
CellConstraints cc = new CellConstraints(); |
299 | 301 |
jpanel1.setLayout(formlayout1); |
300 | 302 |
|
301 | 303 |
lblLayerName.setName("lblLayerName"); |
302 | 304 |
lblLayerName.setText("_layer_name"); |
303 |
lblLayerName.setToolTipText("_layer_name"); |
|
305 |
lblLayerName.setToolTipText("_layer_name_in_toc");
|
|
304 | 306 |
jpanel1.add(lblLayerName,cc.xy(2,2)); |
305 | 307 |
|
306 | 308 |
txtLayerName.setName("txtLayerName"); |
307 |
txtLayerName.setToolTipText("_layer_name"); |
|
309 |
txtLayerName.setToolTipText("_layer_name_in_toc");
|
|
308 | 310 |
jpanel1.add(txtLayerName,cc.xy(2,4)); |
309 | 311 |
|
310 | 312 |
lblSelectLayers.setName("lblSelectLayers"); |
... | ... | |
368 | 370 |
btnDownLayer.setToolTipText("_down_layer"); |
369 | 371 |
jpanel1.add(btnDownLayer,cc.xy(3,8)); |
370 | 372 |
|
371 |
tblLayers.setName("tblLayers"); |
|
372 |
tblLayers.setToolTipText("_layers"); |
|
373 |
lstLayers.setName("lstLayers"); |
|
373 | 374 |
JScrollPane jscrollpane1 = new JScrollPane(); |
374 |
jscrollpane1.setViewportView(tblLayers);
|
|
375 |
jscrollpane1.setViewportView(lstLayers);
|
|
375 | 376 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
376 | 377 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
377 | 378 |
jpanel1.add(jscrollpane1,cc.xywh(1,1,1,9)); |
... | ... | |
410 | 411 |
lblSettings.setToolTipText("_settings"); |
411 | 412 |
jpanel1.add(lblSettings,cc.xy(2,2)); |
412 | 413 |
|
413 |
tblDimensionsSettings.setName("tblDimensionsSettings"); |
|
414 |
tblDimensionsSettings.setToolTipText("_settings"); |
|
415 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
416 |
jscrollpane1.setViewportView(tblDimensionsSettings); |
|
417 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
418 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
419 |
jpanel1.add(jscrollpane1,cc.xywh(2,4,3,1)); |
|
420 |
|
|
421 | 414 |
lblSettingsEditor.setName("lblSettingsEditor"); |
422 | 415 |
lblSettingsEditor.setText("_settings_editor"); |
423 | 416 |
lblSettingsEditor.setToolTipText("_settings_editor"); |
424 | 417 |
jpanel1.add(lblSettingsEditor,cc.xy(2,6)); |
425 | 418 |
|
426 |
tblDimensions.setName("tblDimensions"); |
|
427 |
tblDimensions.setToolTipText("_dimensions"); |
|
419 |
jpanel1.add(createPanel7(),cc.xy(4,8)); |
|
420 |
lstDimensions.setName("lstDimensions"); |
|
421 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
422 |
jscrollpane1.setViewportView(lstDimensions); |
|
423 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
424 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
425 |
jpanel1.add(jscrollpane1,cc.xy(2,8)); |
|
426 |
|
|
427 |
lstDimensionsSettings.setName("lstDimensionsSettings"); |
|
428 | 428 |
JScrollPane jscrollpane2 = new JScrollPane(); |
429 |
jscrollpane2.setViewportView(tblDimensions);
|
|
429 |
jscrollpane2.setViewportView(lstDimensionsSettings);
|
|
430 | 430 |
jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
431 | 431 |
jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
432 |
jpanel1.add(jscrollpane2,cc.xy(2,8));
|
|
432 |
jpanel1.add(jscrollpane2,cc.xywh(2,4,3,1));
|
|
433 | 433 |
|
434 |
jpanel1.add(createPanel7(),cc.xy(4,8)); |
|
435 | 434 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
436 | 435 |
return jpanel1; |
437 | 436 |
} |
... | ... | |
544 | 543 |
lblFormats.setToolTipText("_select_format"); |
545 | 544 |
jpanel1.add(lblFormats,cc.xy(2,2)); |
546 | 545 |
|
547 |
tblFormats.setName("tblFormats"); |
|
548 |
tblFormats.setToolTipText("_select_format"); |
|
549 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
550 |
jscrollpane1.setViewportView(tblFormats); |
|
551 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
552 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
553 |
jpanel1.add(jscrollpane1,new CellConstraints(2,4,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
554 |
|
|
555 | 546 |
chkTransparency.setActionCommand("_transparency"); |
556 | 547 |
chkTransparency.setName("chkTransparency"); |
557 | 548 |
chkTransparency.setText("_transparency"); |
... | ... | |
563 | 554 |
lblProjection.setToolTipText("_select_crs"); |
564 | 555 |
jpanel1.add(lblProjection,cc.xy(2,8)); |
565 | 556 |
|
566 |
tblProjections.setName("tblProjections"); |
|
567 |
tblProjections.setToolTipText("_select_crs"); |
|
568 |
JScrollPane jscrollpane2 = new JScrollPane(); |
|
569 |
jscrollpane2.setViewportView(tblProjections); |
|
570 |
jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
571 |
jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
572 |
jpanel1.add(jscrollpane2,new CellConstraints(2,10,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
573 |
|
|
574 | 557 |
lblInfoFormat.setName("lblInfoFormat"); |
575 | 558 |
lblInfoFormat.setText("_select_info_format"); |
576 | 559 |
lblInfoFormat.setToolTipText("_select_info_format"); |
577 | 560 |
jpanel1.add(lblInfoFormat,cc.xy(2,12)); |
578 | 561 |
|
579 |
tblInfoFormats.setName("tblInfoFormats"); |
|
580 |
tblInfoFormats.setToolTipText("_select_info_format"); |
|
562 |
lstInfoFormats.setName("lstInfoFormats"); |
|
563 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
564 |
jscrollpane1.setViewportView(lstInfoFormats); |
|
565 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
566 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
567 |
jpanel1.add(jscrollpane1,new CellConstraints(2,14,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
568 |
|
|
569 |
lstProjections.setName("lstProjections"); |
|
570 |
JScrollPane jscrollpane2 = new JScrollPane(); |
|
571 |
jscrollpane2.setViewportView(lstProjections); |
|
572 |
jscrollpane2.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
573 |
jscrollpane2.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
574 |
jpanel1.add(jscrollpane2,new CellConstraints(2,10,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
575 |
|
|
576 |
lstFormats.setName("lstFormats"); |
|
581 | 577 |
JScrollPane jscrollpane3 = new JScrollPane(); |
582 |
jscrollpane3.setViewportView(tblInfoFormats);
|
|
578 |
jscrollpane3.setViewportView(lstFormats);
|
|
583 | 579 |
jscrollpane3.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
584 | 580 |
jscrollpane3.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
585 |
jpanel1.add(jscrollpane3,new CellConstraints(2,14,1,1,CellConstraints.FILL,CellConstraints.FILL));
|
|
581 |
jpanel1.add(jscrollpane3,new CellConstraints(2,4,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
|
586 | 582 |
|
587 | 583 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 }); |
588 | 584 |
return jpanel1; |
Also available in: Unified diff