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 EjbImplementationAndInterfacesForm extends SectionNodeInnerPanel { 31 32 35 public EjbImplementationAndInterfacesForm(SectionNodeView sectionNodeView) { 36 super(sectionNodeView); 37 initComponents(); 38 } 39 40 46 private void initComponents() { java.awt.GridBagConstraints gridBagConstraints; 48 49 jLabel1 = new javax.swing.JLabel (); 50 jLabel2 = new javax.swing.JLabel (); 51 jLabel3 = new javax.swing.JLabel (); 52 jLabel4 = new javax.swing.JLabel (); 53 jLabel5 = new javax.swing.JLabel (); 54 jLabel6 = new javax.swing.JLabel (); 55 jLabel7 = new javax.swing.JLabel (); 56 beanClassTextField = new javax.swing.JTextField (); 57 localInterfaceCheckBox = new javax.swing.JCheckBox (); 58 localComponentTextField = new javax.swing.JTextField (); 59 localHomeTextField = new javax.swing.JTextField (); 60 remoteInterfaceCheckBox = new javax.swing.JCheckBox (); 61 remoteComponentTextField = new javax.swing.JTextField (); 62 remoteHomeTextField = new javax.swing.JTextField (); 63 moveClassButton = new javax.swing.JButton (); 64 renameClassButton = new javax.swing.JButton (); 65 spacerLabel = new javax.swing.JLabel (); 66 beanClassLinkButton = new javax.swing.JButton (); 67 localComponentLinkButton = new javax.swing.JButton (); 68 localHomeLinkButton = new javax.swing.JButton (); 69 remoteComponentLinkButton = new javax.swing.JButton (); 70 remoteHomeLinkButton = new javax.swing.JButton (); 71 72 setLayout(new java.awt.GridBagLayout ()); 73 74 jLabel1.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_BeanClass")); 75 gridBagConstraints = new java.awt.GridBagConstraints (); 76 gridBagConstraints.gridx = 0; 77 gridBagConstraints.gridy = 0; 78 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 79 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 80 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 81 add(jLabel1, gridBagConstraints); 82 83 jLabel2.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_LocalInterface")); 84 gridBagConstraints = new java.awt.GridBagConstraints (); 85 gridBagConstraints.gridx = 0; 86 gridBagConstraints.gridy = 1; 87 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 88 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 89 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 90 add(jLabel2, gridBagConstraints); 91 92 jLabel3.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Component")); 93 gridBagConstraints = new java.awt.GridBagConstraints (); 94 gridBagConstraints.gridx = 0; 95 gridBagConstraints.gridy = 2; 96 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 97 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 98 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 99 add(jLabel3, gridBagConstraints); 100 101 jLabel4.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Home")); 102 gridBagConstraints = new java.awt.GridBagConstraints (); 103 gridBagConstraints.gridx = 0; 104 gridBagConstraints.gridy = 3; 105 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 106 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 107 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 108 add(jLabel4, gridBagConstraints); 109 110 jLabel5.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_RemoteInterface")); 111 gridBagConstraints = new java.awt.GridBagConstraints (); 112 gridBagConstraints.gridx = 0; 113 gridBagConstraints.gridy = 4; 114 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 115 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 116 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 117 add(jLabel5, gridBagConstraints); 118 119 jLabel6.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Component")); 120 gridBagConstraints = new java.awt.GridBagConstraints (); 121 gridBagConstraints.gridx = 0; 122 gridBagConstraints.gridy = 5; 123 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 124 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 125 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 126 add(jLabel6, gridBagConstraints); 127 128 jLabel7.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Home")); 129 gridBagConstraints = new java.awt.GridBagConstraints (); 130 gridBagConstraints.gridx = 0; 131 gridBagConstraints.gridy = 6; 132 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 133 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 134 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 135 add(jLabel7, gridBagConstraints); 136 137 beanClassTextField.setColumns(35); 138 gridBagConstraints = new java.awt.GridBagConstraints (); 139 gridBagConstraints.gridx = 1; 140 gridBagConstraints.gridy = 0; 141 gridBagConstraints.gridwidth = 2; 142 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 143 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 144 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 145 add(beanClassTextField, gridBagConstraints); 146 147 localInterfaceCheckBox.setOpaque(false); 148 gridBagConstraints = new java.awt.GridBagConstraints (); 149 gridBagConstraints.gridx = 1; 150 gridBagConstraints.gridy = 1; 151 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 152 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 153 add(localInterfaceCheckBox, gridBagConstraints); 154 155 localComponentTextField.setColumns(35); 156 gridBagConstraints = new java.awt.GridBagConstraints (); 157 gridBagConstraints.gridx = 1; 158 gridBagConstraints.gridy = 2; 159 gridBagConstraints.gridwidth = 2; 160 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 161 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 162 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 163 add(localComponentTextField, gridBagConstraints); 164 165 localHomeTextField.setColumns(35); 166 gridBagConstraints = new java.awt.GridBagConstraints (); 167 gridBagConstraints.gridx = 1; 168 gridBagConstraints.gridy = 3; 169 gridBagConstraints.gridwidth = 2; 170 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 171 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 172 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 173 add(localHomeTextField, gridBagConstraints); 174 175 remoteInterfaceCheckBox.setOpaque(false); 176 gridBagConstraints = new java.awt.GridBagConstraints (); 177 gridBagConstraints.gridx = 1; 178 gridBagConstraints.gridy = 4; 179 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 180 gridBagConstraints.insets = new java.awt.Insets (2, 2, 2, 2); 181 add(remoteInterfaceCheckBox, gridBagConstraints); 182 183 remoteComponentTextField.setColumns(35); 184 gridBagConstraints = new java.awt.GridBagConstraints (); 185 gridBagConstraints.gridx = 1; 186 gridBagConstraints.gridy = 5; 187 gridBagConstraints.gridwidth = 2; 188 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 189 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 190 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 191 add(remoteComponentTextField, gridBagConstraints); 192 193 remoteHomeTextField.setColumns(35); 194 gridBagConstraints = new java.awt.GridBagConstraints (); 195 gridBagConstraints.gridx = 1; 196 gridBagConstraints.gridy = 6; 197 gridBagConstraints.gridwidth = 2; 198 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 199 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 200 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 201 add(remoteHomeTextField, gridBagConstraints); 202 203 moveClassButton.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_MoveClass")); 204 moveClassButton.setEnabled(false); 205 gridBagConstraints = new java.awt.GridBagConstraints (); 206 gridBagConstraints.gridx = 1; 207 gridBagConstraints.gridy = 7; 208 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 209 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 210 add(moveClassButton, gridBagConstraints); 211 212 renameClassButton.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_RenameClass")); 213 renameClassButton.setEnabled(false); 214 gridBagConstraints = new java.awt.GridBagConstraints (); 215 gridBagConstraints.gridx = 2; 216 gridBagConstraints.gridy = 7; 217 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 218 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 219 add(renameClassButton, gridBagConstraints); 220 221 spacerLabel.setText(" "); 222 gridBagConstraints = new java.awt.GridBagConstraints (); 223 gridBagConstraints.gridx = 4; 224 gridBagConstraints.gridy = 8; 225 gridBagConstraints.weightx = 1.0; 226 gridBagConstraints.weighty = 1.0; 227 add(spacerLabel, gridBagConstraints); 228 229 org.openide.awt.Mnemonics.setLocalizedText(beanClassLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); 230 beanClassLinkButton.setBorderPainted(false); 231 beanClassLinkButton.setContentAreaFilled(false); 232 beanClassLinkButton.setFocusPainted(false); 233 beanClassLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); 234 gridBagConstraints = new java.awt.GridBagConstraints (); 235 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 236 gridBagConstraints.insets = new java.awt.Insets (5, 0, 0, 0); 237 add(beanClassLinkButton, gridBagConstraints); 238 239 org.openide.awt.Mnemonics.setLocalizedText(localComponentLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); 240 localComponentLinkButton.setBorderPainted(false); 241 localComponentLinkButton.setContentAreaFilled(false); 242 localComponentLinkButton.setFocusPainted(false); 243 localComponentLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); 244 gridBagConstraints = new java.awt.GridBagConstraints (); 245 gridBagConstraints.gridx = 3; 246 gridBagConstraints.gridy = 2; 247 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 248 gridBagConstraints.insets = new java.awt.Insets (5, 0, 0, 0); 249 add(localComponentLinkButton, gridBagConstraints); 250 251 org.openide.awt.Mnemonics.setLocalizedText(localHomeLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); 252 localHomeLinkButton.setBorderPainted(false); 253 localHomeLinkButton.setContentAreaFilled(false); 254 localHomeLinkButton.setFocusPainted(false); 255 localHomeLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); 256 gridBagConstraints = new java.awt.GridBagConstraints (); 257 gridBagConstraints.gridx = 3; 258 gridBagConstraints.gridy = 3; 259 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 260 gridBagConstraints.insets = new java.awt.Insets (5, 0, 0, 0); 261 add(localHomeLinkButton, gridBagConstraints); 262 263 org.openide.awt.Mnemonics.setLocalizedText(remoteComponentLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); 264 remoteComponentLinkButton.setBorderPainted(false); 265 remoteComponentLinkButton.setContentAreaFilled(false); 266 remoteComponentLinkButton.setFocusPainted(false); 267 remoteComponentLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); 268 gridBagConstraints = new java.awt.GridBagConstraints (); 269 gridBagConstraints.gridx = 3; 270 gridBagConstraints.gridy = 5; 271 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 272 gridBagConstraints.insets = new java.awt.Insets (5, 0, 0, 0); 273 add(remoteComponentLinkButton, gridBagConstraints); 274 275 org.openide.awt.Mnemonics.setLocalizedText(remoteHomeLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); 276 remoteHomeLinkButton.setBorderPainted(false); 277 remoteHomeLinkButton.setContentAreaFilled(false); 278 remoteHomeLinkButton.setFocusPainted(false); 279 remoteHomeLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); 280 gridBagConstraints = new java.awt.GridBagConstraints (); 281 gridBagConstraints.gridx = 3; 282 gridBagConstraints.gridy = 6; 283 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 284 gridBagConstraints.insets = new java.awt.Insets (5, 0, 0, 0); 285 add(remoteHomeLinkButton, gridBagConstraints); 286 287 } 289 private javax.swing.JButton beanClassLinkButton; 291 private javax.swing.JTextField beanClassTextField; 292 private javax.swing.JLabel jLabel1; 293 private javax.swing.JLabel jLabel2; 294 private javax.swing.JLabel jLabel3; 295 private javax.swing.JLabel jLabel4; 296 private javax.swing.JLabel jLabel5; 297 private javax.swing.JLabel jLabel6; 298 private javax.swing.JLabel jLabel7; 299 private javax.swing.JButton localComponentLinkButton; 300 private javax.swing.JTextField localComponentTextField; 301 private javax.swing.JButton localHomeLinkButton; 302 private javax.swing.JTextField localHomeTextField; 303 private javax.swing.JCheckBox localInterfaceCheckBox; 304 private javax.swing.JButton moveClassButton; 305 private javax.swing.JButton remoteComponentLinkButton; 306 private javax.swing.JTextField remoteComponentTextField; 307 private javax.swing.JButton remoteHomeLinkButton; 308 private javax.swing.JTextField remoteHomeTextField; 309 private javax.swing.JCheckBox remoteInterfaceCheckBox; 310 private javax.swing.JButton renameClassButton; 311 private javax.swing.JLabel spacerLabel; 312 314 public JTextField getBeanClassTextField() { 315 return beanClassTextField; 316 } 317 318 public JTextField getLocalComponentTextField() { 319 return localComponentTextField; 320 } 321 322 public JTextField getLocalHomeTextField() { 323 return localHomeTextField; 324 } 325 326 public JCheckBox getLocalInterfaceCheckBox() { 327 return localInterfaceCheckBox; 328 } 329 330 public JTextField getRemoteComponentTextField() { 331 return remoteComponentTextField; 332 } 333 334 public JTextField getRemoteHomeTextField() { 335 return remoteHomeTextField; 336 } 337 338 public JCheckBox getRemoteInterfaceCheckBox() { 339 return remoteInterfaceCheckBox; 340 } 341 342 public JComponent getErrorComponent(String errorId) { 343 return null; 344 } 345 346 public void setValue(JComponent source, Object value) { 347 348 } 349 350 public void linkButtonPressed(Object ddBean, String ddProperty) { 351 352 } 353 354 public JButton getMoveClassButton() { 355 return moveClassButton; 356 } 357 358 public JButton getRenameClassButton() { 359 return renameClassButton; 360 } 361 362 public JButton getBeanClassLinkButton() { 363 return beanClassLinkButton; 364 } 365 366 public JButton getLocalComponentLinkButton() { 367 return localComponentLinkButton; 368 } 369 370 public JButton getLocalHomeLinkButton() { 371 return localHomeLinkButton; 372 } 373 374 public JButton getRemoteComponentLinkButton() { 375 return remoteComponentLinkButton; 376 } 377 378 public JButton getRemoteHomeLinkButton() { 379 return remoteHomeLinkButton; 380 } 381 } 382 | Popular Tags |