Revision 44262 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretype/FeatureTypeAttributePanelView.java

View differences:

FeatureTypeAttributePanelView.java
86 86
   JComboBox cboTagsName = new JComboBox();
87 87
   JTextField txtTagsValue = new JTextField();
88 88
   JTable tblTags = new JTable();
89
   JLabel lblTagsDescription = new JLabel();
89 90
   JButton btnTagsAdd = new JButton();
90 91
   JButton btnTagsUpdate = new JButton();
91 92
   JButton btnTagsRemove = new JButton();
92
   JLabel lblTagsDescription = new JLabel();
93
   JCheckBox chkIsForeingKey = new JCheckBox();
94
   JLabel lblForeingKeyTableName = new JLabel();
95
   JLabel lblForeingKeyCodeName = new JLabel();
96
   JLabel lblForeingKeyLabelFormula = new JLabel();
97
   JComboBox cboForeingKeyTableName = new JComboBox();
98
   JComboBox cboForeingKeyCodeName = new JComboBox();
99
   JTextField txtForeingKeyFormula = new JTextField();
100
   JButton btnForeingKeyFormula = new JButton();
101
   JLabel lblIsSelectable = new JLabel();
102
   JCheckBox chkIsSelectable = new JCheckBox();
93 103
   JLabel lblIsPrimaryKey = new JLabel();
94 104
   JCheckBox chkIsPrimaryKey = new JCheckBox();
95 105
   JLabel lblIsAutomatic = new JLabel();
......
210 220
      tabAditionalFields.addTab("_Geometry",null,createPanel3());
211 221
      tabAditionalFields.addTab("_Time",null,createPanel5());
212 222
      tabAditionalFields.addTab("_Visualization",null,createPanel7());
223
      tabAditionalFields.addTab("_ForeingKey",null,createPanel15());
213 224
      jpanel1.add(tabAditionalFields,cc.xywh(2,8,3,1));
214 225

  
215
      jpanel1.add(createPanel15(),cc.xy(4,6));
226
      jpanel1.add(createPanel16(),cc.xy(4,6));
216 227
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5 },new int[]{ 1,2,3,4,5,6,7,8,9 });
217 228
      return jpanel1;
218 229
   }
......
419 430
   public JPanel createPanel8()
420 431
   {
421 432
      JPanel jpanel1 = new JPanel();
422
      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)");
433
      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(0.2)");
423 434
      CellConstraints cc = new CellConstraints();
424 435
      jpanel1.setLayout(formlayout1);
425 436

  
......
596 607
      jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
597 608
      jpanel1.add(jscrollpane1,cc.xywh(2,1,3,1));
598 609

  
599
      jpanel1.add(createPanel14(),cc.xywh(6,1,1,5));
600 610
      lblTagsDescription.setName("lblTagsDescription");
601 611
      jpanel1.add(lblTagsDescription,cc.xy(4,6));
602 612

  
613
      jpanel1.add(createPanel14(),cc.xywh(6,1,1,5));
603 614
      addFillComponents(jpanel1,new int[]{ 1,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6 });
604 615
      return jpanel1;
605 616
   }
......
633 644
   public JPanel createPanel15()
634 645
   {
635 646
      JPanel jpanel1 = new JPanel();
647
      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: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");
648
      CellConstraints cc = new CellConstraints();
649
      jpanel1.setLayout(formlayout1);
650

  
651
      chkIsForeingKey.setActionCommand("_is_foreing_key");
652
      chkIsForeingKey.setName("chkIsForeingKey");
653
      chkIsForeingKey.setText("_is_foreing_key");
654
      jpanel1.add(chkIsForeingKey,cc.xywh(2,2,3,1));
655

  
656
      lblForeingKeyTableName.setName("lblForeingKeyTableName");
657
      lblForeingKeyTableName.setText("_Table");
658
      jpanel1.add(lblForeingKeyTableName,cc.xy(2,6));
659

  
660
      lblForeingKeyCodeName.setName("lblForeingKeyCodeName");
661
      lblForeingKeyCodeName.setText("_Code");
662
      jpanel1.add(lblForeingKeyCodeName,cc.xy(2,8));
663

  
664
      lblForeingKeyLabelFormula.setName("lblForeingKeyLabelFormula");
665
      lblForeingKeyLabelFormula.setText("_Label_formula");
666
      jpanel1.add(lblForeingKeyLabelFormula,cc.xy(2,10));
667

  
668
      cboForeingKeyTableName.setEditable(true);
669
      cboForeingKeyTableName.setName("cboForeingKeyTableName");
670
      cboForeingKeyTableName.setRequestFocusEnabled(false);
671
      jpanel1.add(cboForeingKeyTableName,cc.xywh(4,6,3,1));
672

  
673
      cboForeingKeyCodeName.setEditable(true);
674
      cboForeingKeyCodeName.setName("cboForeingKeyCodeName");
675
      cboForeingKeyCodeName.setRequestFocusEnabled(false);
676
      jpanel1.add(cboForeingKeyCodeName,cc.xywh(4,8,3,1));
677

  
678
      txtForeingKeyFormula.setName("txtForeingKeyFormula");
679
      jpanel1.add(txtForeingKeyFormula,cc.xy(4,10));
680

  
681
      btnForeingKeyFormula.setActionCommand("...");
682
      btnForeingKeyFormula.setName("btnForeingKeyFormula");
683
      btnForeingKeyFormula.setText("...");
684
      jpanel1.add(btnForeingKeyFormula,cc.xy(6,10));
685

  
686
      lblIsSelectable.setName("lblIsSelectable");
687
      lblIsSelectable.setText("_is_seletable");
688
      jpanel1.add(lblIsSelectable,cc.xy(2,4));
689

  
690
      chkIsSelectable.setName("chkIsSelectable");
691
      jpanel1.add(chkIsSelectable,cc.xy(4,4));
692

  
693
      addFillComponents(jpanel1,new int[]{ 1,2,3,4,5,6,7 },new int[]{ 1,2,3,4,5,6,7,8,9,10,11 });
694
      return jpanel1;
695
   }
696

  
697
   public JPanel createPanel16()
698
   {
699
      JPanel jpanel1 = new JPanel();
636 700
      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");
637 701
      CellConstraints cc = new CellConstraints();
638 702
      jpanel1.setLayout(formlayout1);

Also available in: Unified diff