1 19 20 package org.netbeans.modules.j2ee.ddloaders.multiview.ui; 21 22 import org.netbeans.modules.xml.multiview.ui.SectionNodeInnerPanel; 23 import org.netbeans.modules.xml.multiview.ui.SectionNodeView; 24 25 import javax.swing.*; 26 27 30 public class EntityOverviewForm extends SectionNodeInnerPanel { 31 32 35 public EntityOverviewForm(SectionNodeView sectionNodeView) { 36 super(sectionNodeView); 37 initComponents(); 38 } 39 40 46 private void initComponents() { 48 java.awt.GridBagConstraints gridBagConstraints; 49 50 jLabel1 = new javax.swing.JLabel (); 51 jLabel2 = new javax.swing.JLabel (); 52 jLabel3 = new javax.swing.JLabel (); 53 primaryKeyFieldLabel = new javax.swing.JLabel (); 54 jLabel5 = new javax.swing.JLabel (); 55 jLabel6 = new javax.swing.JLabel (); 56 ejbNameTextField = new javax.swing.JTextField (); 57 persistenceTypeTextField = new javax.swing.JTextField (); 58 abstractSchemaNameTextField = new javax.swing.JTextField (); 59 primaryKeyFieldComboBox = new javax.swing.JComboBox (); 60 primaryKeyClassComboBox = new javax.swing.JComboBox (); 61 primaryKeyClassTextField = new javax.swing.JTextField (); 62 reentrantCheckBox = new javax.swing.JCheckBox (); 63 spacerLabel = new javax.swing.JLabel (); 64 65 setLayout(new java.awt.GridBagLayout ()); 66 67 jLabel1.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_EjbName")); 68 gridBagConstraints = new java.awt.GridBagConstraints (); 69 gridBagConstraints.gridx = 0; 70 gridBagConstraints.gridy = 0; 71 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 72 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 6); 73 add(jLabel1, gridBagConstraints); 74 75 jLabel2.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_PersistenceType")); 76 gridBagConstraints = new java.awt.GridBagConstraints (); 77 gridBagConstraints.gridx = 0; 78 gridBagConstraints.gridy = 1; 79 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 80 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 6); 81 add(jLabel2, gridBagConstraints); 82 83 jLabel3.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_AbstractSchemaName")); 84 gridBagConstraints = new java.awt.GridBagConstraints (); 85 gridBagConstraints.gridx = 0; 86 gridBagConstraints.gridy = 2; 87 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 88 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 6); 89 add(jLabel3, gridBagConstraints); 90 91 primaryKeyFieldLabel.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_PrimaryKeyField")); 92 gridBagConstraints = new java.awt.GridBagConstraints (); 93 gridBagConstraints.gridx = 0; 94 gridBagConstraints.gridy = 3; 95 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 96 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 6); 97 add(primaryKeyFieldLabel, gridBagConstraints); 98 99 jLabel5.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_PrimaryKeyClass")); 100 gridBagConstraints = new java.awt.GridBagConstraints (); 101 gridBagConstraints.gridx = 0; 102 gridBagConstraints.gridy = 4; 103 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 104 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 6); 105 add(jLabel5, gridBagConstraints); 106 107 jLabel6.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_Reentrant")); 108 gridBagConstraints = new java.awt.GridBagConstraints (); 109 gridBagConstraints.gridx = 0; 110 gridBagConstraints.gridy = 5; 111 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 112 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 6); 113 add(jLabel6, gridBagConstraints); 114 115 ejbNameTextField.setColumns(25); 116 gridBagConstraints = new java.awt.GridBagConstraints (); 117 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 118 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 119 add(ejbNameTextField, gridBagConstraints); 120 121 persistenceTypeTextField.setColumns(25); 122 gridBagConstraints = new java.awt.GridBagConstraints (); 123 gridBagConstraints.gridx = 1; 124 gridBagConstraints.gridy = 1; 125 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 126 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 127 add(persistenceTypeTextField, gridBagConstraints); 128 129 abstractSchemaNameTextField.setColumns(25); 130 gridBagConstraints = new java.awt.GridBagConstraints (); 131 gridBagConstraints.gridx = 1; 132 gridBagConstraints.gridy = 2; 133 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 134 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 135 add(abstractSchemaNameTextField, gridBagConstraints); 136 137 gridBagConstraints = new java.awt.GridBagConstraints (); 138 gridBagConstraints.gridx = 1; 139 gridBagConstraints.gridy = 3; 140 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 141 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 142 add(primaryKeyFieldComboBox, gridBagConstraints); 143 144 primaryKeyClassComboBox.setEditable(true); 145 gridBagConstraints = new java.awt.GridBagConstraints (); 146 gridBagConstraints.gridx = 1; 147 gridBagConstraints.gridy = 4; 148 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 149 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 150 add(primaryKeyClassComboBox, gridBagConstraints); 151 152 primaryKeyClassTextField.setColumns(25); 153 gridBagConstraints = new java.awt.GridBagConstraints (); 154 gridBagConstraints.gridx = 1; 155 gridBagConstraints.gridy = 4; 156 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 157 add(primaryKeyClassTextField, gridBagConstraints); 158 159 gridBagConstraints = new java.awt.GridBagConstraints (); 160 gridBagConstraints.gridx = 1; 161 gridBagConstraints.gridy = 5; 162 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 163 gridBagConstraints.insets = new java.awt.Insets (2, 0, 2, 0); 164 add(reentrantCheckBox, gridBagConstraints); 165 166 spacerLabel.setText(" "); 167 gridBagConstraints = new java.awt.GridBagConstraints (); 168 gridBagConstraints.gridx = 2; 169 gridBagConstraints.gridy = 6; 170 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 171 gridBagConstraints.weightx = 1.0; 172 gridBagConstraints.weighty = 1.0; 173 add(spacerLabel, gridBagConstraints); 174 175 } 176 178 private javax.swing.JTextField abstractSchemaNameTextField; 180 private javax.swing.JTextField ejbNameTextField; 181 private javax.swing.JLabel jLabel1; 182 private javax.swing.JLabel jLabel2; 183 private javax.swing.JLabel jLabel3; 184 private javax.swing.JLabel jLabel5; 185 private javax.swing.JLabel jLabel6; 186 private javax.swing.JTextField persistenceTypeTextField; 187 private javax.swing.JComboBox primaryKeyClassComboBox; 188 private javax.swing.JTextField primaryKeyClassTextField; 189 private javax.swing.JComboBox primaryKeyFieldComboBox; 190 private javax.swing.JLabel primaryKeyFieldLabel; 191 private javax.swing.JCheckBox reentrantCheckBox; 192 private javax.swing.JLabel spacerLabel; 193 195 public JTextField getAbstractSchemaNameTextField() { 196 return abstractSchemaNameTextField; 197 } 198 199 public JTextField getEjbNameTextField() { 200 return ejbNameTextField; 201 } 202 203 public JTextField getPersistenceTypeTextField() { 204 return persistenceTypeTextField; 205 } 206 207 public JComboBox getPrimaryKeyClassComboBox() { 208 return primaryKeyClassComboBox; 209 } 210 211 public JLabel getPrimaryKeyFieldLabel() { 212 return primaryKeyFieldLabel; 213 } 214 215 public JComboBox getPrimaryKeyFieldComboBox() { 216 return primaryKeyFieldComboBox; 217 } 218 219 public JCheckBox getReentrantCheckBox() { 220 return reentrantCheckBox; 221 } 222 223 public JLabel getSpacerLabel() { 224 return spacerLabel; 225 } 226 227 public JComponent getErrorComponent(String errorId) { 228 return null; 229 } 230 231 public void setValue(JComponent source, Object value) { 232 } 233 234 public void linkButtonPressed(Object ddBean, String ddProperty) { 235 } 236 237 public JTextField getPrimaryKeyClassTextField() { 238 return primaryKeyClassTextField; 239 } 240 } 241 | Popular Tags |