Revision 43196 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.app/org.gvsig.app.mainplugin/src/main/java/org/gvsig/app/project/documents/view/legend/gui/GeneralLayerPropertiesPageView.java
GeneralLayerPropertiesPageView.java | ||
---|---|---|
5 | 5 |
import com.jgoodies.forms.layout.CellConstraints; |
6 | 6 |
import com.jgoodies.forms.layout.FormLayout; |
7 | 7 |
import java.awt.BorderLayout; |
8 |
import java.awt.Color; |
|
9 | 8 |
import java.awt.ComponentOrientation; |
10 | 9 |
import java.awt.Container; |
11 | 10 |
import java.awt.Dimension; |
... | ... | |
36 | 35 |
JTextField txtIsLessThan = new JTextField(); |
37 | 36 |
JTextField txtIsGreaterThan = new JTextField(); |
38 | 37 |
JTextField txtName = new JTextField(); |
39 |
TitledBorderLabel lblDataSource = new TitledBorderLabel(); |
|
40 |
JLabel lblSourceType = new JLabel(); |
|
41 |
JLabel lblSource = new JLabel(); |
|
42 |
JTextField txtSourceType = new JTextField(); |
|
43 |
JTextField txtSource = new JTextField(); |
|
44 | 38 |
JEditorPane txtProperties = new JEditorPane(); |
45 | 39 |
|
46 | 40 |
/** |
... | ... | |
133 | 127 |
public JPanel createPanel() |
134 | 128 |
{ |
135 | 129 |
JPanel jpanel1 = new JPanel(); |
136 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE");
|
|
130 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE"); |
|
137 | 131 |
CellConstraints cc = new CellConstraints(); |
138 | 132 |
jpanel1.setLayout(formlayout1); |
139 | 133 |
|
... | ... | |
159 | 153 |
|
160 | 154 |
lblProperties.setName("lblProperties"); |
161 | 155 |
lblProperties.setText("Properties"); |
162 |
jpanel1.add(lblProperties,cc.xywh(2,14,2,1));
|
|
156 |
jpanel1.add(lblProperties,cc.xywh(2,11,2,1));
|
|
163 | 157 |
|
164 | 158 |
jpanel1.add(createPanel1(),cc.xywh(2,9,2,1)); |
165 | 159 |
txtName.setName("txtName"); |
166 | 160 |
jpanel1.add(txtName,cc.xywh(2,3,2,1)); |
167 | 161 |
|
168 |
lblDataSource.setName("lblDataSource"); |
|
169 |
lblDataSource.setText("Data source"); |
|
170 |
jpanel1.add(lblDataSource,cc.xywh(2,11,2,1)); |
|
171 |
|
|
172 |
jpanel1.add(createPanel2(),cc.xywh(2,12,2,1)); |
|
173 | 162 |
txtProperties.setName("txtProperties"); |
174 | 163 |
JScrollPane jscrollpane1 = new JScrollPane(); |
175 | 164 |
jscrollpane1.setViewportView(txtProperties); |
176 | 165 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
177 | 166 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
178 |
jpanel1.add(jscrollpane1,cc.xywh(2,15,2,1));
|
|
167 |
jpanel1.add(jscrollpane1,cc.xywh(2,12,2,1));
|
|
179 | 168 |
|
180 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 });
|
|
169 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 }); |
|
181 | 170 |
return jpanel1; |
182 | 171 |
} |
183 | 172 |
|
... | ... | |
222 | 211 |
return jpanel1; |
223 | 212 |
} |
224 | 213 |
|
225 |
public JPanel createPanel2() |
|
226 |
{ |
|
227 |
JPanel jpanel1 = new JPanel(); |
|
228 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
|
229 |
CellConstraints cc = new CellConstraints(); |
|
230 |
jpanel1.setLayout(formlayout1); |
|
231 |
|
|
232 |
lblSourceType.setName("lblSourceType"); |
|
233 |
lblSourceType.setText("Source type"); |
|
234 |
jpanel1.add(lblSourceType,cc.xy(1,1)); |
|
235 |
|
|
236 |
lblSource.setName("lblSource"); |
|
237 |
lblSource.setText("Source"); |
|
238 |
jpanel1.add(lblSource,cc.xy(1,3)); |
|
239 |
|
|
240 |
txtSourceType.setBackground(new Color(236,233,216)); |
|
241 |
txtSourceType.setEditable(false); |
|
242 |
txtSourceType.setName("txtSourceType"); |
|
243 |
jpanel1.add(txtSourceType,cc.xy(3,1)); |
|
244 |
|
|
245 |
txtSource.setBackground(new Color(236,233,216)); |
|
246 |
txtSource.setEditable(false); |
|
247 |
txtSource.setName("txtSource"); |
|
248 |
jpanel1.add(txtSource,cc.xy(3,3)); |
|
249 |
|
|
250 |
addFillComponents(jpanel1,new int[]{ 2 },new int[]{ 2 }); |
|
251 |
return jpanel1; |
|
252 |
} |
|
253 |
|
|
254 | 214 |
/** |
255 | 215 |
* Initializer |
256 | 216 |
*/ |
Also available in: Unified diff