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 MdbImplementationForm extends SectionNodeInnerPanel { 31 32 37 public MdbImplementationForm(SectionNodeView sectionNodeView) { 38 super(sectionNodeView); 39 initComponents(); 40 } 41 42 48 private void initComponents() { 50 java.awt.GridBagConstraints gridBagConstraints; 51 52 jLabel1 = new javax.swing.JLabel (); 53 beanClassTextField = new javax.swing.JTextField (); 54 moveClassButton = new javax.swing.JButton (); 55 renameClassButton = new javax.swing.JButton (); 56 spacerLabel = new javax.swing.JLabel (); 57 beanClassLinkButton = new javax.swing.JButton (); 58 59 setLayout(new java.awt.GridBagLayout ()); 60 61 jLabel1.setText(org.openide.util.NbBundle.getMessage(MdbImplementationForm.class, "LBL_BeanClass")); 62 gridBagConstraints = new java.awt.GridBagConstraints (); 63 gridBagConstraints.gridx = 0; 64 gridBagConstraints.gridy = 0; 65 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 66 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 67 gridBagConstraints.insets = new java.awt.Insets (5, 12, 0, 12); 68 add(jLabel1, gridBagConstraints); 69 70 beanClassTextField.setColumns(35); 71 gridBagConstraints = new java.awt.GridBagConstraints (); 72 gridBagConstraints.gridx = 1; 73 gridBagConstraints.gridy = 0; 74 gridBagConstraints.gridwidth = 2; 75 gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL; 76 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 77 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 78 add(beanClassTextField, gridBagConstraints); 79 80 moveClassButton.setText(org.openide.util.NbBundle.getMessage(MdbImplementationForm.class, "LBL_MoveClass")); 81 gridBagConstraints = new java.awt.GridBagConstraints (); 82 gridBagConstraints.gridx = 1; 83 gridBagConstraints.gridy = 1; 84 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 85 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 86 add(moveClassButton, gridBagConstraints); 87 88 renameClassButton.setText(org.openide.util.NbBundle.getMessage(MdbImplementationForm.class, "LBL_RenameClass")); 89 gridBagConstraints = new java.awt.GridBagConstraints (); 90 gridBagConstraints.gridx = 2; 91 gridBagConstraints.gridy = 1; 92 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 93 gridBagConstraints.insets = new java.awt.Insets (5, 5, 0, 12); 94 add(renameClassButton, gridBagConstraints); 95 96 spacerLabel.setText(" "); 97 gridBagConstraints = new java.awt.GridBagConstraints (); 98 gridBagConstraints.gridx = 4; 99 gridBagConstraints.gridy = 2; 100 gridBagConstraints.weightx = 1.0; 101 gridBagConstraints.weighty = 1.0; 102 add(spacerLabel, gridBagConstraints); 103 104 org.openide.awt.Mnemonics.setLocalizedText(beanClassLinkButton, org.openide.util.NbBundle.getMessage(MdbImplementationForm.class, "LBL_GoToSource")); 105 beanClassLinkButton.setBorderPainted(false); 106 beanClassLinkButton.setContentAreaFilled(false); 107 beanClassLinkButton.setFocusPainted(false); 108 beanClassLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); 109 gridBagConstraints = new java.awt.GridBagConstraints (); 110 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 111 gridBagConstraints.insets = new java.awt.Insets (5, 0, 0, 0); 112 add(beanClassLinkButton, gridBagConstraints); 113 114 } 115 117 private javax.swing.JButton beanClassLinkButton; 119 private javax.swing.JTextField beanClassTextField; 120 private javax.swing.JLabel jLabel1; 121 private javax.swing.JButton moveClassButton; 122 private javax.swing.JButton renameClassButton; 123 private javax.swing.JLabel spacerLabel; 124 126 public void setValue(JComponent source, Object value) { 127 } 128 129 public void linkButtonPressed(Object ddBean, String ddProperty) { 130 } 131 132 public JComponent getErrorComponent(String errorId) { 133 return null; 134 } 135 136 public JTextField getBeanClassTextField() { 137 return beanClassTextField; 138 } 139 140 public JButton getBeanClassLinkButton() { 141 return beanClassLinkButton; 142 } 143 144 public JButton getMoveClassButton() { 145 return moveClassButton; 146 } 147 148 public JButton getRenameClassButton() { 149 return renameClassButton; 150 } 151 } 152 | Popular Tags |