Revision 45739 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/DefaultFeatureTypePanelView.java
DefaultFeatureTypePanelView.java | ||
---|---|---|
1 | 1 |
package org.gvsig.fmap.dal.swing.impl.featuretype; |
2 | 2 |
|
3 | 3 |
import com.jeta.forms.components.line.HorizontalLineComponent; |
4 |
import com.jeta.forms.components.separator.TitledSeparator; |
|
4 | 5 |
import com.jeta.open.i18n.I18NUtils; |
5 | 6 |
import com.jgoodies.forms.layout.CellConstraints; |
6 | 7 |
import com.jgoodies.forms.layout.FormLayout; |
... | ... | |
11 | 12 |
import javax.swing.Box; |
12 | 13 |
import javax.swing.ImageIcon; |
13 | 14 |
import javax.swing.JButton; |
15 |
import javax.swing.JCheckBox; |
|
14 | 16 |
import javax.swing.JComboBox; |
15 | 17 |
import javax.swing.JFrame; |
16 | 18 |
import javax.swing.JLabel; |
... | ... | |
20 | 22 |
import javax.swing.JTable; |
21 | 23 |
import javax.swing.JTextArea; |
22 | 24 |
import javax.swing.JTextField; |
25 |
import javax.swing.border.EmptyBorder; |
|
23 | 26 |
|
24 | 27 |
|
25 | 28 |
public class DefaultFeatureTypePanelView extends JPanel |
26 | 29 |
{ |
27 | 30 |
JTabbedPane tabFeatureType = new JTabbedPane(); |
31 |
JPanel gridAttributes = new JPanel(); |
|
32 |
HorizontalLineComponent horizontallinecomponent1 = new HorizontalLineComponent(); |
|
33 |
JPanel gridAttributesTable = new JPanel(); |
|
28 | 34 |
JTable tblFields = new JTable(); |
29 |
HorizontalLineComponent horizontallinecomponent1 = new HorizontalLineComponent(); |
|
30 |
JPanel pnlField = new JPanel(); |
|
31 | 35 |
JButton btnNew = new JButton(); |
32 | 36 |
JButton btnDelete = new JButton(); |
37 |
JPanel gridAttributesDetail = new JPanel(); |
|
38 |
JPanel pnlField = new JPanel(); |
|
33 | 39 |
JButton btnFormFieldAccept = new JButton(); |
34 | 40 |
JButton btnFormFieldDiscard = new JButton(); |
35 | 41 |
JButton btnFormFieldModify = new JButton(); |
... | ... | |
47 | 53 |
JButton btnTagsAdd = new JButton(); |
48 | 54 |
JButton btnTagsUpdate = new JButton(); |
49 | 55 |
JButton btnTagsRemove = new JButton(); |
56 |
JCheckBox chkRulesValidateFeatureBeforeInsert = new JCheckBox(); |
|
57 |
JCheckBox chkRulesValidateFeaturesAtFinishEditing = new JCheckBox(); |
|
58 |
TitledSeparator lblRulesDefaultRules = new TitledSeparator(); |
|
59 |
TitledSeparator lblRulesCustomRules = new TitledSeparator(); |
|
60 |
JPanel gridRules = new JPanel(); |
|
61 |
JPanel gridRulesTable = new JPanel(); |
|
62 |
JTable tblRules = new JTable(); |
|
63 |
JButton btnRulesNew = new JButton(); |
|
64 |
JButton btnRulesDelete = new JButton(); |
|
65 |
JPanel gridRulesDetail = new JPanel(); |
|
66 |
JLabel lblRuleName = new JLabel(); |
|
67 |
JLabel lblRuleDescription = new JLabel(); |
|
68 |
JLabel lblRuleCheckAtFinishEditing = new JLabel(); |
|
69 |
JLabel lblRuleCheckAtUpdate = new JLabel(); |
|
70 |
JLabel lblRuleValidation = new JLabel(); |
|
71 |
JTextField txtRuleName = new JTextField(); |
|
72 |
JCheckBox chkRuleCheckAtFinishEditing = new JCheckBox(); |
|
73 |
JCheckBox chkRuleCheckAtUpdate = new JCheckBox(); |
|
74 |
JTextField txtRuleDescription = new JTextField(); |
|
75 |
JTextField txtRuleValidation = new JTextField(); |
|
76 |
JButton btnRuleValidation = new JButton(); |
|
77 |
JButton btnRuleValidationHistory = new JButton(); |
|
78 |
JButton btnRuleValidationBookmarks = new JButton(); |
|
79 |
JButton btnRuleFormFieldAccept = new JButton(); |
|
80 |
JButton btnRuleFormFieldDiscard = new JButton(); |
|
81 |
JButton btnRuleFormFieldModify = new JButton(); |
|
50 | 82 |
JPanel pnlCfgActions = new JPanel(); |
51 | 83 |
|
52 | 84 |
/** |
... | ... | |
146 | 178 |
tabFeatureType.setName("tabFeatureType"); |
147 | 179 |
tabFeatureType.addTab("_Main",null,createPanel1()); |
148 | 180 |
tabFeatureType.addTab("_Visualization",null,createPanel4()); |
181 |
tabFeatureType.addTab("_Rules",null,createPanel7()); |
|
149 | 182 |
jpanel1.add(tabFeatureType,cc.xy(2,3)); |
150 | 183 |
|
151 |
jpanel1.add(createPanel7(),cc.xy(2,2));
|
|
184 |
jpanel1.add(createPanel12(),cc.xy(2,2));
|
|
152 | 185 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3,4 }); |
153 | 186 |
return jpanel1; |
154 | 187 |
} |
... | ... | |
156 | 189 |
public JPanel createPanel1() |
157 | 190 |
{ |
158 | 191 |
JPanel jpanel1 = new JPanel(); |
159 |
FormLayout formlayout1 = new FormLayout("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,FILL:DEFAULT:GROW(0.2),CENTER:2DLU:NONE");
|
|
192 |
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");
|
|
160 | 193 |
CellConstraints cc = new CellConstraints(); |
161 | 194 |
jpanel1.setLayout(formlayout1); |
162 | 195 |
|
196 |
jpanel1.add(creategridAttributes(),cc.xy(2,2)); |
|
197 |
addFillComponents(jpanel1,new int[]{ 1,2,3 },new int[]{ 1,2,3 }); |
|
198 |
return jpanel1; |
|
199 |
} |
|
200 |
|
|
201 |
public JPanel creategridAttributes() |
|
202 |
{ |
|
203 |
gridAttributes.setName("gridAttributes"); |
|
204 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0),CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE"); |
|
205 |
CellConstraints cc = new CellConstraints(); |
|
206 |
gridAttributes.setLayout(formlayout1); |
|
207 |
|
|
208 |
gridAttributes.add(horizontallinecomponent1,cc.xy(1,2)); |
|
209 |
|
|
210 |
gridAttributes.add(creategridAttributesTable(),cc.xy(1,1)); |
|
211 |
gridAttributes.add(creategridAttributesDetail(),cc.xy(1,3)); |
|
212 |
addFillComponents(gridAttributes,new int[]{ 1 },new int[]{ 1,3 }); |
|
213 |
return gridAttributes; |
|
214 |
} |
|
215 |
|
|
216 |
public JPanel creategridAttributesTable() |
|
217 |
{ |
|
218 |
gridAttributesTable.setName("gridAttributesTable"); |
|
219 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:GROW(1.0)"); |
|
220 |
CellConstraints cc = new CellConstraints(); |
|
221 |
gridAttributesTable.setLayout(formlayout1); |
|
222 |
|
|
163 | 223 |
tblFields.setName("tblFields"); |
164 | 224 |
JScrollPane jscrollpane1 = new JScrollPane(); |
165 | 225 |
jscrollpane1.setViewportView(tblFields); |
166 | 226 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
167 | 227 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
168 |
jpanel1.add(jscrollpane1,cc.xy(2,2));
|
|
228 |
gridAttributesTable.add(jscrollpane1,cc.xy(1,1));
|
|
169 | 229 |
|
170 |
jpanel1.add(horizontallinecomponent1,cc.xywh(2,4,3,1)); |
|
171 |
|
|
172 |
pnlField.setName("pnlField"); |
|
173 |
jpanel1.add(pnlField,cc.xy(2,6)); |
|
174 |
|
|
175 |
jpanel1.add(createPanel2(),cc.xy(4,2)); |
|
176 |
jpanel1.add(createPanel3(),cc.xy(4,6)); |
|
177 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7 }); |
|
178 |
return jpanel1; |
|
230 |
gridAttributesTable.add(createPanel2(),new CellConstraints(3,1,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
|
231 |
addFillComponents(gridAttributesTable,new int[]{ 2,3 },new int[0]); |
|
232 |
return gridAttributesTable; |
|
179 | 233 |
} |
180 | 234 |
|
181 | 235 |
public JPanel createPanel2() |
... | ... | |
199 | 253 |
return jpanel1; |
200 | 254 |
} |
201 | 255 |
|
256 |
public JPanel creategridAttributesDetail() |
|
257 |
{ |
|
258 |
gridAttributesDetail.setName("gridAttributesDetail"); |
|
259 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:GROW(1.0)"); |
|
260 |
CellConstraints cc = new CellConstraints(); |
|
261 |
gridAttributesDetail.setLayout(formlayout1); |
|
262 |
|
|
263 |
pnlField.setName("pnlField"); |
|
264 |
gridAttributesDetail.add(pnlField,cc.xy(1,1)); |
|
265 |
|
|
266 |
gridAttributesDetail.add(createPanel3(),new CellConstraints(3,1,1,1,CellConstraints.DEFAULT,CellConstraints.TOP)); |
|
267 |
addFillComponents(gridAttributesDetail,new int[]{ 2,3 },new int[0]); |
|
268 |
return gridAttributesDetail; |
|
269 |
} |
|
270 |
|
|
202 | 271 |
public JPanel createPanel3() |
203 | 272 |
{ |
204 | 273 |
JPanel jpanel1 = new JPanel(); |
205 |
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,FILL:2DLU:GROW(1.0)");
|
|
274 |
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"); |
|
206 | 275 |
CellConstraints cc = new CellConstraints(); |
207 | 276 |
jpanel1.setLayout(formlayout1); |
208 | 277 |
|
... | ... | |
221 | 290 |
btnFormFieldModify.setText("_Modify"); |
222 | 291 |
jpanel1.add(btnFormFieldModify,cc.xy(2,1)); |
223 | 292 |
|
224 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5,6 });
|
|
293 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5 }); |
|
225 | 294 |
return jpanel1; |
226 | 295 |
} |
227 | 296 |
|
... | ... | |
278 | 347 |
|
279 | 348 |
cboTagsName.setEditable(true); |
280 | 349 |
cboTagsName.setName("cboTagsName"); |
281 |
cboTagsName.setRequestFocusEnabled(false); |
|
282 | 350 |
jpanel1.add(cboTagsName,cc.xy(3,3)); |
283 | 351 |
|
284 | 352 |
tblTags.setName("tblTags"); |
... | ... | |
293 | 361 |
|
294 | 362 |
cboTagsValue.setEditable(true); |
295 | 363 |
cboTagsValue.setName("cboTagsValue"); |
296 |
cboTagsValue.setRequestFocusEnabled(false); |
|
297 | 364 |
jpanel1.add(cboTagsValue,cc.xy(3,5)); |
298 | 365 |
|
299 | 366 |
jpanel1.add(createPanel6(),cc.xywh(5,1,1,5)); |
... | ... | |
330 | 397 |
public JPanel createPanel7() |
331 | 398 |
{ |
332 | 399 |
JPanel jpanel1 = new JPanel(); |
400 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE,FILL:4DLU:NONE","CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:2DLU:NONE"); |
|
401 |
CellConstraints cc = new CellConstraints(); |
|
402 |
jpanel1.setLayout(formlayout1); |
|
403 |
|
|
404 |
chkRulesValidateFeatureBeforeInsert.setActionCommand("_Validate_features_before_insert"); |
|
405 |
chkRulesValidateFeatureBeforeInsert.setName("chkRulesValidateFeatureBeforeInsert"); |
|
406 |
chkRulesValidateFeatureBeforeInsert.setText("_Validate_features_before_insert"); |
|
407 |
jpanel1.add(chkRulesValidateFeatureBeforeInsert,cc.xy(2,4)); |
|
408 |
|
|
409 |
chkRulesValidateFeaturesAtFinishEditing.setActionCommand("_Validate_features_at_finish_editing"); |
|
410 |
chkRulesValidateFeaturesAtFinishEditing.setName("chkRulesValidateFeaturesAtFinishEditing"); |
|
411 |
chkRulesValidateFeaturesAtFinishEditing.setText("_Validate_features_at_finish_editing"); |
|
412 |
jpanel1.add(chkRulesValidateFeaturesAtFinishEditing,cc.xy(2,6)); |
|
413 |
|
|
414 |
lblRulesDefaultRules.setName("lblRulesDefaultRules"); |
|
415 |
lblRulesDefaultRules.setText("_Default_rules"); |
|
416 |
jpanel1.add(lblRulesDefaultRules,cc.xywh(2,2,3,1)); |
|
417 |
|
|
418 |
lblRulesCustomRules.setName("lblRulesCustomRules"); |
|
419 |
lblRulesCustomRules.setText("_Custom_rules"); |
|
420 |
jpanel1.add(lblRulesCustomRules,cc.xywh(2,7,3,1)); |
|
421 |
|
|
422 |
jpanel1.add(creategridRules(),cc.xywh(2,9,3,1)); |
|
423 |
addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9,10 }); |
|
424 |
return jpanel1; |
|
425 |
} |
|
426 |
|
|
427 |
public JPanel creategridRules() |
|
428 |
{ |
|
429 |
gridRules.setName("gridRules"); |
|
430 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0)","FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:GROW(1.0)"); |
|
431 |
CellConstraints cc = new CellConstraints(); |
|
432 |
gridRules.setLayout(formlayout1); |
|
433 |
|
|
434 |
gridRules.add(creategridRulesTable(),cc.xy(1,1)); |
|
435 |
gridRules.add(creategridRulesDetail(),cc.xy(1,2)); |
|
436 |
addFillComponents(gridRules,new int[]{ 1 },new int[]{ 1,2 }); |
|
437 |
return gridRules; |
|
438 |
} |
|
439 |
|
|
440 |
public JPanel creategridRulesTable() |
|
441 |
{ |
|
442 |
gridRulesTable.setName("gridRulesTable"); |
|
443 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:GROW(1.0)"); |
|
444 |
CellConstraints cc = new CellConstraints(); |
|
445 |
gridRulesTable.setLayout(formlayout1); |
|
446 |
|
|
447 |
tblRules.setEnabled(false); |
|
448 |
tblRules.setName("tblRules"); |
|
449 |
JScrollPane jscrollpane1 = new JScrollPane(); |
|
450 |
jscrollpane1.setViewportView(tblRules); |
|
451 |
jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED); |
|
452 |
jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
453 |
gridRulesTable.add(jscrollpane1,cc.xy(1,1)); |
|
454 |
|
|
455 |
gridRulesTable.add(createPanel8(),cc.xy(3,1)); |
|
456 |
addFillComponents(gridRulesTable,new int[]{ 2,3 },new int[0]); |
|
457 |
return gridRulesTable; |
|
458 |
} |
|
459 |
|
|
460 |
public JPanel createPanel8() |
|
461 |
{ |
|
462 |
JPanel jpanel1 = new JPanel(); |
|
463 |
FormLayout formlayout1 = new FormLayout("FILL:4DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:4DLU:NONE","CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,FILL:DEFAULT:GROW(1.0)"); |
|
464 |
CellConstraints cc = new CellConstraints(); |
|
465 |
jpanel1.setLayout(formlayout1); |
|
466 |
|
|
467 |
btnRulesNew.setActionCommand("_New"); |
|
468 |
btnRulesNew.setName("btnRulesNew"); |
|
469 |
btnRulesNew.setText("_New"); |
|
470 |
jpanel1.add(btnRulesNew,cc.xy(2,1)); |
|
471 |
|
|
472 |
btnRulesDelete.setActionCommand("_Delete"); |
|
473 |
btnRulesDelete.setName("btnRulesDelete"); |
|
474 |
btnRulesDelete.setText("_Delete"); |
|
475 |
jpanel1.add(btnRulesDelete,cc.xy(2,3)); |
|
476 |
|
|
477 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5 }); |
|
478 |
return jpanel1; |
|
479 |
} |
|
480 |
|
|
481 |
public JPanel creategridRulesDetail() |
|
482 |
{ |
|
483 |
gridRulesDetail.setName("gridRulesDetail"); |
|
484 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE,FILL:DEFAULT:NONE","FILL:DEFAULT:GROW(1.0)"); |
|
485 |
CellConstraints cc = new CellConstraints(); |
|
486 |
gridRulesDetail.setLayout(formlayout1); |
|
487 |
|
|
488 |
gridRulesDetail.add(createPanel9(),cc.xy(1,1)); |
|
489 |
gridRulesDetail.add(createPanel11(),cc.xy(3,1)); |
|
490 |
addFillComponents(gridRulesDetail,new int[]{ 1,2,3 },new int[]{ 1 }); |
|
491 |
return gridRulesDetail; |
|
492 |
} |
|
493 |
|
|
494 |
public JPanel createPanel9() |
|
495 |
{ |
|
496 |
JPanel jpanel1 = new JPanel(); |
|
497 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:NONE,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,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE,CENTER:2DLU:NONE,CENTER:DEFAULT:NONE"); |
|
498 |
CellConstraints cc = new CellConstraints(); |
|
499 |
jpanel1.setLayout(formlayout1); |
|
500 |
|
|
501 |
lblRuleName.setName("lblRuleName"); |
|
502 |
lblRuleName.setText("_Name"); |
|
503 |
jpanel1.add(lblRuleName,cc.xy(1,1)); |
|
504 |
|
|
505 |
lblRuleDescription.setName("lblRuleDescription"); |
|
506 |
lblRuleDescription.setText("_Description"); |
|
507 |
jpanel1.add(lblRuleDescription,cc.xy(1,3)); |
|
508 |
|
|
509 |
lblRuleCheckAtFinishEditing.setName("lblRuleCheckAtFinishEditing"); |
|
510 |
lblRuleCheckAtFinishEditing.setText("_Check_at_finish_editing"); |
|
511 |
jpanel1.add(lblRuleCheckAtFinishEditing,cc.xy(1,5)); |
|
512 |
|
|
513 |
lblRuleCheckAtUpdate.setName("lblRuleCheckAtUpdate"); |
|
514 |
lblRuleCheckAtUpdate.setText("_Check_at_insert"); |
|
515 |
jpanel1.add(lblRuleCheckAtUpdate,cc.xy(1,7)); |
|
516 |
|
|
517 |
lblRuleValidation.setName("lblRuleValidation"); |
|
518 |
lblRuleValidation.setText("_Validation"); |
|
519 |
jpanel1.add(lblRuleValidation,cc.xy(1,9)); |
|
520 |
|
|
521 |
txtRuleName.setName("txtRuleName"); |
|
522 |
jpanel1.add(txtRuleName,cc.xy(3,1)); |
|
523 |
|
|
524 |
chkRuleCheckAtFinishEditing.setName("chkRuleCheckAtFinishEditing"); |
|
525 |
jpanel1.add(chkRuleCheckAtFinishEditing,cc.xy(3,5)); |
|
526 |
|
|
527 |
chkRuleCheckAtUpdate.setName("chkRuleCheckAtUpdate"); |
|
528 |
jpanel1.add(chkRuleCheckAtUpdate,cc.xy(3,7)); |
|
529 |
|
|
530 |
txtRuleDescription.setName("txtRuleDescription"); |
|
531 |
jpanel1.add(txtRuleDescription,cc.xy(3,3)); |
|
532 |
|
|
533 |
jpanel1.add(createPanel10(),cc.xy(3,9)); |
|
534 |
addFillComponents(jpanel1,new int[]{ 2,4 },new int[]{ 2,4,6,8 }); |
|
535 |
return jpanel1; |
|
536 |
} |
|
537 |
|
|
538 |
public JPanel createPanel10() |
|
539 |
{ |
|
540 |
JPanel jpanel1 = new JPanel(); |
|
541 |
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"); |
|
542 |
CellConstraints cc = new CellConstraints(); |
|
543 |
jpanel1.setLayout(formlayout1); |
|
544 |
|
|
545 |
txtRuleValidation.setName("txtRuleValidation"); |
|
546 |
jpanel1.add(txtRuleValidation,cc.xy(1,1)); |
|
547 |
|
|
548 |
btnRuleValidation.setActionCommand("..."); |
|
549 |
btnRuleValidation.setName("btnRuleValidation"); |
|
550 |
btnRuleValidation.setText("..."); |
|
551 |
EmptyBorder emptyborder1 = new EmptyBorder(2,2,2,2); |
|
552 |
btnRuleValidation.setBorder(emptyborder1); |
|
553 |
jpanel1.add(btnRuleValidation,cc.xy(3,1)); |
|
554 |
|
|
555 |
btnRuleValidationHistory.setActionCommand("..."); |
|
556 |
btnRuleValidationHistory.setName("btnRuleValidationHistory"); |
|
557 |
btnRuleValidationHistory.setText("..."); |
|
558 |
EmptyBorder emptyborder2 = new EmptyBorder(2,2,2,2); |
|
559 |
btnRuleValidationHistory.setBorder(emptyborder2); |
|
560 |
jpanel1.add(btnRuleValidationHistory,cc.xy(5,1)); |
|
561 |
|
|
562 |
btnRuleValidationBookmarks.setActionCommand("..."); |
|
563 |
btnRuleValidationBookmarks.setName("btnRuleValidationBookmarks"); |
|
564 |
btnRuleValidationBookmarks.setText("..."); |
|
565 |
EmptyBorder emptyborder3 = new EmptyBorder(2,2,2,2); |
|
566 |
btnRuleValidationBookmarks.setBorder(emptyborder3); |
|
567 |
jpanel1.add(btnRuleValidationBookmarks,cc.xy(7,1)); |
|
568 |
|
|
569 |
addFillComponents(jpanel1,new int[]{ 2,4,6 },new int[0]); |
|
570 |
return jpanel1; |
|
571 |
} |
|
572 |
|
|
573 |
public JPanel createPanel11() |
|
574 |
{ |
|
575 |
JPanel jpanel1 = new JPanel(); |
|
576 |
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,FILL:2DLU:GROW(1.0)"); |
|
577 |
CellConstraints cc = new CellConstraints(); |
|
578 |
jpanel1.setLayout(formlayout1); |
|
579 |
|
|
580 |
btnRuleFormFieldAccept.setActionCommand("JButton"); |
|
581 |
btnRuleFormFieldAccept.setName("btnRuleFormFieldAccept"); |
|
582 |
btnRuleFormFieldAccept.setText("Accept"); |
|
583 |
jpanel1.add(btnRuleFormFieldAccept,cc.xy(2,3)); |
|
584 |
|
|
585 |
btnRuleFormFieldDiscard.setActionCommand("JButton"); |
|
586 |
btnRuleFormFieldDiscard.setName("btnRuleFormFieldDiscard"); |
|
587 |
btnRuleFormFieldDiscard.setText("_Discard"); |
|
588 |
jpanel1.add(btnRuleFormFieldDiscard,cc.xy(2,5)); |
|
589 |
|
|
590 |
btnRuleFormFieldModify.setActionCommand("JButton"); |
|
591 |
btnRuleFormFieldModify.setName("btnRuleFormFieldModify"); |
|
592 |
btnRuleFormFieldModify.setText("_Modify"); |
|
593 |
jpanel1.add(btnRuleFormFieldModify,cc.xy(2,1)); |
|
594 |
|
|
595 |
addFillComponents(jpanel1,new int[]{ 1,3 },new int[]{ 1,2,3,4,5,6 }); |
|
596 |
return jpanel1; |
|
597 |
} |
|
598 |
|
|
599 |
public JPanel createPanel12() |
|
600 |
{ |
|
601 |
JPanel jpanel1 = new JPanel(); |
|
333 | 602 |
FormLayout formlayout1 = new FormLayout("FILL:DEFAULT:GROW(1.0),FILL:DEFAULT:NONE","CENTER:DEFAULT:NONE"); |
334 | 603 |
CellConstraints cc = new CellConstraints(); |
335 | 604 |
jpanel1.setLayout(formlayout1); |
Also available in: Unified diff