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