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 @ 46850
History | View | Annotate | Download (52.3 KB)
1 |
package org.gvsig.fmap.dal.swing.impl.featuretype; |
---|---|
2 |
|
3 |
import com.jeta.forms.components.line.HorizontalLineComponent; |
4 |
import com.jeta.forms.components.separator.TitledSeparator; |
5 |
import com.jeta.open.i18n.I18NUtils; |
6 |
import com.jgoodies.forms.layout.CellConstraints; |
7 |
import com.jgoodies.forms.layout.FormLayout; |
8 |
import java.awt.BorderLayout; |
9 |
import java.awt.Color; |
10 |
import java.awt.ComponentOrientation; |
11 |
import java.awt.Container; |
12 |
import java.awt.Dimension; |
13 |
import javax.swing.Box; |
14 |
import javax.swing.ButtonGroup; |
15 |
import javax.swing.ImageIcon; |
16 |
import javax.swing.JButton; |
17 |
import javax.swing.JCheckBox; |
18 |
import javax.swing.JComboBox; |
19 |
import javax.swing.JFrame; |
20 |
import javax.swing.JLabel; |
21 |
import javax.swing.JList; |
22 |
import javax.swing.JPanel; |
23 |
import javax.swing.JRadioButton; |
24 |
import javax.swing.JScrollPane; |
25 |
import javax.swing.JTabbedPane; |
26 |
import javax.swing.JTable; |
27 |
import javax.swing.JTextArea; |
28 |
import javax.swing.JTextField; |
29 |
import javax.swing.border.EmptyBorder; |
30 |
|
31 |
|
32 |
public class DefaultFeatureAttributePanelView extends JPanel |
33 |
{ |
34 |
JLabel lblFieldName = new JLabel(); |
35 |
JTextField txtFieldName = new JTextField(); |
36 |
JLabel lblFieldType = new JLabel(); |
37 |
JTabbedPane tabAditionalFields = new JTabbedPane(); |
38 |
JLabel lblSize = new JLabel(); |
39 |
JTextField txtSize = new JTextField(); |
40 |
JLabel lblPrecision = new JLabel(); |
41 |
JLabel lblDefaultValue = new JLabel(); |
42 |
JTextField txtPrecision = new JTextField(); |
43 |
JTextField txtDefaultValue = new JTextField(); |
44 |
JLabel lblDataProfile = new JLabel(); |
45 |
JComboBox cboDataProfile = new JComboBox(); |
46 |
JLabel lblScale = new JLabel(); |
47 |
JTextField txtScale = new JTextField(); |
48 |
JLabel lblDisplaySize = new JLabel(); |
49 |
JTextField txtDisplaySize = new JTextField(); |
50 |
JLabel lblDefaultFormat = new JLabel(); |
51 |
JTextField txtDefaultFormat = new JTextField(); |
52 |
TitledSeparator lblVirtualFieldSep = new TitledSeparator();
|
53 |
JLabel lblVirtualField = new JLabel(); |
54 |
JCheckBox chkVirtualField = new JCheckBox(); |
55 |
JLabel lblVirtualFieldGetter = new JLabel(); |
56 |
JLabel lblVirtualFieldSetter = new JLabel(); |
57 |
JButton btnVirtualFieldBookmarksGetter = new JButton(); |
58 |
JTextField txtVirtualFieldGetter = new JTextField(); |
59 |
JButton btnVirtualFieldHistoryGetter = new JButton(); |
60 |
JButton btnVirtualFieldGetter = new JButton(); |
61 |
JButton btnVirtualFieldBookmarksSetter = new JButton(); |
62 |
JTextField txtVirtualFieldSetter = new JTextField(); |
63 |
JButton btnVirtualFieldHistorySetter = new JButton(); |
64 |
JButton btnVirtualFieldSetter = new JButton(); |
65 |
JLabel lblGeometryType = new JLabel(); |
66 |
JLabel lblGeometrySubtype = new JLabel(); |
67 |
JLabel lblCRS = new JLabel(); |
68 |
JComboBox cboGeometryType = new JComboBox(); |
69 |
JComboBox cboGeometrySubtype = new JComboBox(); |
70 |
JButton btnCRS = new JButton(); |
71 |
JTextField txtCRS = new JTextField(); |
72 |
JLabel lblDateFormat = new JLabel(); |
73 |
JComboBox cboDateFormat = new JComboBox(); |
74 |
JLabel lblInterval = new JLabel(); |
75 |
JLabel lblIntervalStart = new JLabel(); |
76 |
JLabel lblIntervalEnd = new JLabel(); |
77 |
JTextField txtIntervalStart = new JTextField(); |
78 |
JButton btnIntervalStart = new JButton(); |
79 |
JButton btnIntervalEnd = new JButton(); |
80 |
JTextField txtIntervalEnd = new JTextField(); |
81 |
JPanel grdAttrTags = new JPanel(); |
82 |
HorizontalLineComponent horizontallinecomponent1 = new HorizontalLineComponent();
|
83 |
JPanel gridAttrTagsItem = new JPanel(); |
84 |
JButton btnAttrTagsAccept = new JButton(); |
85 |
JButton btnAttrTagsDiscard = new JButton(); |
86 |
JButton btnAttrTagsModify = new JButton(); |
87 |
JPanel grdAttrTagsItemView = new JPanel(); |
88 |
JLabel lblAttrTagsItemName = new JLabel(); |
89 |
JLabel lblAttrTagsItemValue = new JLabel(); |
90 |
JComboBox cboAttrTagsItemName = new JComboBox(); |
91 |
JComboBox cboAttrTagsItemValue = new JComboBox(); |
92 |
JLabel lblAttrTagsItemNotes = new JLabel(); |
93 |
JLabel lblAttrTagsItemNotesValue = new JLabel(); |
94 |
JPanel gridAttrTagsTable = new JPanel(); |
95 |
JTable tblAttrTagsItems = new JTable(); |
96 |
JButton btnAttrTagsNew = new JButton(); |
97 |
JButton btnAttrTagsDelete = new JButton(); |
98 |
JRadioButton rdbRelationNone = new JRadioButton(); |
99 |
ButtonGroup buttongroup1 = new ButtonGroup(); |
100 |
JRadioButton rdbRelationToOne = new JRadioButton(); |
101 |
JRadioButton rdbRelationToMany = new JRadioButton(); |
102 |
JLabel lblRelationNone = new JLabel(); |
103 |
JLabel lblRelationToOne = new JLabel(); |
104 |
JLabel lblRelationToMany = new JLabel(); |
105 |
JLabel lblRelationToOneType = new JLabel(); |
106 |
JLabel lblRelationToOneCondition = new JLabel(); |
107 |
JLabel lblRelationToOneLabelFormula = new JLabel(); |
108 |
JLabel lblRelationToOneIsClosedList = new JLabel(); |
109 |
JCheckBox chkRelationToOneIsClosedList = new JCheckBox(); |
110 |
JComboBox cboRelationToOneType = new JComboBox(); |
111 |
JLabel lblRelationToManyType = new JLabel(); |
112 |
JLabel lblRelationToManyCondition = new JLabel(); |
113 |
JLabel lblRelationToManyExpression = new JLabel(); |
114 |
JComboBox cboRelationToManyType = new JComboBox(); |
115 |
JLabel lblRelationRepository = new JLabel(); |
116 |
JComboBox cboRelationToOneTableName = new JComboBox(); |
117 |
JComboBox cboRelationToOneCodeName = new JComboBox(); |
118 |
JTextField txtRelationToOneMyFieldName = new JTextField(); |
119 |
JComboBox cboRelationToOneFormula = new JComboBox(); |
120 |
JButton btnRelationToOneFormula = new JButton(); |
121 |
JButton btnRelationToOneFormulaHistory = new JButton(); |
122 |
JButton btnRelationToOneFormulaBookmarks = new JButton(); |
123 |
JComboBox cboRelationToManyTableName = new JComboBox(); |
124 |
JComboBox cboRelationToManyForeignFieldName = new JComboBox(); |
125 |
JComboBox cboRelationToManyMyFieldName = new JComboBox(); |
126 |
JTextField txtRelationToManyExpression = new JTextField(); |
127 |
JButton btnRelationToManyExpression = new JButton(); |
128 |
JButton btnRelationToManyExpressionHistory = new JButton(); |
129 |
JButton btnRelationToManyExpressionBookmarks = new JButton(); |
130 |
JComboBox cboRelationRepository = new JComboBox(); |
131 |
JTabbedPane tabLayout = new JTabbedPane(); |
132 |
JLabel lblGroup = new JLabel(); |
133 |
JLabel lblOrder = new JLabel(); |
134 |
JComboBox cboGroup = new JComboBox(); |
135 |
JTextField txtOrder = new JTextField(); |
136 |
JLabel lblHidden = new JLabel(); |
137 |
JCheckBox chkHidden = new JCheckBox(); |
138 |
JLabel lblLabel = new JLabel(); |
139 |
JTextField txtLabel = new JTextField(); |
140 |
JLabel lblDescription = new JLabel(); |
141 |
JTextArea txtDescription = new JTextArea(); |
142 |
JLabel lblAvailableValues = new JLabel(); |
143 |
JList lstAvailableValues = new JList(); |
144 |
JLabel lblAvailableValuesLabel = new JLabel(); |
145 |
JTextField txtAvailableValuesLabel = new JTextField(); |
146 |
JLabel lblAvailableValuesValue = new JLabel(); |
147 |
JTextField txtAvailableValuesValue = new JTextField(); |
148 |
JLabel lblValuesFilter = new JLabel(); |
149 |
JButton btnAvailableValuesAdd = new JButton(); |
150 |
JButton btnAvailableValuesUpdate = new JButton(); |
151 |
JButton btnAvailableValuesRemove = new JButton(); |
152 |
JButton btnAvailableValuesRemoveAll = new JButton(); |
153 |
JTextField txtValuesFilter = new JTextField(); |
154 |
JButton btnValuesFilter = new JButton(); |
155 |
JButton btnValuesFilterHistory = new JButton(); |
156 |
JButton btnValuesFilterBookmarks = new JButton(); |
157 |
JLabel lblIsPrimaryKey = new JLabel(); |
158 |
JCheckBox chkIsPrimaryKey = new JCheckBox(); |
159 |
JLabel lblIsAutomatic = new JLabel(); |
160 |
JCheckBox chkIsAutomatic = new JCheckBox(); |
161 |
JLabel lblAllowNulls = new JLabel(); |
162 |
JCheckBox chkAllowNulls = new JCheckBox(); |
163 |
JCheckBox chkIsReadOnly = new JCheckBox(); |
164 |
JCheckBox chkIsIndexed = new JCheckBox(); |
165 |
JLabel lblIsReadOnly = new JLabel(); |
166 |
JLabel lblIsIndexed = new JLabel(); |
167 |
JComboBox cboFieldType = new JComboBox(); |
168 |
JButton btnFieldType = new JButton(); |
169 |
|
170 |
/**
|
171 |
* Default constructor
|
172 |
*/
|
173 |
public DefaultFeatureAttributePanelView()
|
174 |
{ |
175 |
initializePanel(); |
176 |
} |
177 |
|
178 |
/**
|
179 |
* Adds fill components to empty cells in the first row and first column of the grid.
|
180 |
* This ensures that the grid spacing will be the same as shown in the designer.
|
181 |
* @param cols an array of column indices in the first row where fill components should be added.
|
182 |
* @param rows an array of row indices in the first column where fill components should be added.
|
183 |
*/
|
184 |
void addFillComponents( Container panel, int[] cols, int[] rows ) |
185 |
{ |
186 |
Dimension filler = new Dimension(10,10); |
187 |
|
188 |
boolean filled_cell_11 = false; |
189 |
CellConstraints cc = new CellConstraints();
|
190 |
if ( cols.length > 0 && rows.length > 0 ) |
191 |
{ |
192 |
if ( cols[0] == 1 && rows[0] == 1 ) |
193 |
{ |
194 |
/** add a rigid area */
|
195 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,1) ); |
196 |
filled_cell_11 = true;
|
197 |
} |
198 |
} |
199 |
|
200 |
for( int index = 0; index < cols.length; index++ ) |
201 |
{ |
202 |
if ( cols[index] == 1 && filled_cell_11 ) |
203 |
{ |
204 |
continue;
|
205 |
} |
206 |
panel.add( Box.createRigidArea( filler ), cc.xy(cols[index],1) ); |
207 |
} |
208 |
|
209 |
for( int index = 0; index < rows.length; index++ ) |
210 |
{ |
211 |
if ( rows[index] == 1 && filled_cell_11 ) |
212 |
{ |
213 |
continue;
|
214 |
} |
215 |
panel.add( Box.createRigidArea( filler ), cc.xy(1,rows[index]) ); |
216 |
} |
217 |
|
218 |
} |
219 |
|
220 |
/**
|
221 |
* Helper method to load an image file from the CLASSPATH
|
222 |
* @param imageName the package and name of the file to load relative to the CLASSPATH
|
223 |
* @return an ImageIcon instance with the specified image file
|
224 |
* @throws IllegalArgumentException if the image resource cannot be loaded.
|
225 |
*/
|
226 |
public ImageIcon loadImage( String imageName ) |
227 |
{ |
228 |
try
|
229 |
{ |
230 |
ClassLoader classloader = getClass().getClassLoader();
|
231 |
java.net.URL url = classloader.getResource( imageName ); |
232 |
if ( url != null ) |
233 |
{ |
234 |
ImageIcon icon = new ImageIcon( url ); |
235 |
return icon;
|
236 |
} |
237 |
} |
238 |
catch( Exception e ) |
239 |
{ |
240 |
e.printStackTrace(); |
241 |
} |
242 |
throw new IllegalArgumentException( "Unable to load image: " + imageName ); |
243 |
} |
244 |
|
245 |
/**
|
246 |
* Method for recalculating the component orientation for
|
247 |
* right-to-left Locales.
|
248 |
* @param orientation the component orientation to be applied
|
249 |
*/
|
250 |
public void applyComponentOrientation( ComponentOrientation orientation ) |
251 |
{ |
252 |
// Not yet implemented...
|
253 |
// I18NUtils.applyComponentOrientation(this, orientation);
|
254 |
super.applyComponentOrientation(orientation);
|
255 |
} |
256 |
|
257 |
public JPanel createPanel() |
258 |
{ |
259 |
JPanel jpanel1 = new JPanel(); |
260 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU: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"); |
261 |
CellConstraints cc = new CellConstraints();
|
262 |
jpanel1.setLayout(formlayout1); |
263 |
|
264 |
lblFieldName.setName("lblFieldName");
|
265 |
lblFieldName.setText("_Field_name");
|
266 |
jpanel1.add(lblFieldName,cc.xy(2,2)); |
267 |
|
268 |
txtFieldName.setName("txtFieldName");
|
269 |
jpanel1.add(txtFieldName,cc.xy(4,2)); |
270 |
|
271 |
lblFieldType.setName("lblFieldType");
|
272 |
lblFieldType.setText("_Field_type");
|
273 |
jpanel1.add(lblFieldType,cc.xy(2,4)); |
274 |
|
275 |
tabAditionalFields.setName("tabAditionalFields");
|
276 |
tabAditionalFields.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
277 |
tabAditionalFields.addTab("_Basic_fields",null,createPanel1()); |
278 |
tabAditionalFields.addTab("_Geometry",null,createPanel4()); |
279 |
tabAditionalFields.addTab("_Time",null,createPanel6()); |
280 |
tabAditionalFields.addTab("_Tags",null,createPanel8()); |
281 |
tabAditionalFields.addTab("_Relations",null,createPanel11()); |
282 |
tabAditionalFields.addTab("_Visualization",null,createPanel17()); |
283 |
jpanel1.add(tabAditionalFields,cc.xywh(2,8,3,1)); |
284 |
|
285 |
jpanel1.add(createPanel22(),cc.xy(4,6)); |
286 |
jpanel1.add(createPanel23(),cc.xy(4,4)); |
287 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 }); |
288 |
return jpanel1;
|
289 |
} |
290 |
|
291 |
public JPanel createPanel1() |
292 |
{ |
293 |
JPanel jpanel1 = new JPanel(); |
294 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU: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:3PX: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"); |
295 |
CellConstraints cc = new CellConstraints();
|
296 |
jpanel1.setLayout(formlayout1); |
297 |
|
298 |
lblSize.setName("lblSize");
|
299 |
lblSize.setText("_Size");
|
300 |
jpanel1.add(lblSize,cc.xy(2,4)); |
301 |
|
302 |
txtSize.setName("txtSize");
|
303 |
jpanel1.add(txtSize,cc.xy(4,4)); |
304 |
|
305 |
lblPrecision.setName("lblPrecision");
|
306 |
lblPrecision.setText("_Total_digits_precision");
|
307 |
lblPrecision.setToolTipText("_Number_of_digits_used_to_represent_the_number_Includes_the_digits_of_the_integer_part_and_the_digits_of_the_decimal_part");
|
308 |
jpanel1.add(lblPrecision,cc.xy(2,6)); |
309 |
|
310 |
lblDefaultValue.setName("lblDefaultValue");
|
311 |
lblDefaultValue.setText("_Default_value");
|
312 |
jpanel1.add(lblDefaultValue,cc.xy(2,10)); |
313 |
|
314 |
txtPrecision.setName("txtPrecision");
|
315 |
txtPrecision.setToolTipText("_Number_of_digits_used_to_represent_the_number_Includes_the_digits_of_the_integer_part_and_the_digits_of_the_decimal_part");
|
316 |
jpanel1.add(txtPrecision,cc.xy(4,6)); |
317 |
|
318 |
txtDefaultValue.setName("txtDefaultValue");
|
319 |
jpanel1.add(txtDefaultValue,cc.xy(4,10)); |
320 |
|
321 |
lblDataProfile.setName("lblDataProfile");
|
322 |
lblDataProfile.setText("_Data_profile");
|
323 |
jpanel1.add(lblDataProfile,cc.xy(2,14)); |
324 |
|
325 |
cboDataProfile.setName("cboDataProfile");
|
326 |
jpanel1.add(cboDataProfile,cc.xy(4,14)); |
327 |
|
328 |
lblScale.setName("lblScale");
|
329 |
lblScale.setText("_Decimal_digits_escale");
|
330 |
lblScale.setToolTipText("_Number_of_decimal_digits_used_to_represent_the_number");
|
331 |
jpanel1.add(lblScale,cc.xy(2,8)); |
332 |
|
333 |
txtScale.setName("txtScale");
|
334 |
txtScale.setToolTipText("_Number_of_decimal_digits_used_to_represent_the_number");
|
335 |
jpanel1.add(txtScale,cc.xy(4,8)); |
336 |
|
337 |
lblDisplaySize.setName("lblDisplaySize");
|
338 |
lblDisplaySize.setText("_Characters_in_display");
|
339 |
lblDisplaySize.setToolTipText("_Number_of_characters_required_to_display_the_data_in_this_field_Leave_it_empty_or_zero_to_be_automatically_calculated");
|
340 |
jpanel1.add(lblDisplaySize,cc.xy(2,2)); |
341 |
|
342 |
txtDisplaySize.setName("txtDisplaySize");
|
343 |
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");
|
344 |
jpanel1.add(txtDisplaySize,cc.xy(4,2)); |
345 |
|
346 |
lblDefaultFormat.setName("lblDefaultFormat");
|
347 |
lblDefaultFormat.setText("_Default_format");
|
348 |
jpanel1.add(lblDefaultFormat,cc.xy(2,12)); |
349 |
|
350 |
txtDefaultFormat.setName("txtDefaultFormat");
|
351 |
jpanel1.add(txtDefaultFormat,cc.xy(4,12)); |
352 |
|
353 |
lblVirtualFieldSep.setName("lblVirtualFieldSep");
|
354 |
lblVirtualFieldSep.setText("_Virtual_field");
|
355 |
jpanel1.add(lblVirtualFieldSep,cc.xywh(2,16,3,1)); |
356 |
|
357 |
lblVirtualField.setName("lblVirtualField");
|
358 |
lblVirtualField.setText("_Virtual_field");
|
359 |
jpanel1.add(lblVirtualField,cc.xy(2,18)); |
360 |
|
361 |
chkVirtualField.setActionCommand("Campo virtual");
|
362 |
chkVirtualField.setName("chkVirtualField");
|
363 |
chkVirtualField.setRolloverEnabled(true);
|
364 |
jpanel1.add(chkVirtualField,cc.xy(4,18)); |
365 |
|
366 |
lblVirtualFieldGetter.setName("lblVirtualFieldGetter");
|
367 |
lblVirtualFieldGetter.setText("_Expression_get");
|
368 |
jpanel1.add(lblVirtualFieldGetter,cc.xy(2,20)); |
369 |
|
370 |
lblVirtualFieldSetter.setName("lblVirtualFieldSetter");
|
371 |
lblVirtualFieldSetter.setText("_Expression_set");
|
372 |
jpanel1.add(lblVirtualFieldSetter,cc.xy(2,22)); |
373 |
|
374 |
jpanel1.add(createPanel2(),cc.xy(4,20)); |
375 |
jpanel1.add(createPanel3(),cc.xy(4,22)); |
376 |
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,17,18,19,20,21,22 }); |
377 |
return jpanel1;
|
378 |
} |
379 |
|
380 |
public JPanel createPanel2() |
381 |
{ |
382 |
JPanel jpanel1 = new JPanel(); |
383 |
FormLayout formlayout1 = new FormLayout("FILL:200PX:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
384 |
CellConstraints cc = new CellConstraints();
|
385 |
jpanel1.setLayout(formlayout1); |
386 |
|
387 |
btnVirtualFieldBookmarksGetter.setActionCommand("...");
|
388 |
btnVirtualFieldBookmarksGetter.setName("btnVirtualFieldBookmarksGetter");
|
389 |
btnVirtualFieldBookmarksGetter.setOpaque(false);
|
390 |
btnVirtualFieldBookmarksGetter.setRolloverEnabled(true);
|
391 |
btnVirtualFieldBookmarksGetter.setText("...");
|
392 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
393 |
btnVirtualFieldBookmarksGetter.setBorder(emptyborder1); |
394 |
jpanel1.add(btnVirtualFieldBookmarksGetter,cc.xy(7,1)); |
395 |
|
396 |
txtVirtualFieldGetter.setName("txtVirtualFieldGetter");
|
397 |
jpanel1.add(txtVirtualFieldGetter,cc.xy(1,1)); |
398 |
|
399 |
btnVirtualFieldHistoryGetter.setActionCommand("...");
|
400 |
btnVirtualFieldHistoryGetter.setName("btnVirtualFieldHistoryGetter");
|
401 |
btnVirtualFieldHistoryGetter.setOpaque(false);
|
402 |
btnVirtualFieldHistoryGetter.setRolloverEnabled(true);
|
403 |
btnVirtualFieldHistoryGetter.setText("...");
|
404 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
405 |
btnVirtualFieldHistoryGetter.setBorder(emptyborder2); |
406 |
jpanel1.add(btnVirtualFieldHistoryGetter,cc.xy(5,1)); |
407 |
|
408 |
btnVirtualFieldGetter.setActionCommand("...");
|
409 |
btnVirtualFieldGetter.setName("btnVirtualFieldGetter");
|
410 |
btnVirtualFieldGetter.setOpaque(false);
|
411 |
btnVirtualFieldGetter.setRolloverEnabled(true);
|
412 |
btnVirtualFieldGetter.setText("...");
|
413 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
414 |
btnVirtualFieldGetter.setBorder(emptyborder3); |
415 |
jpanel1.add(btnVirtualFieldGetter,cc.xy(3,1)); |
416 |
|
417 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
418 |
return jpanel1;
|
419 |
} |
420 |
|
421 |
public JPanel createPanel3() |
422 |
{ |
423 |
JPanel jpanel1 = new JPanel(); |
424 |
FormLayout formlayout1 = new FormLayout("FILL:200PX:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
425 |
CellConstraints cc = new CellConstraints();
|
426 |
jpanel1.setLayout(formlayout1); |
427 |
|
428 |
btnVirtualFieldBookmarksSetter.setActionCommand("...");
|
429 |
btnVirtualFieldBookmarksSetter.setName("btnVirtualFieldBookmarksSetter");
|
430 |
btnVirtualFieldBookmarksSetter.setOpaque(false);
|
431 |
btnVirtualFieldBookmarksSetter.setRolloverEnabled(true);
|
432 |
btnVirtualFieldBookmarksSetter.setText("...");
|
433 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
434 |
btnVirtualFieldBookmarksSetter.setBorder(emptyborder1); |
435 |
jpanel1.add(btnVirtualFieldBookmarksSetter,cc.xy(7,1)); |
436 |
|
437 |
txtVirtualFieldSetter.setName("txtVirtualFieldSetter");
|
438 |
jpanel1.add(txtVirtualFieldSetter,cc.xy(1,1)); |
439 |
|
440 |
btnVirtualFieldHistorySetter.setActionCommand("...");
|
441 |
btnVirtualFieldHistorySetter.setName("btnVirtualFieldHistorySetter");
|
442 |
btnVirtualFieldHistorySetter.setOpaque(false);
|
443 |
btnVirtualFieldHistorySetter.setRolloverEnabled(true);
|
444 |
btnVirtualFieldHistorySetter.setText("...");
|
445 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
446 |
btnVirtualFieldHistorySetter.setBorder(emptyborder2); |
447 |
jpanel1.add(btnVirtualFieldHistorySetter,cc.xy(5,1)); |
448 |
|
449 |
btnVirtualFieldSetter.setActionCommand("...");
|
450 |
btnVirtualFieldSetter.setName("btnVirtualFieldSetter");
|
451 |
btnVirtualFieldSetter.setOpaque(false);
|
452 |
btnVirtualFieldSetter.setRolloverEnabled(true);
|
453 |
btnVirtualFieldSetter.setText("...");
|
454 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
455 |
btnVirtualFieldSetter.setBorder(emptyborder3); |
456 |
jpanel1.add(btnVirtualFieldSetter,cc.xy(3,1)); |
457 |
|
458 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
459 |
return jpanel1;
|
460 |
} |
461 |
|
462 |
public JPanel createPanel4() |
463 |
{ |
464 |
JPanel jpanel1 = new JPanel(); |
465 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU: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"); |
466 |
CellConstraints cc = new CellConstraints();
|
467 |
jpanel1.setLayout(formlayout1); |
468 |
|
469 |
lblGeometryType.setName("lblGeometryType");
|
470 |
lblGeometryType.setText("_Geometry_type");
|
471 |
jpanel1.add(lblGeometryType,cc.xy(2,2)); |
472 |
|
473 |
lblGeometrySubtype.setName("lblGeometrySubtype");
|
474 |
lblGeometrySubtype.setText("_Geometry_subtype");
|
475 |
jpanel1.add(lblGeometrySubtype,cc.xy(2,4)); |
476 |
|
477 |
lblCRS.setName("lblCRS");
|
478 |
lblCRS.setText("_CRS");
|
479 |
jpanel1.add(lblCRS,cc.xy(2,6)); |
480 |
|
481 |
cboGeometryType.setName("cboGeometryType");
|
482 |
jpanel1.add(cboGeometryType,cc.xy(4,2)); |
483 |
|
484 |
cboGeometrySubtype.setName("cboGeometrySubtype");
|
485 |
jpanel1.add(cboGeometrySubtype,cc.xy(4,4)); |
486 |
|
487 |
jpanel1.add(createPanel5(),cc.xy(4,6)); |
488 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 }); |
489 |
return jpanel1;
|
490 |
} |
491 |
|
492 |
public JPanel createPanel5() |
493 |
{ |
494 |
JPanel jpanel1 = new JPanel(); |
495 |
FormLayout formlayout1 = new FormLayout("FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
496 |
CellConstraints cc = new CellConstraints();
|
497 |
jpanel1.setLayout(formlayout1); |
498 |
|
499 |
btnCRS.setActionCommand("...");
|
500 |
btnCRS.setName("btnCRS");
|
501 |
btnCRS.setOpaque(false);
|
502 |
btnCRS.setRolloverEnabled(true);
|
503 |
btnCRS.setText("...");
|
504 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
505 |
btnCRS.setBorder(emptyborder1); |
506 |
jpanel1.add(btnCRS,cc.xy(3,1)); |
507 |
|
508 |
txtCRS.setName("txtCRS");
|
509 |
jpanel1.add(txtCRS,cc.xy(1,1)); |
510 |
|
511 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
512 |
return jpanel1;
|
513 |
} |
514 |
|
515 |
public JPanel createPanel6() |
516 |
{ |
517 |
JPanel jpanel1 = new JPanel(); |
518 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
519 |
CellConstraints cc = new CellConstraints();
|
520 |
jpanel1.setLayout(formlayout1); |
521 |
|
522 |
lblDateFormat.setName("lblDateFormat");
|
523 |
lblDateFormat.setText("_Date_format");
|
524 |
jpanel1.add(lblDateFormat,cc.xy(2,2)); |
525 |
|
526 |
cboDateFormat.setEditable(true);
|
527 |
cboDateFormat.setName("cboDateFormat");
|
528 |
cboDateFormat.setRequestFocusEnabled(false);
|
529 |
jpanel1.add(cboDateFormat,cc.xy(4,2)); |
530 |
|
531 |
lblInterval.setName("lblInterval");
|
532 |
lblInterval.setText("_Interval");
|
533 |
jpanel1.add(lblInterval,new CellConstraints(2,5,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
534 |
|
535 |
jpanel1.add(createPanel7(),cc.xy(4,5)); |
536 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6 }); |
537 |
return jpanel1;
|
538 |
} |
539 |
|
540 |
public JPanel createPanel7() |
541 |
{ |
542 |
JPanel jpanel1 = new JPanel(); |
543 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
544 |
CellConstraints cc = new CellConstraints();
|
545 |
jpanel1.setLayout(formlayout1); |
546 |
|
547 |
lblIntervalStart.setName("lblIntervalStart");
|
548 |
lblIntervalStart.setText("_Start");
|
549 |
jpanel1.add(lblIntervalStart,cc.xy(1,1)); |
550 |
|
551 |
lblIntervalEnd.setName("lblIntervalEnd");
|
552 |
lblIntervalEnd.setText("_End");
|
553 |
jpanel1.add(lblIntervalEnd,cc.xy(1,3)); |
554 |
|
555 |
txtIntervalStart.setName("txtIntervalStart");
|
556 |
jpanel1.add(txtIntervalStart,cc.xy(3,1)); |
557 |
|
558 |
btnIntervalStart.setActionCommand("...");
|
559 |
btnIntervalStart.setName("btnIntervalStart");
|
560 |
btnIntervalStart.setOpaque(false);
|
561 |
btnIntervalStart.setRolloverEnabled(true);
|
562 |
btnIntervalStart.setText("...");
|
563 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
564 |
btnIntervalStart.setBorder(emptyborder1); |
565 |
jpanel1.add(btnIntervalStart,cc.xy(5,1)); |
566 |
|
567 |
btnIntervalEnd.setActionCommand("...");
|
568 |
btnIntervalEnd.setName("btnIntervalEnd");
|
569 |
btnIntervalEnd.setOpaque(false);
|
570 |
btnIntervalEnd.setRolloverEnabled(true);
|
571 |
btnIntervalEnd.setText("...");
|
572 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
573 |
btnIntervalEnd.setBorder(emptyborder2); |
574 |
jpanel1.add(btnIntervalEnd,cc.xy(5,3)); |
575 |
|
576 |
txtIntervalEnd.setName("txtIntervalEnd");
|
577 |
jpanel1.add(txtIntervalEnd,cc.xy(3,3)); |
578 |
|
579 |
addFillComponents(jpanel1,new int[]{ 2,4 },new int[]{ 2 }); |
580 |
return jpanel1;
|
581 |
} |
582 |
|
583 |
public JPanel createPanel8() |
584 |
{ |
585 |
JPanel jpanel1 = new JPanel(); |
586 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE"); |
587 |
CellConstraints cc = new CellConstraints();
|
588 |
jpanel1.setLayout(formlayout1); |
589 |
|
590 |
jpanel1.add(creategrdAttrTags(),cc.xy(2,2)); |
591 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 }); |
592 |
return jpanel1;
|
593 |
} |
594 |
|
595 |
public JPanel creategrdAttrTags() |
596 |
{ |
597 |
grdAttrTags.setName("grdAttrTags");
|
598 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
599 |
CellConstraints cc = new CellConstraints();
|
600 |
grdAttrTags.setLayout(formlayout1); |
601 |
|
602 |
grdAttrTags.add(horizontallinecomponent1,cc.xy(1,2)); |
603 |
|
604 |
grdAttrTags.add(creategridAttrTagsItem(),cc.xy(1,3)); |
605 |
grdAttrTags.add(creategridAttrTagsTable(),cc.xy(1,1)); |
606 |
addFillComponents(grdAttrTags,new int[]{ 1 },new int[]{ 1,3 }); |
607 |
return grdAttrTags;
|
608 |
} |
609 |
|
610 |
public JPanel creategridAttrTagsItem() |
611 |
{ |
612 |
gridAttrTagsItem.setName("gridAttrTagsItem");
|
613 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:NONE"); |
614 |
CellConstraints cc = new CellConstraints();
|
615 |
gridAttrTagsItem.setLayout(formlayout1); |
616 |
|
617 |
gridAttrTagsItem.add(createPanel9(),new CellConstraints(3,1,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
618 |
gridAttrTagsItem.add(creategrdAttrTagsItemView(),cc.xy(1,1)); |
619 |
addFillComponents(gridAttrTagsItem,new int[]{ 1,2,3 },new int[]{ 1 }); |
620 |
return gridAttrTagsItem;
|
621 |
} |
622 |
|
623 |
public JPanel createPanel9() |
624 |
{ |
625 |
JPanel jpanel1 = new JPanel(); |
626 |
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"); |
627 |
CellConstraints cc = new CellConstraints();
|
628 |
jpanel1.setLayout(formlayout1); |
629 |
|
630 |
btnAttrTagsAccept.setActionCommand("JButton");
|
631 |
btnAttrTagsAccept.setName("btnAttrTagsAccept");
|
632 |
btnAttrTagsAccept.setRolloverEnabled(true);
|
633 |
btnAttrTagsAccept.setText("Accept");
|
634 |
jpanel1.add(btnAttrTagsAccept,cc.xy(2,3)); |
635 |
|
636 |
btnAttrTagsDiscard.setActionCommand("JButton");
|
637 |
btnAttrTagsDiscard.setName("btnAttrTagsDiscard");
|
638 |
btnAttrTagsDiscard.setRolloverEnabled(true);
|
639 |
btnAttrTagsDiscard.setText("_Discard");
|
640 |
jpanel1.add(btnAttrTagsDiscard,cc.xy(2,5)); |
641 |
|
642 |
btnAttrTagsModify.setActionCommand("JButton");
|
643 |
btnAttrTagsModify.setName("btnAttrTagsModify");
|
644 |
btnAttrTagsModify.setRolloverEnabled(true);
|
645 |
btnAttrTagsModify.setText("_Modify");
|
646 |
jpanel1.add(btnAttrTagsModify,cc.xy(2,1)); |
647 |
|
648 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5 }); |
649 |
return jpanel1;
|
650 |
} |
651 |
|
652 |
public JPanel creategrdAttrTagsItemView() |
653 |
{ |
654 |
grdAttrTagsItemView.setName("grdAttrTagsItemView");
|
655 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0)","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
656 |
CellConstraints cc = new CellConstraints();
|
657 |
grdAttrTagsItemView.setLayout(formlayout1); |
658 |
|
659 |
lblAttrTagsItemName.setName("lblAttrTagsItemName");
|
660 |
lblAttrTagsItemName.setText("_Name");
|
661 |
grdAttrTagsItemView.add(lblAttrTagsItemName,cc.xy(1,1)); |
662 |
|
663 |
lblAttrTagsItemValue.setName("lblAttrTagsItemValue");
|
664 |
lblAttrTagsItemValue.setText("_Value");
|
665 |
grdAttrTagsItemView.add(lblAttrTagsItemValue,cc.xy(1,3)); |
666 |
|
667 |
cboAttrTagsItemName.setName("cboAttrTagsItemName");
|
668 |
grdAttrTagsItemView.add(cboAttrTagsItemName,cc.xy(3,1)); |
669 |
|
670 |
cboAttrTagsItemValue.setEditable(true);
|
671 |
cboAttrTagsItemValue.setName("cboAttrTagsItemValue");
|
672 |
cboAttrTagsItemValue.setRequestFocusEnabled(false);
|
673 |
grdAttrTagsItemView.add(cboAttrTagsItemValue,cc.xy(3,3)); |
674 |
|
675 |
lblAttrTagsItemNotes.setName("lblAttrTagsItemNotes");
|
676 |
lblAttrTagsItemNotes.setText("_Notes");
|
677 |
grdAttrTagsItemView.add(lblAttrTagsItemNotes,cc.xy(1,5)); |
678 |
|
679 |
lblAttrTagsItemNotesValue.setName("lblAttrTagsItemNotesValue");
|
680 |
grdAttrTagsItemView.add(lblAttrTagsItemNotesValue,cc.xy(3,5)); |
681 |
|
682 |
addFillComponents(grdAttrTagsItemView,new int[]{ 2 },new int[]{ 2,4,6 }); |
683 |
return grdAttrTagsItemView;
|
684 |
} |
685 |
|
686 |
public JPanel creategridAttrTagsTable() |
687 |
{ |
688 |
gridAttrTagsTable.setName("gridAttrTagsTable");
|
689 |
FormLayout formlayout1 = new FormLayout("FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:GROW(1.0)"); |
690 |
CellConstraints cc = new CellConstraints();
|
691 |
gridAttrTagsTable.setLayout(formlayout1); |
692 |
|
693 |
tblAttrTagsItems.setName("tblAttrTagsItems");
|
694 |
JScrollPane jscrollpane1 = new JScrollPane(); |
695 |
jscrollpane1.setViewportView(tblAttrTagsItems); |
696 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
697 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
698 |
gridAttrTagsTable.add(jscrollpane1,new CellConstraints(1,1,1,1,CellConstraints.FILL,CellConstraints.FILL)); |
699 |
|
700 |
gridAttrTagsTable.add(createPanel10(),new CellConstraints(3,1,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
701 |
addFillComponents(gridAttrTagsTable,new int[]{ 2,3 },new int[0]); |
702 |
return gridAttrTagsTable;
|
703 |
} |
704 |
|
705 |
public JPanel createPanel10() |
706 |
{ |
707 |
JPanel jpanel1 = new JPanel(); |
708 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
709 |
CellConstraints cc = new CellConstraints();
|
710 |
jpanel1.setLayout(formlayout1); |
711 |
|
712 |
btnAttrTagsNew.setActionCommand("_New");
|
713 |
btnAttrTagsNew.setName("btnAttrTagsNew");
|
714 |
btnAttrTagsNew.setRolloverEnabled(true);
|
715 |
btnAttrTagsNew.setText("_New");
|
716 |
jpanel1.add(btnAttrTagsNew,cc.xy(1,1)); |
717 |
|
718 |
btnAttrTagsDelete.setActionCommand("_Delete");
|
719 |
btnAttrTagsDelete.setName("btnAttrTagsDelete");
|
720 |
btnAttrTagsDelete.setRolloverEnabled(true);
|
721 |
btnAttrTagsDelete.setText("_Delete");
|
722 |
jpanel1.add(btnAttrTagsDelete,cc.xy(1,3)); |
723 |
|
724 |
addFillComponents(jpanel1,new int[0],new int[]{ 2 }); |
725 |
return jpanel1;
|
726 |
} |
727 |
|
728 |
public JPanel createPanel11() |
729 |
{ |
730 |
JPanel jpanel1 = new JPanel(); |
731 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU:NONE,CENTER:DEFAULT:NONE,CENTER:4DLU: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:4DLU: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"); |
732 |
CellConstraints cc = new CellConstraints();
|
733 |
jpanel1.setLayout(formlayout1); |
734 |
|
735 |
rdbRelationNone.setActionCommand("_None");
|
736 |
rdbRelationNone.setName("rdbRelationNone");
|
737 |
rdbRelationNone.setRolloverEnabled(true);
|
738 |
buttongroup1.add(rdbRelationNone); |
739 |
jpanel1.add(rdbRelationNone,cc.xy(2,4)); |
740 |
|
741 |
rdbRelationToOne.setActionCommand("_to_one_1");
|
742 |
rdbRelationToOne.setName("rdbRelationToOne");
|
743 |
rdbRelationToOne.setRolloverEnabled(true);
|
744 |
buttongroup1.add(rdbRelationToOne); |
745 |
jpanel1.add(rdbRelationToOne,cc.xy(2,6)); |
746 |
|
747 |
rdbRelationToMany.setActionCommand("_To_many_N");
|
748 |
rdbRelationToMany.setName("rdbRelationToMany");
|
749 |
rdbRelationToMany.setRolloverEnabled(true);
|
750 |
buttongroup1.add(rdbRelationToMany); |
751 |
jpanel1.add(rdbRelationToMany,cc.xy(2,16)); |
752 |
|
753 |
lblRelationNone.setName("lblRelationNone");
|
754 |
lblRelationNone.setText("_None");
|
755 |
jpanel1.add(lblRelationNone,cc.xywh(4,4,3,1)); |
756 |
|
757 |
lblRelationToOne.setName("lblRelationToOne");
|
758 |
lblRelationToOne.setText("_To_one_1");
|
759 |
jpanel1.add(lblRelationToOne,cc.xywh(4,6,3,1)); |
760 |
|
761 |
lblRelationToMany.setName("lblRelationToMany");
|
762 |
lblRelationToMany.setText("_To_many_N");
|
763 |
jpanel1.add(lblRelationToMany,cc.xywh(4,16,3,1)); |
764 |
|
765 |
lblRelationToOneType.setName("lblRelationToOneType");
|
766 |
lblRelationToOneType.setText("_Relation_type");
|
767 |
jpanel1.add(lblRelationToOneType,cc.xy(4,8)); |
768 |
|
769 |
lblRelationToOneCondition.setName("lblRelationToOneCondition");
|
770 |
lblRelationToOneCondition.setText("_Condition");
|
771 |
jpanel1.add(lblRelationToOneCondition,cc.xy(4,10)); |
772 |
|
773 |
lblRelationToOneLabelFormula.setName("lblRelationToOneLabelFormula");
|
774 |
lblRelationToOneLabelFormula.setText("_Label_formula");
|
775 |
jpanel1.add(lblRelationToOneLabelFormula,cc.xy(4,12)); |
776 |
|
777 |
lblRelationToOneIsClosedList.setName("lblRelationToOneIsClosedList");
|
778 |
lblRelationToOneIsClosedList.setText("_is_closed_list");
|
779 |
jpanel1.add(lblRelationToOneIsClosedList,cc.xy(4,14)); |
780 |
|
781 |
chkRelationToOneIsClosedList.setName("chkRelationToOneIsClosedList");
|
782 |
chkRelationToOneIsClosedList.setRolloverEnabled(true);
|
783 |
jpanel1.add(chkRelationToOneIsClosedList,cc.xy(6,14)); |
784 |
|
785 |
cboRelationToOneType.setName("cboRelationToOneType");
|
786 |
jpanel1.add(cboRelationToOneType,cc.xy(6,8)); |
787 |
|
788 |
lblRelationToManyType.setName("lblRelationToManyType");
|
789 |
lblRelationToManyType.setText("_Relation_type");
|
790 |
jpanel1.add(lblRelationToManyType,cc.xy(4,18)); |
791 |
|
792 |
lblRelationToManyCondition.setName("lblRelationToManyCondition");
|
793 |
lblRelationToManyCondition.setText("_Condition");
|
794 |
jpanel1.add(lblRelationToManyCondition,cc.xy(4,20)); |
795 |
|
796 |
lblRelationToManyExpression.setName("lblRelationToManyExpression");
|
797 |
lblRelationToManyExpression.setText("_Expression");
|
798 |
jpanel1.add(lblRelationToManyExpression,cc.xy(4,22)); |
799 |
|
800 |
cboRelationToManyType.setName("cboRelationToManyType");
|
801 |
jpanel1.add(cboRelationToManyType,cc.xy(6,18)); |
802 |
|
803 |
lblRelationRepository.setName("lblRelationRepository");
|
804 |
lblRelationRepository.setText("_Repository");
|
805 |
jpanel1.add(lblRelationRepository,cc.xywh(2,2,3,1)); |
806 |
|
807 |
jpanel1.add(createPanel12(),cc.xy(6,10)); |
808 |
jpanel1.add(createPanel13(),cc.xy(6,12)); |
809 |
jpanel1.add(createPanel14(),cc.xy(6,20)); |
810 |
jpanel1.add(createPanel15(),cc.xy(6,22)); |
811 |
jpanel1.add(createPanel16(),cc.xy(6,2)); |
812 |
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,14,15,16,17,18,19,20,21,22,23 }); |
813 |
return jpanel1;
|
814 |
} |
815 |
|
816 |
public JPanel createPanel12() |
817 |
{ |
818 |
JPanel jpanel1 = new JPanel(); |
819 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:12DLU:GROW(1.0)","CENTER:DEFAULT:GROW(1.0)"); |
820 |
CellConstraints cc = new CellConstraints();
|
821 |
jpanel1.setLayout(formlayout1); |
822 |
|
823 |
cboRelationToOneTableName.setEditable(true);
|
824 |
cboRelationToOneTableName.setName("cboRelationToOneTableName");
|
825 |
cboRelationToOneTableName.setRequestFocusEnabled(false);
|
826 |
jpanel1.add(cboRelationToOneTableName,cc.xy(5,1)); |
827 |
|
828 |
cboRelationToOneCodeName.setEditable(true);
|
829 |
cboRelationToOneCodeName.setName("cboRelationToOneCodeName");
|
830 |
cboRelationToOneCodeName.setRequestFocusEnabled(false);
|
831 |
jpanel1.add(cboRelationToOneCodeName,cc.xy(7,1)); |
832 |
|
833 |
JLabel jlabel1 = new JLabel(); |
834 |
jlabel1.setText("=");
|
835 |
jpanel1.add(jlabel1,cc.xy(3,1)); |
836 |
|
837 |
txtRelationToOneMyFieldName.setBackground(new Color(225,225,225)); |
838 |
txtRelationToOneMyFieldName.setEditable(false);
|
839 |
txtRelationToOneMyFieldName.setName("txtRelationToOneMyFieldName");
|
840 |
jpanel1.add(txtRelationToOneMyFieldName,cc.xy(1,1)); |
841 |
|
842 |
JLabel jlabel2 = new JLabel(); |
843 |
jlabel2.setText(".");
|
844 |
jpanel1.add(jlabel2,cc.xy(6,1)); |
845 |
|
846 |
addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]); |
847 |
return jpanel1;
|
848 |
} |
849 |
|
850 |
public JPanel createPanel13() |
851 |
{ |
852 |
JPanel jpanel1 = new JPanel(); |
853 |
FormLayout formlayout1 = new FormLayout("FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
854 |
CellConstraints cc = new CellConstraints();
|
855 |
jpanel1.setLayout(formlayout1); |
856 |
|
857 |
cboRelationToOneFormula.setName("cboRelationToOneFormula");
|
858 |
jpanel1.add(cboRelationToOneFormula,cc.xy(1,1)); |
859 |
|
860 |
btnRelationToOneFormula.setActionCommand("...");
|
861 |
btnRelationToOneFormula.setName("btnRelationToOneFormula");
|
862 |
btnRelationToOneFormula.setOpaque(false);
|
863 |
btnRelationToOneFormula.setRolloverEnabled(true);
|
864 |
btnRelationToOneFormula.setText("...");
|
865 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
866 |
btnRelationToOneFormula.setBorder(emptyborder1); |
867 |
jpanel1.add(btnRelationToOneFormula,cc.xy(3,1)); |
868 |
|
869 |
btnRelationToOneFormulaHistory.setActionCommand("...");
|
870 |
btnRelationToOneFormulaHistory.setName("btnRelationToOneFormulaHistory");
|
871 |
btnRelationToOneFormulaHistory.setOpaque(false);
|
872 |
btnRelationToOneFormulaHistory.setRolloverEnabled(true);
|
873 |
btnRelationToOneFormulaHistory.setText("...");
|
874 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
875 |
btnRelationToOneFormulaHistory.setBorder(emptyborder2); |
876 |
jpanel1.add(btnRelationToOneFormulaHistory,cc.xy(5,1)); |
877 |
|
878 |
btnRelationToOneFormulaBookmarks.setActionCommand("...");
|
879 |
btnRelationToOneFormulaBookmarks.setName("btnRelationToOneFormulaBookmarks");
|
880 |
btnRelationToOneFormulaBookmarks.setOpaque(false);
|
881 |
btnRelationToOneFormulaBookmarks.setRolloverEnabled(true);
|
882 |
btnRelationToOneFormulaBookmarks.setText("...");
|
883 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
884 |
btnRelationToOneFormulaBookmarks.setBorder(emptyborder3); |
885 |
jpanel1.add(btnRelationToOneFormulaBookmarks,cc.xy(7,1)); |
886 |
|
887 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
888 |
return jpanel1;
|
889 |
} |
890 |
|
891 |
public JPanel createPanel14() |
892 |
{ |
893 |
JPanel jpanel1 = new JPanel(); |
894 |
FormLayout formlayout1 = new FormLayout("FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:12DLU:GROW(1.0)","CENTER:DEFAULT:NONE"); |
895 |
CellConstraints cc = new CellConstraints();
|
896 |
jpanel1.setLayout(formlayout1); |
897 |
|
898 |
cboRelationToManyTableName.setEditable(true);
|
899 |
cboRelationToManyTableName.setName("cboRelationToManyTableName");
|
900 |
cboRelationToManyTableName.setRequestFocusEnabled(false);
|
901 |
jpanel1.add(cboRelationToManyTableName,cc.xy(5,1)); |
902 |
|
903 |
cboRelationToManyForeignFieldName.setEditable(true);
|
904 |
cboRelationToManyForeignFieldName.setName("cboRelationToManyForeignFieldName");
|
905 |
cboRelationToManyForeignFieldName.setRequestFocusEnabled(false);
|
906 |
jpanel1.add(cboRelationToManyForeignFieldName,cc.xy(7,1)); |
907 |
|
908 |
cboRelationToManyMyFieldName.setEditable(true);
|
909 |
cboRelationToManyMyFieldName.setName("cboRelationToManyMyFieldName");
|
910 |
cboRelationToManyMyFieldName.setRequestFocusEnabled(false);
|
911 |
jpanel1.add(cboRelationToManyMyFieldName,cc.xy(1,1)); |
912 |
|
913 |
JLabel jlabel1 = new JLabel(); |
914 |
jlabel1.setText("=");
|
915 |
jpanel1.add(jlabel1,cc.xy(3,1)); |
916 |
|
917 |
JLabel jlabel2 = new JLabel(); |
918 |
jlabel2.setText(".");
|
919 |
jpanel1.add(jlabel2,cc.xy(6,1)); |
920 |
|
921 |
addFillComponents(jpanel1,new int[]{ 2,4 },new int[0]); |
922 |
return jpanel1;
|
923 |
} |
924 |
|
925 |
public JPanel createPanel15() |
926 |
{ |
927 |
JPanel jpanel1 = new JPanel(); |
928 |
FormLayout formlayout1 = new FormLayout("FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
929 |
CellConstraints cc = new CellConstraints();
|
930 |
jpanel1.setLayout(formlayout1); |
931 |
|
932 |
txtRelationToManyExpression.setName("txtRelationToManyExpression");
|
933 |
jpanel1.add(txtRelationToManyExpression,cc.xy(1,1)); |
934 |
|
935 |
btnRelationToManyExpression.setActionCommand("...");
|
936 |
btnRelationToManyExpression.setName("btnRelationToManyExpression");
|
937 |
btnRelationToManyExpression.setOpaque(false);
|
938 |
btnRelationToManyExpression.setRolloverEnabled(true);
|
939 |
btnRelationToManyExpression.setText("...");
|
940 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
941 |
btnRelationToManyExpression.setBorder(emptyborder1); |
942 |
jpanel1.add(btnRelationToManyExpression,cc.xy(3,1)); |
943 |
|
944 |
btnRelationToManyExpressionHistory.setActionCommand("...");
|
945 |
btnRelationToManyExpressionHistory.setName("btnRelationToManyExpressionHistory");
|
946 |
btnRelationToManyExpressionHistory.setOpaque(false);
|
947 |
btnRelationToManyExpressionHistory.setRolloverEnabled(true);
|
948 |
btnRelationToManyExpressionHistory.setText("...");
|
949 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
950 |
btnRelationToManyExpressionHistory.setBorder(emptyborder2); |
951 |
jpanel1.add(btnRelationToManyExpressionHistory,cc.xy(5,1)); |
952 |
|
953 |
btnRelationToManyExpressionBookmarks.setActionCommand("...");
|
954 |
btnRelationToManyExpressionBookmarks.setName("btnRelationToManyExpressionBookmarks");
|
955 |
btnRelationToManyExpressionBookmarks.setOpaque(false);
|
956 |
btnRelationToManyExpressionBookmarks.setRolloverEnabled(true);
|
957 |
btnRelationToManyExpressionBookmarks.setText("...");
|
958 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
959 |
btnRelationToManyExpressionBookmarks.setBorder(emptyborder3); |
960 |
jpanel1.add(btnRelationToManyExpressionBookmarks,cc.xy(7,1)); |
961 |
|
962 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
963 |
return jpanel1;
|
964 |
} |
965 |
|
966 |
public JPanel createPanel16() |
967 |
{ |
968 |
JPanel jpanel1 = new JPanel(); |
969 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","CENTER:DEFAULT:NONE"); |
970 |
CellConstraints cc = new CellConstraints();
|
971 |
jpanel1.setLayout(formlayout1); |
972 |
|
973 |
cboRelationRepository.setEditable(true);
|
974 |
cboRelationRepository.setEnabled(false);
|
975 |
cboRelationRepository.setName("cboRelationRepository");
|
976 |
cboRelationRepository.setRequestFocusEnabled(false);
|
977 |
jpanel1.add(cboRelationRepository,cc.xy(1,1)); |
978 |
|
979 |
addFillComponents(jpanel1,new int[0],new int[0]); |
980 |
return jpanel1;
|
981 |
} |
982 |
|
983 |
public JPanel createPanel17() |
984 |
{ |
985 |
JPanel jpanel1 = new JPanel(); |
986 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0)"); |
987 |
CellConstraints cc = new CellConstraints();
|
988 |
jpanel1.setLayout(formlayout1); |
989 |
|
990 |
tabLayout.setName("tabLayout");
|
991 |
tabLayout.setTabPlacement(JTabbedPane.LEFT);
|
992 |
tabLayout.addTab("_Basic",null,createPanel18()); |
993 |
tabLayout.addTab("_Values",null,createPanel19()); |
994 |
jpanel1.add(tabLayout,cc.xy(1,1)); |
995 |
|
996 |
addFillComponents(jpanel1,new int[0],new int[0]); |
997 |
return jpanel1;
|
998 |
} |
999 |
|
1000 |
public JPanel createPanel18() |
1001 |
{ |
1002 |
JPanel jpanel1 = new JPanel(); |
1003 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE,FILL:12DLU: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)"); |
1004 |
CellConstraints cc = new CellConstraints();
|
1005 |
jpanel1.setLayout(formlayout1); |
1006 |
|
1007 |
lblGroup.setName("lblGroup");
|
1008 |
lblGroup.setText("_Group");
|
1009 |
jpanel1.add(lblGroup,cc.xy(2,2)); |
1010 |
|
1011 |
lblOrder.setName("lblOrder");
|
1012 |
lblOrder.setText("_Order");
|
1013 |
jpanel1.add(lblOrder,cc.xy(2,4)); |
1014 |
|
1015 |
cboGroup.setEditable(true);
|
1016 |
cboGroup.setName("cboGroup");
|
1017 |
cboGroup.setRequestFocusEnabled(false);
|
1018 |
jpanel1.add(cboGroup,cc.xy(4,2)); |
1019 |
|
1020 |
txtOrder.setName("txtOrder");
|
1021 |
jpanel1.add(txtOrder,cc.xy(4,4)); |
1022 |
|
1023 |
lblHidden.setName("lblHidden");
|
1024 |
lblHidden.setText("_Hidden");
|
1025 |
jpanel1.add(lblHidden,cc.xy(2,6)); |
1026 |
|
1027 |
chkHidden.setName("chkHidden");
|
1028 |
jpanel1.add(chkHidden,cc.xy(4,6)); |
1029 |
|
1030 |
lblLabel.setName("lblLabel");
|
1031 |
lblLabel.setText("_Label");
|
1032 |
jpanel1.add(lblLabel,cc.xy(2,8)); |
1033 |
|
1034 |
txtLabel.setName("txtLabel");
|
1035 |
jpanel1.add(txtLabel,cc.xy(4,8)); |
1036 |
|
1037 |
lblDescription.setName("lblDescription");
|
1038 |
lblDescription.setText("_Description");
|
1039 |
lblDescription.setVerticalAlignment(JLabel.TOP);
|
1040 |
jpanel1.add(lblDescription,new CellConstraints(2,10,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
1041 |
|
1042 |
txtDescription.setName("txtDescription");
|
1043 |
JScrollPane jscrollpane1 = new JScrollPane(); |
1044 |
jscrollpane1.setViewportView(txtDescription); |
1045 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
1046 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
1047 |
jpanel1.add(jscrollpane1,cc.xy(4,10)); |
1048 |
|
1049 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 }); |
1050 |
return jpanel1;
|
1051 |
} |
1052 |
|
1053 |
public JPanel createPanel19() |
1054 |
{ |
1055 |
JPanel jpanel1 = new JPanel(); |
1056 |
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"); |
1057 |
CellConstraints cc = new CellConstraints();
|
1058 |
jpanel1.setLayout(formlayout1); |
1059 |
|
1060 |
lblAvailableValues.setName("lblAvailableValues");
|
1061 |
lblAvailableValues.setText("_List_of_values");
|
1062 |
jpanel1.add(lblAvailableValues,cc.xywh(2,6,5,1)); |
1063 |
|
1064 |
lstAvailableValues.setName("lstAvailableValues");
|
1065 |
JScrollPane jscrollpane1 = new JScrollPane(); |
1066 |
jscrollpane1.setViewportView(lstAvailableValues); |
1067 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
|
1068 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
|
1069 |
jpanel1.add(jscrollpane1,new CellConstraints(2,8,3,1,CellConstraints.DEFAULT,CellConstraints.FILL)); |
1070 |
|
1071 |
lblAvailableValuesLabel.setName("lblAvailableValuesLabel");
|
1072 |
lblAvailableValuesLabel.setText("_Label");
|
1073 |
jpanel1.add(lblAvailableValuesLabel,cc.xy(2,10)); |
1074 |
|
1075 |
txtAvailableValuesLabel.setName("txtAvailableValuesLabel");
|
1076 |
jpanel1.add(txtAvailableValuesLabel,cc.xy(4,10)); |
1077 |
|
1078 |
lblAvailableValuesValue.setName("lblAvailableValuesValue");
|
1079 |
lblAvailableValuesValue.setText("_Value");
|
1080 |
jpanel1.add(lblAvailableValuesValue,cc.xy(2,12)); |
1081 |
|
1082 |
txtAvailableValuesValue.setName("txtAvailableValuesValue");
|
1083 |
jpanel1.add(txtAvailableValuesValue,cc.xy(4,12)); |
1084 |
|
1085 |
lblValuesFilter.setName("lblValuesFilter");
|
1086 |
lblValuesFilter.setText("_Filter_for_values");
|
1087 |
jpanel1.add(lblValuesFilter,cc.xywh(2,2,5,1)); |
1088 |
|
1089 |
jpanel1.add(createPanel20(),new CellConstraints(6,8,1,5,CellConstraints.DEFAULT,CellConstraints.TOP)); |
1090 |
jpanel1.add(createPanel21(),cc.xywh(2,4,5,1)); |
1091 |
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 }); |
1092 |
return jpanel1;
|
1093 |
} |
1094 |
|
1095 |
public JPanel createPanel20() |
1096 |
{ |
1097 |
JPanel jpanel1 = new JPanel(); |
1098 |
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"); |
1099 |
CellConstraints cc = new CellConstraints();
|
1100 |
jpanel1.setLayout(formlayout1); |
1101 |
|
1102 |
btnAvailableValuesAdd.setActionCommand("_Add");
|
1103 |
btnAvailableValuesAdd.setName("btnAvailableValuesAdd");
|
1104 |
btnAvailableValuesAdd.setText("_Add");
|
1105 |
jpanel1.add(btnAvailableValuesAdd,cc.xy(1,1)); |
1106 |
|
1107 |
btnAvailableValuesUpdate.setActionCommand("_Update");
|
1108 |
btnAvailableValuesUpdate.setName("btnAvailableValuesUpdate");
|
1109 |
btnAvailableValuesUpdate.setText("_Update");
|
1110 |
jpanel1.add(btnAvailableValuesUpdate,cc.xy(1,3)); |
1111 |
|
1112 |
btnAvailableValuesRemove.setActionCommand("_Remove");
|
1113 |
btnAvailableValuesRemove.setName("btnAvailableValuesRemove");
|
1114 |
btnAvailableValuesRemove.setText("_Remove");
|
1115 |
jpanel1.add(btnAvailableValuesRemove,cc.xy(1,5)); |
1116 |
|
1117 |
btnAvailableValuesRemoveAll.setActionCommand("_Remove");
|
1118 |
btnAvailableValuesRemoveAll.setName("btnAvailableValuesRemoveAll");
|
1119 |
btnAvailableValuesRemoveAll.setText("_Remove_all");
|
1120 |
jpanel1.add(btnAvailableValuesRemoveAll,cc.xy(1,7)); |
1121 |
|
1122 |
addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6,8 }); |
1123 |
return jpanel1;
|
1124 |
} |
1125 |
|
1126 |
public JPanel createPanel21() |
1127 |
{ |
1128 |
JPanel jpanel1 = new JPanel(); |
1129 |
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"); |
1130 |
CellConstraints cc = new CellConstraints();
|
1131 |
jpanel1.setLayout(formlayout1); |
1132 |
|
1133 |
txtValuesFilter.setName("txtValuesFilter");
|
1134 |
jpanel1.add(txtValuesFilter,cc.xy(1,1)); |
1135 |
|
1136 |
btnValuesFilter.setActionCommand("...");
|
1137 |
btnValuesFilter.setName("btnValuesFilter");
|
1138 |
btnValuesFilter.setText("...");
|
1139 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
1140 |
btnValuesFilter.setBorder(emptyborder1); |
1141 |
jpanel1.add(btnValuesFilter,cc.xy(3,1)); |
1142 |
|
1143 |
btnValuesFilterHistory.setActionCommand("...");
|
1144 |
btnValuesFilterHistory.setName("btnValuesFilterHistory");
|
1145 |
btnValuesFilterHistory.setText("...");
|
1146 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
1147 |
btnValuesFilterHistory.setBorder(emptyborder2); |
1148 |
jpanel1.add(btnValuesFilterHistory,cc.xy(5,1)); |
1149 |
|
1150 |
btnValuesFilterBookmarks.setActionCommand("...");
|
1151 |
btnValuesFilterBookmarks.setName("btnValuesFilterBookmarks");
|
1152 |
btnValuesFilterBookmarks.setText("...");
|
1153 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
1154 |
btnValuesFilterBookmarks.setBorder(emptyborder3); |
1155 |
jpanel1.add(btnValuesFilterBookmarks,cc.xy(7,1)); |
1156 |
|
1157 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
1158 |
return jpanel1;
|
1159 |
} |
1160 |
|
1161 |
public JPanel createPanel22() |
1162 |
{ |
1163 |
JPanel jpanel1 = new JPanel(); |
1164 |
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"); |
1165 |
CellConstraints cc = new CellConstraints();
|
1166 |
jpanel1.setLayout(formlayout1); |
1167 |
|
1168 |
lblIsPrimaryKey.setName("lblIsPrimaryKey");
|
1169 |
lblIsPrimaryKey.setText("_Primary_key");
|
1170 |
jpanel1.add(lblIsPrimaryKey,cc.xy(1,1)); |
1171 |
|
1172 |
chkIsPrimaryKey.setName("chkIsPrimaryKey");
|
1173 |
jpanel1.add(chkIsPrimaryKey,cc.xy(3,1)); |
1174 |
|
1175 |
lblIsAutomatic.setName("lblIsAutomatic");
|
1176 |
lblIsAutomatic.setText("_Value_automatic");
|
1177 |
jpanel1.add(lblIsAutomatic,cc.xy(5,1)); |
1178 |
|
1179 |
chkIsAutomatic.setName("chkIsAutomatic");
|
1180 |
jpanel1.add(chkIsAutomatic,cc.xy(7,1)); |
1181 |
|
1182 |
lblAllowNulls.setName("lblAllowNulls");
|
1183 |
lblAllowNulls.setText("_Allow_nulls");
|
1184 |
jpanel1.add(lblAllowNulls,cc.xy(9,1)); |
1185 |
|
1186 |
chkAllowNulls.setName("chkAllowNulls");
|
1187 |
jpanel1.add(chkAllowNulls,cc.xy(11,1)); |
1188 |
|
1189 |
chkIsReadOnly.setName("chkIsReadOnly");
|
1190 |
jpanel1.add(chkIsReadOnly,cc.xy(3,3)); |
1191 |
|
1192 |
chkIsIndexed.setName("chkIsIndexed");
|
1193 |
jpanel1.add(chkIsIndexed,cc.xy(7,3)); |
1194 |
|
1195 |
lblIsReadOnly.setName("lblIsReadOnly");
|
1196 |
lblIsReadOnly.setText("_Read_only");
|
1197 |
jpanel1.add(lblIsReadOnly,cc.xy(1,3)); |
1198 |
|
1199 |
lblIsIndexed.setName("lblIsIndexed");
|
1200 |
lblIsIndexed.setText("_Indexed");
|
1201 |
jpanel1.add(lblIsIndexed,cc.xy(5,3)); |
1202 |
|
1203 |
addFillComponents(jpanel1,new int[]{ 2,4,6,8,10,12 },new int[]{ 2 }); |
1204 |
return jpanel1;
|
1205 |
} |
1206 |
|
1207 |
public JPanel createPanel23() |
1208 |
{ |
1209 |
JPanel jpanel1 = new JPanel(); |
1210 |
FormLayout formlayout1 = new FormLayout("FILL:12DLU:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
1211 |
CellConstraints cc = new CellConstraints();
|
1212 |
jpanel1.setLayout(formlayout1); |
1213 |
|
1214 |
cboFieldType.setName("cboFieldType");
|
1215 |
jpanel1.add(cboFieldType,cc.xy(1,1)); |
1216 |
|
1217 |
btnFieldType.setIcon(loadImage("src/main/resources/org/gvsig/fmap/dal/swing/impl/featuretype/picker-datatype.png"));
|
1218 |
btnFieldType.setName("btnFieldType");
|
1219 |
btnFieldType.setOpaque(false);
|
1220 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
1221 |
btnFieldType.setBorder(emptyborder1); |
1222 |
jpanel1.add(btnFieldType,cc.xy(3,1)); |
1223 |
|
1224 |
addFillComponents(jpanel1,new int[]{ 2 },new int[0]); |
1225 |
return jpanel1;
|
1226 |
} |
1227 |
|
1228 |
/**
|
1229 |
* Initializer
|
1230 |
*/
|
1231 |
protected void initializePanel() |
1232 |
{ |
1233 |
setLayout(new BorderLayout()); |
1234 |
add(createPanel(), BorderLayout.CENTER);
|
1235 |
} |
1236 |
|
1237 |
|
1238 |
} |