svn-gvsig-desktop / 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 / DefaultFeatureAttributePanelView.java @ 45920
History | View | Annotate | Download (39.8 KB)
1 |
package org.gvsig.fmap.dal.swing.impl.featuretype; |
---|---|
2 |
|
3 |
import com.jeta.forms.components.line.HorizontalLineComponent; |
4 |
import com.jeta.open.i18n.I18NUtils; |
5 |
import com.jgoodies.forms.layout.CellConstraints; |
6 |
import com.jgoodies.forms.layout.FormLayout; |
7 |
import java.awt.BorderLayout; |
8 |
import java.awt.ComponentOrientation; |
9 |
import java.awt.Container; |
10 |
import java.awt.Dimension; |
11 |
import javax.swing.Box; |
12 |
import javax.swing.ImageIcon; |
13 |
import javax.swing.JButton; |
14 |
import javax.swing.JCheckBox; |
15 |
import javax.swing.JComboBox; |
16 |
import javax.swing.JFrame; |
17 |
import javax.swing.JLabel; |
18 |
import javax.swing.JList; |
19 |
import javax.swing.JPanel; |
20 |
import javax.swing.JScrollPane; |
21 |
import javax.swing.JTabbedPane; |
22 |
import javax.swing.JTable; |
23 |
import javax.swing.JTextArea; |
24 |
import javax.swing.JTextField; |
25 |
import javax.swing.border.EmptyBorder; |
26 |
|
27 |
|
28 |
public class DefaultFeatureAttributePanelView extends JPanel |
29 |
{ |
30 |
JLabel lblFieldName = new JLabel(); |
31 |
JTextField txtFieldName = new JTextField(); |
32 |
JLabel lblFieldType = new JLabel(); |
33 |
JTabbedPane tabAditionalFields = new JTabbedPane(); |
34 |
JLabel lblSize = new JLabel(); |
35 |
JTextField txtSize = new JTextField(); |
36 |
JLabel lblPrecision = new JLabel(); |
37 |
JLabel lblDefaultValue = new JLabel(); |
38 |
JTextField txtPrecision = new JTextField(); |
39 |
JTextField txtDefaultValue = new JTextField(); |
40 |
JLabel lblDataProfile = new JLabel(); |
41 |
JComboBox cboDataProfile = new JComboBox(); |
42 |
JCheckBox chkVirtualField = new JCheckBox(); |
43 |
JLabel lblScale = new JLabel(); |
44 |
JTextField txtScale = new JTextField(); |
45 |
JLabel lblRelationType = new JLabel(); |
46 |
JComboBox cboRelationType = new JComboBox(); |
47 |
JLabel lblDisplaySize = new JLabel(); |
48 |
JTextField txtDisplaySize = new JTextField(); |
49 |
JButton btnVirtualFieldBookmarks = new JButton(); |
50 |
JTextField txtVirtualField = new JTextField(); |
51 |
JButton btnVirtualFieldHistory = new JButton(); |
52 |
JButton btnVirtualField = new JButton(); |
53 |
JLabel lblGeometryType = new JLabel(); |
54 |
JLabel lblGeometrySubtype = new JLabel(); |
55 |
JLabel lblCRS = new JLabel(); |
56 |
JComboBox cboGeometryType = new JComboBox(); |
57 |
JComboBox cboGeometrySubtype = new JComboBox(); |
58 |
JButton btnCRS = new JButton(); |
59 |
JTextField txtCRS = new JTextField(); |
60 |
JLabel lblDateFormat = new JLabel(); |
61 |
JComboBox cboDateFormat = new JComboBox(); |
62 |
JLabel lblInterval = new JLabel(); |
63 |
JLabel lblIntervalStart = new JLabel(); |
64 |
JLabel lblIntervalEnd = new JLabel(); |
65 |
JTextField txtIntervalStart = new JTextField(); |
66 |
JButton btnIntervalStart = new JButton(); |
67 |
JButton btnIntervalEnd = new JButton(); |
68 |
JTextField txtIntervalEnd = new JTextField(); |
69 |
JPanel grdAttrTags = new JPanel(); |
70 |
HorizontalLineComponent horizontallinecomponent1 = new HorizontalLineComponent();
|
71 |
JPanel grdAttrTagsItems = new JPanel(); |
72 |
JTable tblAttrTagsItems = new JTable(); |
73 |
JButton btnAttrTagsNew = new JButton(); |
74 |
JButton btnAttrTagsDelete = new JButton(); |
75 |
JPanel gridAttrTagsItem = new JPanel(); |
76 |
JButton btnAttrTagsAccept = new JButton(); |
77 |
JButton btnAttrTagsDiscard = new JButton(); |
78 |
JButton btnAttrTagsModify = new JButton(); |
79 |
JPanel grdAttrTagsItemView = new JPanel(); |
80 |
JLabel lblAttrTagsItemName = new JLabel(); |
81 |
JLabel lblAttrTagsItemValue = new JLabel(); |
82 |
JComboBox cboAttrTagsItemName = new JComboBox(); |
83 |
JComboBox cboAttrTagsItemValue = new JComboBox(); |
84 |
JLabel lblAttrTagsItemNotes = new JLabel(); |
85 |
JLabel lblAttrTagsItemNotesValue = new JLabel(); |
86 |
JCheckBox chkIsForeingKey = new JCheckBox(); |
87 |
JLabel lblForeingKeyTableName = new JLabel(); |
88 |
JLabel lblForeingKeyCodeName = new JLabel(); |
89 |
JLabel lblForeingKeyLabelFormula = new JLabel(); |
90 |
JComboBox cboForeingKeyTableName = new JComboBox(); |
91 |
JComboBox cboForeingKeyCodeName = new JComboBox(); |
92 |
JTextField txtForeingKeyFormula = new JTextField(); |
93 |
JLabel lblIsClosedList = new JLabel(); |
94 |
JCheckBox chkIsClosedList = new JCheckBox(); |
95 |
JButton btnForeingKeyFormula = new JButton(); |
96 |
JButton btnForeingKeyFormulaHistory = new JButton(); |
97 |
JButton btnForeingKeyFormulaBookmarks = new JButton(); |
98 |
JTabbedPane tabLayout = new JTabbedPane(); |
99 |
JLabel lblGroup = new JLabel(); |
100 |
JLabel lblOrder = new JLabel(); |
101 |
JComboBox cboGroup = new JComboBox(); |
102 |
JTextField txtOrder = new JTextField(); |
103 |
JLabel lblHidden = new JLabel(); |
104 |
JCheckBox chkHidden = new JCheckBox(); |
105 |
JLabel lblLabel = new JLabel(); |
106 |
JTextField txtLabel = new JTextField(); |
107 |
JLabel lblDescription = new JLabel(); |
108 |
JTextArea txtDescription = new JTextArea(); |
109 |
JLabel lblAvailableValues = new JLabel(); |
110 |
JList lstAvailableValues = new JList(); |
111 |
JLabel lblAvailableValuesLabel = new JLabel(); |
112 |
JTextField txtAvailableValuesLabel = new JTextField(); |
113 |
JLabel lblAvailableValuesValue = new JLabel(); |
114 |
JTextField txtAvailableValuesValue = new JTextField(); |
115 |
JLabel lblValuesFilter = new JLabel(); |
116 |
JButton btnAvailableValuesAdd = new JButton(); |
117 |
JButton btnAvailableValuesUpdate = new JButton(); |
118 |
JButton btnAvailableValuesRemove = new JButton(); |
119 |
JButton btnAvailableValuesRemoveAll = new JButton(); |
120 |
JTextField txtValuesFilter = new JTextField(); |
121 |
JButton btnValuesFilter = new JButton(); |
122 |
JButton btnValuesFilterHistory = new JButton(); |
123 |
JButton btnValuesFilterBookmarks = new JButton(); |
124 |
JLabel lblIsPrimaryKey = new JLabel(); |
125 |
JCheckBox chkIsPrimaryKey = new JCheckBox(); |
126 |
JLabel lblIsAutomatic = new JLabel(); |
127 |
JCheckBox chkIsAutomatic = new JCheckBox(); |
128 |
JLabel lblAllowNulls = new JLabel(); |
129 |
JCheckBox chkAllowNulls = new JCheckBox(); |
130 |
JCheckBox chkIsReadOnly = new JCheckBox(); |
131 |
JCheckBox chkIsIndexed = new JCheckBox(); |
132 |
JLabel lblIsReadOnly = new JLabel(); |
133 |
JLabel lblIsIndexed = new JLabel(); |
134 |
JComboBox cboFieldType = new JComboBox(); |
135 |
JButton btnFieldType = new JButton(); |
136 |
|
137 |
/**
|
138 |
* Default constructor
|
139 |
*/
|
140 |
public DefaultFeatureAttributePanelView()
|
141 |
{ |
142 |
initializePanel(); |
143 |
} |
144 |
|
145 |
/**
|
146 |
* Adds fill components to empty cells in the first row and first column of the grid.
|
147 |
* This ensures that the grid spacing will be the same as shown in the designer.
|
148 |
* @param cols an array of column indices in the first row where fill components should be added.
|
149 |
* @param rows an array of row indices in the first column where fill components should be added.
|
150 |
*/
|
151 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
152 |
{ |
153 |
Dimension filler = new Dimension(10,10); |
154 |
|
155 |
boolean filled_cell_11 = false; |
156 |
CellConstraints cc = new CellConstraints();
|
157 |
if ( cols.length > 0 && rows.length > 0 ) |
158 |
{ |
159 |
if ( cols[0] == 1 && rows[0] == 1 ) |
160 |
{ |
161 |
/** add a rigid area */
|
162 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
163 |
filled_cell_11 = true;
|
164 |
} |
165 |
} |
166 |
|
167 |
for( int index = 0; index < cols.length; index++ ) |
168 |
{ |
169 |
if ( cols[index] == 1 && filled_cell_11 ) |
170 |
{ |
171 |
continue;
|
172 |
} |
173 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
174 |
} |
175 |
|
176 |
for( int index = 0; index < rows.length; index++ ) |
177 |
{ |
178 |
if ( rows[index] == 1 && filled_cell_11 ) |
179 |
{ |
180 |
continue;
|
181 |
} |
182 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
183 |
} |
184 |
|
185 |
} |
186 |
|
187 |
/**
|
188 |
* Helper method to load an image file from the CLASSPATH
|
189 |
* @param imageName the package and name of the file to load relative to the CLASSPATH
|
190 |
* @return an ImageIcon instance with the specified image file
|
191 |
* @throws IllegalArgumentException if the image resource cannot be loaded.
|
192 |
*/
|
193 |
public ImageIcon loadImage( String imageName ) |
194 |
{ |
195 |
try
|
196 |
{ |
197 |
ClassLoader classloader = getClass().getClassLoader();
|
198 |
java.net.URL url = classloader.getResource( imageName ); |
199 |
if ( url != null ) |
200 |
{ |
201 |
ImageIcon icon = new ImageIcon( url ); |
202 |
return icon;
|
203 |
} |
204 |
} |
205 |
catch( Exception e ) |
206 |
{ |
207 |
e.printStackTrace(); |
208 |
} |
209 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
210 |
} |
211 |
|
212 |
/**
|
213 |
* Method for recalculating the component orientation for
|
214 |
* right-to-left Locales.
|
215 |
* @param orientation the component orientation to be applied
|
216 |
*/
|
217 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
218 |
{ |
219 |
// Not yet implemented...
|
220 |
// I18NUtils.applyComponentOrientation(this, orientation);
|
221 |
super.applyComponentOrientation(orientation);
|
222 |
} |
223 |
|
224 |
public JPanel createPanel() |
225 |
{ |
226 |
JPanel jpanel1 = new JPanel(); |
227 |
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"); |
228 |
CellConstraints cc = new CellConstraints();
|
229 |
jpanel1.setLayout(formlayout1); |
230 |
|
231 |
lblFieldName.setName("lblFieldName");
|
232 |
lblFieldName.setText("_Field_name");
|
233 |
jpanel1.add(lblFieldName,cc.xy(2,2)); |
234 |
|
235 |
txtFieldName.setName("txtFieldName");
|
236 |
jpanel1.add(txtFieldName,cc.xy(4,2)); |
237 |
|
238 |
lblFieldType.setName("lblFieldType");
|
239 |
lblFieldType.setText("_Field_type");
|
240 |
jpanel1.add(lblFieldType,cc.xy(2,4)); |
241 |
|
242 |
tabAditionalFields.setName("tabAditionalFields");
|
243 |
tabAditionalFields.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
244 |
tabAditionalFields.addTab("_Basic_fields",null,createPanel1()); |
245 |
tabAditionalFields.addTab("_Geometry",null,createPanel3()); |
246 |
tabAditionalFields.addTab("_Time",null,createPanel5()); |
247 |
tabAditionalFields.addTab("_Tags",null,createPanel7()); |
248 |
tabAditionalFields.addTab("_ForeingKey",null,createPanel10()); |
249 |
tabAditionalFields.addTab("_Visualization",null,createPanel11()); |
250 |
jpanel1.add(tabAditionalFields,cc.xywh(2,8,3,1)); |
251 |
|
252 |
jpanel1.add(createPanel16(),cc.xy(4,6)); |
253 |
jpanel1.add(createPanel17(),cc.xy(4,4)); |
254 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
255 |
return jpanel1;
|
256 |
} |
257 |
|
258 |
public JPanel createPanel1() |
259 |
{ |
260 |
JPanel jpanel1 = new JPanel(); |
261 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL: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,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
262 |
CellConstraints cc = new CellConstraints();
|
263 |
jpanel1.setLayout(formlayout1); |
264 |
|
265 |
lblSize.setName("lblSize");
|
266 |
lblSize.setText("_Size");
|
267 |
jpanel1.add(lblSize,cc.xy(2,4)); |
268 |
|
269 |
txtSize.setName("txtSize");
|
270 |
jpanel1.add(txtSize,cc.xy(4,4)); |
271 |
|
272 |
lblPrecision.setName("lblPrecision");
|
273 |
lblPrecision.setText("_Total_digits_precision");
|
274 |
lblPrecision.setToolTipText("_Number_of_digits_used_to_represent_the_number_Includes_the_digits_of_the_integer_part_and_the_digits_of_the_decimal_part");
|
275 |
jpanel1.add(lblPrecision,cc.xy(2,6)); |
276 |
|
277 |
lblDefaultValue.setName("lblDefaultValue");
|
278 |
lblDefaultValue.setText("_Default_value");
|
279 |
jpanel1.add(lblDefaultValue,cc.xy(2,10)); |
280 |
|
281 |
txtPrecision.setName("txtPrecision");
|
282 |
txtPrecision.setToolTipText("_Number_of_digits_used_to_represent_the_number_Includes_the_digits_of_the_integer_part_and_the_digits_of_the_decimal_part");
|
283 |
jpanel1.add(txtPrecision,cc.xy(4,6)); |
284 |
|
285 |
txtDefaultValue.setName("txtDefaultValue");
|
286 |
jpanel1.add(txtDefaultValue,cc.xy(4,10)); |
287 |
|
288 |
lblDataProfile.setName("lblDataProfile");
|
289 |
lblDataProfile.setText("_Data_profile");
|
290 |
jpanel1.add(lblDataProfile,cc.xy(2,12)); |
291 |
|
292 |
cboDataProfile.setName("cboDataProfile");
|
293 |
jpanel1.add(cboDataProfile,cc.xy(4,12)); |
294 |
|
295 |
chkVirtualField.setActionCommand("Campo virtual");
|
296 |
chkVirtualField.setName("chkVirtualField");
|
297 |
chkVirtualField.setRolloverEnabled(true);
|
298 |
chkVirtualField.setText("_Virtual_field");
|
299 |
jpanel1.add(chkVirtualField,cc.xy(2,14)); |
300 |
|
301 |
lblScale.setName("lblScale");
|
302 |
lblScale.setText("_Decimal_digits_escale");
|
303 |
lblScale.setToolTipText("_Number_of_decimal_digits_used_to_represent_the_number");
|
304 |
jpanel1.add(lblScale,cc.xy(2,8)); |
305 |
|
306 |
txtScale.setName("txtScale");
|
307 |
txtScale.setToolTipText("_Number_of_decimal_digits_used_to_represent_the_number");
|
308 |
jpanel1.add(txtScale,cc.xy(4,8)); |
309 |
|
310 |
lblRelationType.setName("lblRelationType");
|
311 |
lblRelationType.setText("_Relation_type");
|
312 |
jpanel1.add(lblRelationType,cc.xy(2,16)); |
313 |
|
314 |
cboRelationType.setName("cboRelationType");
|
315 |
jpanel1.add(cboRelationType,cc.xy(4,16)); |
316 |
|
317 |
lblDisplaySize.setName("lblDisplaySize");
|
318 |
lblDisplaySize.setText("_Characters_in_display");
|
319 |
lblDisplaySize.setToolTipText("_Number_of_characters_required_to_display_the_data_in_this_field_Leave_it_empty_or_zero_to_be_automatically_calculated");
|
320 |
jpanel1.add(lblDisplaySize,cc.xy(2,2)); |
321 |
|
322 |
txtDisplaySize.setName("txtDisplaySize");
|
323 |
txtDisplaySize.setToolTipText("_Number_of_bytes_required_to_store_the_data_in_this_field_Leave_it_empty_or_zero_to_be_automatically_calculated_This_value_is_dependent_on_the_type_of_layer");
|
324 |
jpanel1.add(txtDisplaySize,cc.xy(4,2)); |
325 |
|
326 |
jpanel1.add(createPanel2(),cc.xy(4,14)); |
327 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 }); |
328 |
return jpanel1;
|
329 |
} |
330 |
|
331 |
public JPanel createPanel2() |
332 |
{ |
333 |
JPanel jpanel1 = new JPanel(); |
334 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
335 |
CellConstraints cc = new CellConstraints();
|
336 |
jpanel1.setLayout(formlayout1); |
337 |
|
338 |
btnVirtualFieldBookmarks.setActionCommand("...");
|
339 |
btnVirtualFieldBookmarks.setName("btnVirtualFieldBookmarks");
|
340 |
btnVirtualFieldBookmarks.setRolloverEnabled(true);
|
341 |
btnVirtualFieldBookmarks.setText("...");
|
342 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
343 |
btnVirtualFieldBookmarks.setBorder(emptyborder1); |
344 |
jpanel1.add(btnVirtualFieldBookmarks,cc.xy(7,1)); |
345 |
|
346 |
txtVirtualField.setName("txtVirtualField");
|
347 |
jpanel1.add(txtVirtualField,cc.xy(1,1)); |
348 |
|
349 |
btnVirtualFieldHistory.setActionCommand("...");
|
350 |
btnVirtualFieldHistory.setName("btnVirtualFieldHistory");
|
351 |
btnVirtualFieldHistory.setRolloverEnabled(true);
|
352 |
btnVirtualFieldHistory.setText("...");
|
353 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
354 |
btnVirtualFieldHistory.setBorder(emptyborder2); |
355 |
jpanel1.add(btnVirtualFieldHistory,cc.xy(5,1)); |
356 |
|
357 |
btnVirtualField.setActionCommand("...");
|
358 |
btnVirtualField.setName("btnVirtualField");
|
359 |
btnVirtualField.setRolloverEnabled(true);
|
360 |
btnVirtualField.setText("...");
|
361 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
362 |
btnVirtualField.setBorder(emptyborder3); |
363 |
jpanel1.add(btnVirtualField,cc.xy(3,1)); |
364 |
|
365 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
366 |
return jpanel1;
|
367 |
} |
368 |
|
369 |
public JPanel createPanel3() |
370 |
{ |
371 |
JPanel jpanel1 = new JPanel(); |
372 |
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"); |
373 |
CellConstraints cc = new CellConstraints();
|
374 |
jpanel1.setLayout(formlayout1); |
375 |
|
376 |
lblGeometryType.setName("lblGeometryType");
|
377 |
lblGeometryType.setText("_Geometry_type");
|
378 |
jpanel1.add(lblGeometryType,cc.xy(2,2)); |
379 |
|
380 |
lblGeometrySubtype.setName("lblGeometrySubtype");
|
381 |
lblGeometrySubtype.setText("_Geometry_subtype");
|
382 |
jpanel1.add(lblGeometrySubtype,cc.xy(2,4)); |
383 |
|
384 |
lblCRS.setName("lblCRS");
|
385 |
lblCRS.setText("_CRS");
|
386 |
jpanel1.add(lblCRS,cc.xy(2,6)); |
387 |
|
388 |
cboGeometryType.setName("cboGeometryType");
|
389 |
jpanel1.add(cboGeometryType,cc.xy(4,2)); |
390 |
|
391 |
cboGeometrySubtype.setName("cboGeometrySubtype");
|
392 |
jpanel1.add(cboGeometrySubtype,cc.xy(4,4)); |
393 |
|
394 |
jpanel1.add(createPanel4(),cc.xy(4,6)); |
395 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 }); |
396 |
return jpanel1;
|
397 |
} |
398 |
|
399 |
public JPanel createPanel4() |
400 |
{ |
401 |
JPanel jpanel1 = new JPanel(); |
402 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
403 |
CellConstraints cc = new CellConstraints();
|
404 |
jpanel1.setLayout(formlayout1); |
405 |
|
406 |
btnCRS.setActionCommand("...");
|
407 |
btnCRS.setName("btnCRS");
|
408 |
btnCRS.setRolloverEnabled(true);
|
409 |
btnCRS.setText("...");
|
410 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
411 |
btnCRS.setBorder(emptyborder1); |
412 |
jpanel1.add(btnCRS,cc.xy(3,1)); |
413 |
|
414 |
txtCRS.setName("txtCRS");
|
415 |
jpanel1.add(txtCRS,cc.xy(1,1)); |
416 |
|
417 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
418 |
return jpanel1;
|
419 |
} |
420 |
|
421 |
public JPanel createPanel5() |
422 |
{ |
423 |
JPanel jpanel1 = new JPanel(); |
424 |
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"); |
425 |
CellConstraints cc = new CellConstraints();
|
426 |
jpanel1.setLayout(formlayout1); |
427 |
|
428 |
lblDateFormat.setName("lblDateFormat");
|
429 |
lblDateFormat.setText("_Date_format");
|
430 |
jpanel1.add(lblDateFormat,cc.xy(2,2)); |
431 |
|
432 |
cboDateFormat.setEditable(true);
|
433 |
cboDateFormat.setName("cboDateFormat");
|
434 |
jpanel1.add(cboDateFormat,cc.xy(4,2)); |
435 |
|
436 |
lblInterval.setName("lblInterval");
|
437 |
lblInterval.setText("_Interval");
|
438 |
jpanel1.add(lblInterval,new CellConstraints(2,5,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
439 |
|
440 |
jpanel1.add(createPanel6(),cc.xy(4,5)); |
441 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6 }); |
442 |
return jpanel1;
|
443 |
} |
444 |
|
445 |
public JPanel createPanel6() |
446 |
{ |
447 |
JPanel jpanel1 = new JPanel(); |
448 |
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"); |
449 |
CellConstraints cc = new CellConstraints();
|
450 |
jpanel1.setLayout(formlayout1); |
451 |
|
452 |
lblIntervalStart.setName("lblIntervalStart");
|
453 |
lblIntervalStart.setText("_Start");
|
454 |
jpanel1.add(lblIntervalStart,cc.xy(1,1)); |
455 |
|
456 |
lblIntervalEnd.setName("lblIntervalEnd");
|
457 |
lblIntervalEnd.setText("_End");
|
458 |
jpanel1.add(lblIntervalEnd,cc.xy(1,3)); |
459 |
|
460 |
txtIntervalStart.setName("txtIntervalStart");
|
461 |
jpanel1.add(txtIntervalStart,cc.xy(3,1)); |
462 |
|
463 |
btnIntervalStart.setActionCommand("...");
|
464 |
btnIntervalStart.setName("btnIntervalStart");
|
465 |
btnIntervalStart.setRolloverEnabled(true);
|
466 |
btnIntervalStart.setText("...");
|
467 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
468 |
btnIntervalStart.setBorder(emptyborder1); |
469 |
jpanel1.add(btnIntervalStart,cc.xy(5,1)); |
470 |
|
471 |
btnIntervalEnd.setActionCommand("...");
|
472 |
btnIntervalEnd.setName("btnIntervalEnd");
|
473 |
btnIntervalEnd.setRolloverEnabled(true);
|
474 |
btnIntervalEnd.setText("...");
|
475 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
476 |
btnIntervalEnd.setBorder(emptyborder2); |
477 |
jpanel1.add(btnIntervalEnd,cc.xy(5,3)); |
478 |
|
479 |
txtIntervalEnd.setName("txtIntervalEnd");
|
480 |
jpanel1.add(txtIntervalEnd,cc.xy(3,3)); |
481 |
|
482 |
addFillComponents(jpanel1,new int[]{ 2,4 },new int[]{ 2 }); |
483 |
return jpanel1;
|
484 |
} |
485 |
|
486 |
public JPanel createPanel7() |
487 |
{ |
488 |
JPanel jpanel1 = new JPanel(); |
489 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:2DLU:NONE"); |
490 |
CellConstraints cc = new CellConstraints();
|
491 |
jpanel1.setLayout(formlayout1); |
492 |
|
493 |
jpanel1.add(creategrdAttrTags(),cc.xy(2,2)); |
494 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4 }); |
495 |
return jpanel1;
|
496 |
} |
497 |
|
498 |
public JPanel creategrdAttrTags() |
499 |
{ |
500 |
grdAttrTags.setName("grdAttrTags");
|
501 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
502 |
CellConstraints cc = new CellConstraints();
|
503 |
grdAttrTags.setLayout(formlayout1); |
504 |
|
505 |
grdAttrTags.add(horizontallinecomponent1,cc.xy(1,2)); |
506 |
|
507 |
grdAttrTags.add(creategrdAttrTagsItems(),cc.xy(1,1)); |
508 |
grdAttrTags.add(creategridAttrTagsItem(),cc.xy(1,3)); |
509 |
addFillComponents(grdAttrTags,new int[]{ 1 },new int[]{ 1,3 }); |
510 |
return grdAttrTags;
|
511 |
} |
512 |
|
513 |
public JPanel creategrdAttrTagsItems() |
514 |
{ |
515 |
grdAttrTagsItems.setName("grdAttrTagsItems");
|
516 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:NONE"); |
517 |
CellConstraints cc = new CellConstraints();
|
518 |
grdAttrTagsItems.setLayout(formlayout1); |
519 |
|
520 |
tblAttrTagsItems.setName("tblAttrTagsItems");
|
521 |
JScrollPane jscrollpane1 = new JScrollPane(); |
522 |
jscrollpane1.setViewportView(tblAttrTagsItems); |
523 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
524 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
525 |
grdAttrTagsItems.add(jscrollpane1,cc.xy(1,1)); |
526 |
|
527 |
grdAttrTagsItems.add(createPanel8(),new CellConstraints(3,1,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
528 |
addFillComponents(grdAttrTagsItems,new int[]{ 2,3 },new int[0]); |
529 |
return grdAttrTagsItems;
|
530 |
} |
531 |
|
532 |
public JPanel createPanel8() |
533 |
{ |
534 |
JPanel jpanel1 = new JPanel(); |
535 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0)"); |
536 |
CellConstraints cc = new CellConstraints();
|
537 |
jpanel1.setLayout(formlayout1); |
538 |
|
539 |
btnAttrTagsNew.setActionCommand("_New");
|
540 |
btnAttrTagsNew.setName("btnAttrTagsNew");
|
541 |
btnAttrTagsNew.setRolloverEnabled(true);
|
542 |
btnAttrTagsNew.setText("_New");
|
543 |
jpanel1.add(btnAttrTagsNew,cc.xy(2,1)); |
544 |
|
545 |
btnAttrTagsDelete.setActionCommand("_Delete");
|
546 |
btnAttrTagsDelete.setName("btnAttrTagsDelete");
|
547 |
btnAttrTagsDelete.setRolloverEnabled(true);
|
548 |
btnAttrTagsDelete.setText("_Delete");
|
549 |
jpanel1.add(btnAttrTagsDelete,cc.xy(2,3)); |
550 |
|
551 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5 }); |
552 |
return jpanel1;
|
553 |
} |
554 |
|
555 |
public JPanel creategridAttrTagsItem() |
556 |
{ |
557 |
gridAttrTagsItem.setName("gridAttrTagsItem");
|
558 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:GROW(1.0)"); |
559 |
CellConstraints cc = new CellConstraints();
|
560 |
gridAttrTagsItem.setLayout(formlayout1); |
561 |
|
562 |
gridAttrTagsItem.add(createPanel9(),new CellConstraints(3,1,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
563 |
gridAttrTagsItem.add(creategrdAttrTagsItemView(),cc.xy(1,1)); |
564 |
addFillComponents(gridAttrTagsItem,new int[]{ 1,2,3 },new int[]{ 1 }); |
565 |
return gridAttrTagsItem;
|
566 |
} |
567 |
|
568 |
public JPanel createPanel9() |
569 |
{ |
570 |
JPanel jpanel1 = new JPanel(); |
571 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
572 |
CellConstraints cc = new CellConstraints();
|
573 |
jpanel1.setLayout(formlayout1); |
574 |
|
575 |
btnAttrTagsAccept.setActionCommand("JButton");
|
576 |
btnAttrTagsAccept.setName("btnAttrTagsAccept");
|
577 |
btnAttrTagsAccept.setRolloverEnabled(true);
|
578 |
btnAttrTagsAccept.setText("Accept");
|
579 |
jpanel1.add(btnAttrTagsAccept,cc.xy(2,3)); |
580 |
|
581 |
btnAttrTagsDiscard.setActionCommand("JButton");
|
582 |
btnAttrTagsDiscard.setName("btnAttrTagsDiscard");
|
583 |
btnAttrTagsDiscard.setRolloverEnabled(true);
|
584 |
btnAttrTagsDiscard.setText("_Discard");
|
585 |
jpanel1.add(btnAttrTagsDiscard,cc.xy(2,5)); |
586 |
|
587 |
btnAttrTagsModify.setActionCommand("JButton");
|
588 |
btnAttrTagsModify.setName("btnAttrTagsModify");
|
589 |
btnAttrTagsModify.setRolloverEnabled(true);
|
590 |
btnAttrTagsModify.setText("_Modify");
|
591 |
jpanel1.add(btnAttrTagsModify,cc.xy(2,1)); |
592 |
|
593 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5 }); |
594 |
return jpanel1;
|
595 |
} |
596 |
|
597 |
public JPanel creategrdAttrTagsItemView() |
598 |
{ |
599 |
grdAttrTagsItemView.setName("grdAttrTagsItemView");
|
600 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
601 |
CellConstraints cc = new CellConstraints();
|
602 |
grdAttrTagsItemView.setLayout(formlayout1); |
603 |
|
604 |
lblAttrTagsItemName.setName("lblAttrTagsItemName");
|
605 |
lblAttrTagsItemName.setText("_Name");
|
606 |
grdAttrTagsItemView.add(lblAttrTagsItemName,cc.xy(1,1)); |
607 |
|
608 |
lblAttrTagsItemValue.setName("lblAttrTagsItemValue");
|
609 |
lblAttrTagsItemValue.setText("_Value");
|
610 |
grdAttrTagsItemView.add(lblAttrTagsItemValue,cc.xy(1,3)); |
611 |
|
612 |
cboAttrTagsItemName.setName("cboAttrTagsItemName");
|
613 |
grdAttrTagsItemView.add(cboAttrTagsItemName,cc.xy(3,1)); |
614 |
|
615 |
cboAttrTagsItemValue.setEditable(true);
|
616 |
cboAttrTagsItemValue.setName("cboAttrTagsItemValue");
|
617 |
grdAttrTagsItemView.add(cboAttrTagsItemValue,cc.xy(3,3)); |
618 |
|
619 |
lblAttrTagsItemNotes.setName("lblAttrTagsItemNotes");
|
620 |
lblAttrTagsItemNotes.setText("_Notes");
|
621 |
grdAttrTagsItemView.add(lblAttrTagsItemNotes,cc.xy(1,5)); |
622 |
|
623 |
lblAttrTagsItemNotesValue.setName("lblAttrTagsItemNotesValue");
|
624 |
grdAttrTagsItemView.add(lblAttrTagsItemNotesValue,cc.xy(3,5)); |
625 |
|
626 |
addFillComponents(grdAttrTagsItemView,new int[]{ 2 },new int[]{ 2,4 }); |
627 |
return grdAttrTagsItemView;
|
628 |
} |
629 |
|
630 |
public JPanel createPanel10() |
631 |
{ |
632 |
JPanel jpanel1 = new JPanel(); |
633 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:DEFAULT: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,CENTER:2DLU:NONE"); |
634 |
CellConstraints cc = new CellConstraints();
|
635 |
jpanel1.setLayout(formlayout1); |
636 |
|
637 |
chkIsForeingKey.setActionCommand("_is_foreing_key");
|
638 |
chkIsForeingKey.setName("chkIsForeingKey");
|
639 |
chkIsForeingKey.setRolloverEnabled(true);
|
640 |
chkIsForeingKey.setText("_is_foreing_key");
|
641 |
jpanel1.add(chkIsForeingKey,cc.xywh(2,2,3,1)); |
642 |
|
643 |
lblForeingKeyTableName.setName("lblForeingKeyTableName");
|
644 |
lblForeingKeyTableName.setText("_Table");
|
645 |
jpanel1.add(lblForeingKeyTableName,cc.xy(2,6)); |
646 |
|
647 |
lblForeingKeyCodeName.setName("lblForeingKeyCodeName");
|
648 |
lblForeingKeyCodeName.setText("_Code");
|
649 |
jpanel1.add(lblForeingKeyCodeName,cc.xy(2,8)); |
650 |
|
651 |
lblForeingKeyLabelFormula.setName("lblForeingKeyLabelFormula");
|
652 |
lblForeingKeyLabelFormula.setText("_Label_formula");
|
653 |
jpanel1.add(lblForeingKeyLabelFormula,cc.xy(2,10)); |
654 |
|
655 |
cboForeingKeyTableName.setEditable(true);
|
656 |
cboForeingKeyTableName.setName("cboForeingKeyTableName");
|
657 |
jpanel1.add(cboForeingKeyTableName,cc.xywh(4,6,7,1)); |
658 |
|
659 |
cboForeingKeyCodeName.setEditable(true);
|
660 |
cboForeingKeyCodeName.setName("cboForeingKeyCodeName");
|
661 |
jpanel1.add(cboForeingKeyCodeName,cc.xywh(4,8,7,1)); |
662 |
|
663 |
txtForeingKeyFormula.setName("txtForeingKeyFormula");
|
664 |
jpanel1.add(txtForeingKeyFormula,cc.xy(4,10)); |
665 |
|
666 |
lblIsClosedList.setName("lblIsClosedList");
|
667 |
lblIsClosedList.setText("_is_closed_list");
|
668 |
jpanel1.add(lblIsClosedList,cc.xy(2,4)); |
669 |
|
670 |
chkIsClosedList.setName("chkIsClosedList");
|
671 |
chkIsClosedList.setRolloverEnabled(true);
|
672 |
jpanel1.add(chkIsClosedList,cc.xy(4,4)); |
673 |
|
674 |
btnForeingKeyFormula.setActionCommand("...");
|
675 |
btnForeingKeyFormula.setName("btnForeingKeyFormula");
|
676 |
btnForeingKeyFormula.setRolloverEnabled(true);
|
677 |
btnForeingKeyFormula.setText("...");
|
678 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
679 |
btnForeingKeyFormula.setBorder(emptyborder1); |
680 |
jpanel1.add(btnForeingKeyFormula,cc.xy(6,10)); |
681 |
|
682 |
btnForeingKeyFormulaHistory.setActionCommand("...");
|
683 |
btnForeingKeyFormulaHistory.setName("btnForeingKeyFormulaHistory");
|
684 |
btnForeingKeyFormulaHistory.setRolloverEnabled(true);
|
685 |
btnForeingKeyFormulaHistory.setText("...");
|
686 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
687 |
btnForeingKeyFormulaHistory.setBorder(emptyborder2); |
688 |
jpanel1.add(btnForeingKeyFormulaHistory,cc.xy(8,10)); |
689 |
|
690 |
btnForeingKeyFormulaBookmarks.setActionCommand("...");
|
691 |
btnForeingKeyFormulaBookmarks.setName("btnForeingKeyFormulaBookmarks");
|
692 |
btnForeingKeyFormulaBookmarks.setRolloverEnabled(true);
|
693 |
btnForeingKeyFormulaBookmarks.setText("...");
|
694 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
695 |
btnForeingKeyFormulaBookmarks.setBorder(emptyborder3); |
696 |
jpanel1.add(btnForeingKeyFormulaBookmarks,cc.xy(10,10)); |
697 |
|
698 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7,8,9,10,11 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 }); |
699 |
return jpanel1;
|
700 |
} |
701 |
|
702 |
public JPanel createPanel11() |
703 |
{ |
704 |
JPanel jpanel1 = new JPanel(); |
705 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)"); |
706 |
CellConstraints cc = new CellConstraints();
|
707 |
jpanel1.setLayout(formlayout1); |
708 |
|
709 |
tabLayout.setName("tabLayout");
|
710 |
tabLayout.setTabPlacement(JTabbedPane.LEFT);
|
711 |
tabLayout.addTab("_Basic",null,createPanel12()); |
712 |
tabLayout.addTab("_Values",null,createPanel13()); |
713 |
jpanel1.add(tabLayout,cc.xy(1,1)); |
714 |
|
715 |
addFillComponents(jpanel1,new int[0],new int[0]); |
716 |
return jpanel1;
|
717 |
} |
718 |
|
719 |
public JPanel createPanel12() |
720 |
{ |
721 |
JPanel jpanel1 = new JPanel(); |
722 |
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,FILL:DEFAULT:GROW(1.0)"); |
723 |
CellConstraints cc = new CellConstraints();
|
724 |
jpanel1.setLayout(formlayout1); |
725 |
|
726 |
lblGroup.setName("lblGroup");
|
727 |
lblGroup.setText("_Group");
|
728 |
jpanel1.add(lblGroup,cc.xy(2,2)); |
729 |
|
730 |
lblOrder.setName("lblOrder");
|
731 |
lblOrder.setText("_Order");
|
732 |
jpanel1.add(lblOrder,cc.xy(2,4)); |
733 |
|
734 |
cboGroup.setEditable(true);
|
735 |
cboGroup.setName("cboGroup");
|
736 |
jpanel1.add(cboGroup,cc.xy(4,2)); |
737 |
|
738 |
txtOrder.setName("txtOrder");
|
739 |
jpanel1.add(txtOrder,cc.xy(4,4)); |
740 |
|
741 |
lblHidden.setName("lblHidden");
|
742 |
lblHidden.setText("_Hidden");
|
743 |
jpanel1.add(lblHidden,cc.xy(2,6)); |
744 |
|
745 |
chkHidden.setName("chkHidden");
|
746 |
chkHidden.setRolloverEnabled(true);
|
747 |
jpanel1.add(chkHidden,cc.xy(4,6)); |
748 |
|
749 |
lblLabel.setName("lblLabel");
|
750 |
lblLabel.setText("_Label");
|
751 |
jpanel1.add(lblLabel,cc.xy(2,8)); |
752 |
|
753 |
txtLabel.setName("txtLabel");
|
754 |
jpanel1.add(txtLabel,cc.xy(4,8)); |
755 |
|
756 |
lblDescription.setName("lblDescription");
|
757 |
lblDescription.setText("_Description");
|
758 |
lblDescription.setVerticalAlignment(JLabel.TOP);
|
759 |
jpanel1.add(lblDescription,new CellConstraints(2,10,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
760 |
|
761 |
txtDescription.setName("txtDescription");
|
762 |
JScrollPane jscrollpane1 = new JScrollPane(); |
763 |
jscrollpane1.setViewportView(txtDescription); |
764 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
765 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
766 |
jpanel1.add(jscrollpane1,cc.xy(4,10)); |
767 |
|
768 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 }); |
769 |
return jpanel1;
|
770 |
} |
771 |
|
772 |
public JPanel createPanel13() |
773 |
{ |
774 |
JPanel jpanel1 = new JPanel(); |
775 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE"); |
776 |
CellConstraints cc = new CellConstraints();
|
777 |
jpanel1.setLayout(formlayout1); |
778 |
|
779 |
lblAvailableValues.setName("lblAvailableValues");
|
780 |
lblAvailableValues.setText("_List_of_values");
|
781 |
jpanel1.add(lblAvailableValues,cc.xywh(2,6,5,1)); |
782 |
|
783 |
lstAvailableValues.setName("lstAvailableValues");
|
784 |
JScrollPane jscrollpane1 = new JScrollPane(); |
785 |
jscrollpane1.setViewportView(lstAvailableValues); |
786 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
787 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
788 |
jpanel1.add(jscrollpane1,new CellConstraints(2,8,3,1,CellConstraints.DEFAULT,CellConstraints.FILL)); |
789 |
|
790 |
lblAvailableValuesLabel.setName("lblAvailableValuesLabel");
|
791 |
lblAvailableValuesLabel.setText("_Label");
|
792 |
jpanel1.add(lblAvailableValuesLabel,cc.xy(2,10)); |
793 |
|
794 |
txtAvailableValuesLabel.setName("txtAvailableValuesLabel");
|
795 |
jpanel1.add(txtAvailableValuesLabel,cc.xy(4,10)); |
796 |
|
797 |
lblAvailableValuesValue.setName("lblAvailableValuesValue");
|
798 |
lblAvailableValuesValue.setText("_Value");
|
799 |
jpanel1.add(lblAvailableValuesValue,cc.xy(2,12)); |
800 |
|
801 |
txtAvailableValuesValue.setName("txtAvailableValuesValue");
|
802 |
jpanel1.add(txtAvailableValuesValue,cc.xy(4,12)); |
803 |
|
804 |
lblValuesFilter.setName("lblValuesFilter");
|
805 |
lblValuesFilter.setText("_Filter_for_values");
|
806 |
jpanel1.add(lblValuesFilter,cc.xywh(2,2,5,1)); |
807 |
|
808 |
jpanel1.add(createPanel14(),new CellConstraints(6,8,1,5,CellConstraints.DEFAULT,CellConstraints.TOP)); |
809 |
jpanel1.add(createPanel15(),cc.xywh(2,4,5,1)); |
810 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11,12,13 }); |
811 |
return jpanel1;
|
812 |
} |
813 |
|
814 |
public JPanel createPanel14() |
815 |
{ |
816 |
JPanel jpanel1 = new JPanel(); |
817 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,FILL:2DLU:NONE"); |
818 |
CellConstraints cc = new CellConstraints();
|
819 |
jpanel1.setLayout(formlayout1); |
820 |
|
821 |
btnAvailableValuesAdd.setActionCommand("_Add");
|
822 |
btnAvailableValuesAdd.setName("btnAvailableValuesAdd");
|
823 |
btnAvailableValuesAdd.setRolloverEnabled(true);
|
824 |
btnAvailableValuesAdd.setText("_Add");
|
825 |
jpanel1.add(btnAvailableValuesAdd,cc.xy(1,1)); |
826 |
|
827 |
btnAvailableValuesUpdate.setActionCommand("_Update");
|
828 |
btnAvailableValuesUpdate.setName("btnAvailableValuesUpdate");
|
829 |
btnAvailableValuesUpdate.setRolloverEnabled(true);
|
830 |
btnAvailableValuesUpdate.setText("_Update");
|
831 |
jpanel1.add(btnAvailableValuesUpdate,cc.xy(1,3)); |
832 |
|
833 |
btnAvailableValuesRemove.setActionCommand("_Remove");
|
834 |
btnAvailableValuesRemove.setName("btnAvailableValuesRemove");
|
835 |
btnAvailableValuesRemove.setRolloverEnabled(true);
|
836 |
btnAvailableValuesRemove.setText("_Remove");
|
837 |
jpanel1.add(btnAvailableValuesRemove,cc.xy(1,5)); |
838 |
|
839 |
btnAvailableValuesRemoveAll.setActionCommand("_Remove");
|
840 |
btnAvailableValuesRemoveAll.setName("btnAvailableValuesRemoveAll");
|
841 |
btnAvailableValuesRemoveAll.setRolloverEnabled(true);
|
842 |
btnAvailableValuesRemoveAll.setText("_Remove_all");
|
843 |
jpanel1.add(btnAvailableValuesRemoveAll,cc.xy(1,7)); |
844 |
|
845 |
addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6,8 }); |
846 |
return jpanel1;
|
847 |
} |
848 |
|
849 |
public JPanel createPanel15() |
850 |
{ |
851 |
JPanel jpanel1 = new JPanel(); |
852 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
853 |
CellConstraints cc = new CellConstraints();
|
854 |
jpanel1.setLayout(formlayout1); |
855 |
|
856 |
txtValuesFilter.setName("txtValuesFilter");
|
857 |
jpanel1.add(txtValuesFilter,cc.xy(1,1)); |
858 |
|
859 |
btnValuesFilter.setActionCommand("...");
|
860 |
btnValuesFilter.setName("btnValuesFilter");
|
861 |
btnValuesFilter.setRolloverEnabled(true);
|
862 |
btnValuesFilter.setText("...");
|
863 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
864 |
btnValuesFilter.setBorder(emptyborder1); |
865 |
jpanel1.add(btnValuesFilter,cc.xy(3,1)); |
866 |
|
867 |
btnValuesFilterHistory.setActionCommand("...");
|
868 |
btnValuesFilterHistory.setName("btnValuesFilterHistory");
|
869 |
btnValuesFilterHistory.setRolloverEnabled(true);
|
870 |
btnValuesFilterHistory.setText("...");
|
871 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
872 |
btnValuesFilterHistory.setBorder(emptyborder2); |
873 |
jpanel1.add(btnValuesFilterHistory,cc.xy(5,1)); |
874 |
|
875 |
btnValuesFilterBookmarks.setActionCommand("...");
|
876 |
btnValuesFilterBookmarks.setName("btnValuesFilterBookmarks");
|
877 |
btnValuesFilterBookmarks.setRolloverEnabled(true);
|
878 |
btnValuesFilterBookmarks.setText("...");
|
879 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
880 |
btnValuesFilterBookmarks.setBorder(emptyborder3); |
881 |
jpanel1.add(btnValuesFilterBookmarks,cc.xy(7,1)); |
882 |
|
883 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
884 |
return jpanel1;
|
885 |
} |
886 |
|
887 |
public JPanel createPanel16() |
888 |
{ |
889 |
JPanel jpanel1 = new JPanel(); |
890 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
891 |
CellConstraints cc = new CellConstraints();
|
892 |
jpanel1.setLayout(formlayout1); |
893 |
|
894 |
lblIsPrimaryKey.setName("lblIsPrimaryKey");
|
895 |
lblIsPrimaryKey.setText("_Primary_key");
|
896 |
jpanel1.add(lblIsPrimaryKey,cc.xy(1,1)); |
897 |
|
898 |
chkIsPrimaryKey.setName("chkIsPrimaryKey");
|
899 |
chkIsPrimaryKey.setRolloverEnabled(true);
|
900 |
jpanel1.add(chkIsPrimaryKey,cc.xy(3,1)); |
901 |
|
902 |
lblIsAutomatic.setName("lblIsAutomatic");
|
903 |
lblIsAutomatic.setText("_Value_automatic");
|
904 |
jpanel1.add(lblIsAutomatic,cc.xy(5,1)); |
905 |
|
906 |
chkIsAutomatic.setName("chkIsAutomatic");
|
907 |
chkIsAutomatic.setRolloverEnabled(true);
|
908 |
jpanel1.add(chkIsAutomatic,cc.xy(7,1)); |
909 |
|
910 |
lblAllowNulls.setName("lblAllowNulls");
|
911 |
lblAllowNulls.setText("_Allow_nulls");
|
912 |
jpanel1.add(lblAllowNulls,cc.xy(9,1)); |
913 |
|
914 |
chkAllowNulls.setName("chkAllowNulls");
|
915 |
chkAllowNulls.setRolloverEnabled(true);
|
916 |
jpanel1.add(chkAllowNulls,cc.xy(11,1)); |
917 |
|
918 |
chkIsReadOnly.setName("chkIsReadOnly");
|
919 |
chkIsReadOnly.setRolloverEnabled(true);
|
920 |
jpanel1.add(chkIsReadOnly,cc.xy(3,3)); |
921 |
|
922 |
chkIsIndexed.setName("chkIsIndexed");
|
923 |
chkIsIndexed.setRolloverEnabled(true);
|
924 |
jpanel1.add(chkIsIndexed,cc.xy(7,3)); |
925 |
|
926 |
lblIsReadOnly.setName("lblIsReadOnly");
|
927 |
lblIsReadOnly.setText("_Read_only");
|
928 |
jpanel1.add(lblIsReadOnly,cc.xy(1,3)); |
929 |
|
930 |
lblIsIndexed.setName("lblIsIndexed");
|
931 |
lblIsIndexed.setText("_Indexed");
|
932 |
jpanel1.add(lblIsIndexed,cc.xy(5,3)); |
933 |
|
934 |
addFillComponents(jpanel1,new int[]{ 2,4,6,8,10,12 },new int[]{ 2 }); |
935 |
return jpanel1;
|
936 |
} |
937 |
|
938 |
public JPanel createPanel17() |
939 |
{ |
940 |
JPanel jpanel1 = new JPanel(); |
941 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
942 |
CellConstraints cc = new CellConstraints();
|
943 |
jpanel1.setLayout(formlayout1); |
944 |
|
945 |
cboFieldType.setName("cboFieldType");
|
946 |
jpanel1.add(cboFieldType,cc.xy(1,1)); |
947 |
|
948 |
btnFieldType.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/featuretype/picker-datatype.png"));
|
949 |
btnFieldType.setName("btnFieldType");
|
950 |
btnFieldType.setRolloverEnabled(true);
|
951 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
952 |
btnFieldType.setBorder(emptyborder1); |
953 |
jpanel1.add(btnFieldType,cc.xy(3,1)); |
954 |
|
955 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
956 |
return jpanel1;
|
957 |
} |
958 |
|
959 |
/**
|
960 |
* Initializer
|
961 |
*/
|
962 |
protected void initializePanel() |
963 |
{ |
964 |
setLayout(new BorderLayout()); |
965 |
add(createPanel(), BorderLayout.CENTER);
|
966 |
} |
967 |
|
968 |
|
969 |
} |