svn-gvsig-desktop / branches / v05 / extensions / extWMS / src / com / iver / cit / gvsig / gui / panels / StylesPanel.java @ 3855
History | View | Annotate | Download (2.99 KB)
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
---|---|
2 |
*
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana.
|
4 |
*
|
5 |
* This program is free software; you can redistribute it and/or
|
6 |
* modify it under the terms of the GNU General Public License
|
7 |
* as published by the Free Software Foundation; either version 2
|
8 |
* of the License, or (at your option) any later version.
|
9 |
*
|
10 |
* This program is distributed in the hope that it will be useful,
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13 |
* GNU General Public License for more details.
|
14 |
*
|
15 |
* You should have received a copy of the GNU General Public License
|
16 |
* along with this program; if not, write to the Free Software
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
18 |
*
|
19 |
* For more information, contact:
|
20 |
*
|
21 |
* Generalitat Valenciana
|
22 |
* Conselleria d'Infraestructures i Transport
|
23 |
* Av. Blasco Ib??ez, 50
|
24 |
* 46010 VALENCIA
|
25 |
* SPAIN
|
26 |
*
|
27 |
* +34 963862235
|
28 |
* gvsig@gva.es
|
29 |
* www.gvsig.gva.es
|
30 |
*
|
31 |
* or
|
32 |
*
|
33 |
* IVER T.I. S.A
|
34 |
* Salamanca 50
|
35 |
* 46005 Valencia
|
36 |
* Spain
|
37 |
*
|
38 |
* +34 963163400
|
39 |
* dac@iver.es
|
40 |
*/
|
41 |
|
42 |
/* CVS MESSAGES:
|
43 |
*
|
44 |
* $Id: StylesPanel.java 3855 2006-01-31 16:25:24Z jaume $
|
45 |
* $Log$
|
46 |
* Revision 1.1.2.3 2006-01-31 16:25:24 jaume
|
47 |
* correcciones de bugs
|
48 |
*
|
49 |
* Revision 1.3 2006/01/31 10:40:31 jaume
|
50 |
* *** empty log message ***
|
51 |
*
|
52 |
* Revision 1.2 2006/01/26 16:07:14 jaume
|
53 |
* *** empty log message ***
|
54 |
*
|
55 |
* Revision 1.1.2.1 2006/01/26 12:59:32 jaume
|
56 |
* 0.5
|
57 |
*
|
58 |
* Revision 1.1 2006/01/25 09:08:53 jaume
|
59 |
* test save and reload project
|
60 |
*
|
61 |
*
|
62 |
*/
|
63 |
package com.iver.cit.gvsig.gui.panels; |
64 |
|
65 |
import javax.swing.JScrollPane; |
66 |
|
67 |
import com.iver.cit.gvsig.gui.beans.DefaultBean; |
68 |
|
69 |
|
70 |
/**
|
71 |
* This is the Styles tab of the WMS wizard.
|
72 |
*
|
73 |
* @author jaume dominguez faus - jaume.dominguez@iver.es
|
74 |
*
|
75 |
*/
|
76 |
class StylesPanel extends DefaultBean{ |
77 |
private JScrollPane jScrollPane = null; |
78 |
private StyleTree treeStyles = null; |
79 |
public StylesPanel(){
|
80 |
super();
|
81 |
setLayout(null);
|
82 |
add(getJScrollPane(), null);
|
83 |
} |
84 |
/**
|
85 |
* This method initializes jScrollPane3
|
86 |
*
|
87 |
* @return javax.swing.JScrollPane
|
88 |
*/
|
89 |
private JScrollPane getJScrollPane() { |
90 |
if (jScrollPane == null) { |
91 |
jScrollPane = new JScrollPane(); |
92 |
jScrollPane.setBounds(7, 50, 455, 327); |
93 |
jScrollPane.setViewportView(getStyleTree()); |
94 |
} |
95 |
return jScrollPane;
|
96 |
} |
97 |
|
98 |
/**
|
99 |
* This method initializes treeStyles
|
100 |
*
|
101 |
* @return javax.swing.JTree
|
102 |
*/
|
103 |
public StyleTree getStyleTree() {
|
104 |
if (treeStyles == null) { |
105 |
treeStyles = new StyleTree();
|
106 |
treeStyles.addMouseListener(new java.awt.event.MouseAdapter() {
|
107 |
public void mouseClicked(java.awt.event.MouseEvent e) { |
108 |
StyleTreeModel model = (StyleTreeModel) treeStyles.getModel(); |
109 |
callValueChanged(model.getStylesSelection()); |
110 |
} |
111 |
}); |
112 |
} |
113 |
return treeStyles;
|
114 |
} |
115 |
} |