Revision 44149 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/FeatureTypeAttributePanelView.java
FeatureTypeAttributePanelView.java | ||
---|---|---|
35 | 35 |
JTextField txtDefaultValue = new JTextField(); |
36 | 36 |
JLabel lblDataProfile = new JLabel(); |
37 | 37 |
JComboBox cboDataProfile = new JComboBox(); |
38 |
JCheckBox chkVirtualField = new JCheckBox(); |
|
39 |
JButton btnVirtualField = new JButton(); |
|
40 |
JTextField txtVirtualField = new JTextField(); |
|
38 | 41 |
JLabel lblGeometryType = new JLabel(); |
39 | 42 |
JLabel lblGeometrySubtype = new JLabel(); |
40 | 43 |
JLabel lblCRS = new JLabel(); |
... | ... | |
51 | 54 |
JButton btnIntervalStart = new JButton(); |
52 | 55 |
JButton btnIntervalEnd = new JButton(); |
53 | 56 |
JTextField txtIntervalEnd = new JTextField(); |
54 |
JCheckBox chkVirtualField = new JCheckBox(); |
|
55 |
JButton btnVirtualField = new JButton(); |
|
56 |
JTextField txtVirtualField = new JTextField(); |
|
57 | 57 |
JLabel lblIsPrimaryKey = new JLabel(); |
58 | 58 |
JCheckBox chkIsPrimaryKey = new JCheckBox(); |
59 | 59 |
JLabel lblIsAutomatic = new JLabel(); |
... | ... | |
151 | 151 |
public JPanel createPanel() |
152 | 152 |
{ |
153 | 153 |
JPanel jpanel1 = new JPanel(); |
154 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,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:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE");
|
|
154 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,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:NONE,CENTER:2DLU:NONE"); |
|
155 | 155 |
CellConstraints cc = new CellConstraints(); |
156 | 156 |
jpanel1.setLayout(formlayout1); |
157 | 157 |
|
... | ... | |
170 | 170 |
jpanel1.add(cboFieldType,cc.xy(4,4)); |
171 | 171 |
|
172 | 172 |
tabAditionalFields.setName("tabAditionalFields"); |
173 |
tabAditionalFields.addTab("_Basic_types",null,createPanel1());
|
|
174 |
tabAditionalFields.addTab("_Geometry",null,createPanel2());
|
|
175 |
tabAditionalFields.addTab("_Time",null,createPanel4());
|
|
173 |
tabAditionalFields.addTab("_Basic_fields",null,createPanel1());
|
|
174 |
tabAditionalFields.addTab("_Geometry",null,createPanel3());
|
|
175 |
tabAditionalFields.addTab("_Time",null,createPanel5());
|
|
176 | 176 |
jpanel1.add(tabAditionalFields,cc.xywh(2,8,3,1)); |
177 | 177 |
|
178 |
chkVirtualField.setActionCommand("Campo virtual"); |
|
179 |
chkVirtualField.setName("chkVirtualField"); |
|
180 |
chkVirtualField.setText("_Virtual_field"); |
|
181 |
jpanel1.add(chkVirtualField,cc.xy(2,10)); |
|
182 |
|
|
183 |
jpanel1.add(createPanel6(),cc.xy(4,10)); |
|
184 | 178 |
jpanel1.add(createPanel7(),cc.xy(4,6)); |
185 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 });
|
|
179 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
|
186 | 180 |
return jpanel1; |
187 | 181 |
} |
188 | 182 |
|
189 | 183 |
public JPanel createPanel1() |
190 | 184 |
{ |
191 | 185 |
JPanel jpanel1 = new JPanel(); |
192 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,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:NONE"); |
|
186 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,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:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE");
|
|
193 | 187 |
CellConstraints cc = new CellConstraints(); |
194 | 188 |
jpanel1.setLayout(formlayout1); |
195 | 189 |
|
... | ... | |
221 | 215 |
cboDataProfile.setName("cboDataProfile"); |
222 | 216 |
jpanel1.add(cboDataProfile,cc.xy(4,8)); |
223 | 217 |
|
224 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8 }); |
|
218 |
chkVirtualField.setActionCommand("Campo virtual"); |
|
219 |
chkVirtualField.setName("chkVirtualField"); |
|
220 |
chkVirtualField.setText("_Virtual_field"); |
|
221 |
jpanel1.add(chkVirtualField,cc.xy(2,10)); |
|
222 |
|
|
223 |
jpanel1.add(createPanel2(),cc.xy(4,10)); |
|
224 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 }); |
|
225 | 225 |
return jpanel1; |
226 | 226 |
} |
227 | 227 |
|
228 | 228 |
public JPanel createPanel2() |
229 | 229 |
{ |
230 | 230 |
JPanel jpanel1 = new JPanel(); |
231 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
|
232 |
CellConstraints cc = new CellConstraints(); |
|
233 |
jpanel1.setLayout(formlayout1); |
|
234 |
|
|
235 |
btnVirtualField.setActionCommand("..."); |
|
236 |
btnVirtualField.setName("btnVirtualField"); |
|
237 |
btnVirtualField.setText("..."); |
|
238 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
|
239 |
btnVirtualField.setBorder(emptyborder1); |
|
240 |
jpanel1.add(btnVirtualField,cc.xy(3,1)); |
|
241 |
|
|
242 |
txtVirtualField.setName("txtVirtualField"); |
|
243 |
jpanel1.add(txtVirtualField,cc.xy(1,1)); |
|
244 |
|
|
245 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
|
246 |
return jpanel1; |
|
247 |
} |
|
248 |
|
|
249 |
public JPanel createPanel3() |
|
250 |
{ |
|
251 |
JPanel jpanel1 = new JPanel(); |
|
231 | 252 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,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"); |
232 | 253 |
CellConstraints cc = new CellConstraints(); |
233 | 254 |
jpanel1.setLayout(formlayout1); |
... | ... | |
250 | 271 |
cboGeometrySubtype.setName("cboGeometrySubtype"); |
251 | 272 |
jpanel1.add(cboGeometrySubtype,cc.xy(4,4)); |
252 | 273 |
|
253 |
jpanel1.add(createPanel3(),cc.xy(4,6));
|
|
274 |
jpanel1.add(createPanel4(),cc.xy(4,6));
|
|
254 | 275 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 }); |
255 | 276 |
return jpanel1; |
256 | 277 |
} |
257 | 278 |
|
258 |
public JPanel createPanel3()
|
|
279 |
public JPanel createPanel4()
|
|
259 | 280 |
{ |
260 | 281 |
JPanel jpanel1 = new JPanel(); |
261 | 282 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
... | ... | |
276 | 297 |
return jpanel1; |
277 | 298 |
} |
278 | 299 |
|
279 |
public JPanel createPanel4()
|
|
300 |
public JPanel createPanel5()
|
|
280 | 301 |
{ |
281 | 302 |
JPanel jpanel1 = new JPanel(); |
282 | 303 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
... | ... | |
296 | 317 |
lblInterval.setText("_Interval"); |
297 | 318 |
jpanel1.add(lblInterval,new CellConstraints(2,5,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
298 | 319 |
|
299 |
jpanel1.add(createPanel5(),cc.xy(4,5));
|
|
320 |
jpanel1.add(createPanel6(),cc.xy(4,5));
|
|
300 | 321 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6 }); |
301 | 322 |
return jpanel1; |
302 | 323 |
} |
303 | 324 |
|
304 |
public JPanel createPanel5()
|
|
325 |
public JPanel createPanel6()
|
|
305 | 326 |
{ |
306 | 327 |
JPanel jpanel1 = new JPanel(); |
307 | 328 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
... | ... | |
340 | 361 |
return jpanel1; |
341 | 362 |
} |
342 | 363 |
|
343 |
public JPanel createPanel6() |
|
344 |
{ |
|
345 |
JPanel jpanel1 = new JPanel(); |
|
346 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
|
347 |
CellConstraints cc = new CellConstraints(); |
|
348 |
jpanel1.setLayout(formlayout1); |
|
349 |
|
|
350 |
btnVirtualField.setActionCommand("..."); |
|
351 |
btnVirtualField.setName("btnVirtualField"); |
|
352 |
btnVirtualField.setText("..."); |
|
353 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
|
354 |
btnVirtualField.setBorder(emptyborder1); |
|
355 |
jpanel1.add(btnVirtualField,cc.xy(3,1)); |
|
356 |
|
|
357 |
txtVirtualField.setName("txtVirtualField"); |
|
358 |
jpanel1.add(txtVirtualField,cc.xy(1,1)); |
|
359 |
|
|
360 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
|
361 |
return jpanel1; |
|
362 |
} |
|
363 |
|
|
364 | 364 |
public JPanel createPanel7() |
365 | 365 |
{ |
366 | 366 |
JPanel jpanel1 = new JPanel(); |
Also available in: Unified diff