2
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4
* Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
6
* The contents of this file are subject to the terms of either the GNU
7
* General Public License Version 2 only ("GPL") or the Common
8
* Development and Distribution License("CDDL") (collectively, the
9
* "License"). You may not use this file except in compliance with the
10
* License. You can obtain a copy of the License at
11
* http://www.netbeans.org/cddl-gplv2.html
12
* or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
13
* specific language governing permissions and limitations under the
14
* License. When distributing the software, include this License Header
15
* Notice in each file and include the License file at
16
* nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
17
* particular file as subject to the "Classpath" exception as provided
18
* by Sun in the GPL Version 2 section of the License file that
19
* accompanied this code. If applicable, add the following below the
20
* License Header, with the fields enclosed by brackets [] replaced by
21
* your own identifying information:
22
* "Portions Copyrighted [year] [name of copyright owner]"
26
* The Original Software is NetBeans. The Initial Developer of the Original
27
* Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
28
* Microsystems, Inc. All Rights Reserved.
30
* If you wish your version of this file to be governed by only the CDDL
31
* or only the GPL Version 2, indicate your decision by adding
32
* "[Contributor] elects to include this software in this distribution
33
* under the [CDDL or GPL Version 2] license." If you do not indicate a
34
* single choice of license, a recipient has the option to distribute
35
* your version of this file under either the CDDL, the GPL Version 2 or
36
* to extend the choice of license to its licensees as provided above.
37
* However, if you add GPL Version 2 code and therefore, elected the GPL
38
* Version 2 license, then the option applies only if the new code is
39
* made subject to such option by the copyright holder.
42
package org.netbeans.modules.j2ee.ddloaders.multiview.ui;
44
import org.netbeans.modules.xml.multiview.ui.SectionNodeInnerPanel;
45
import org.netbeans.modules.xml.multiview.ui.SectionNodeView;
52
public class EjbImplementationAndInterfacesForm extends SectionNodeInnerPanel {
55
* Creates new form BeanForm
57
public EjbImplementationAndInterfacesForm(SectionNodeView sectionNodeView) {
58
super(sectionNodeView);
63
* This method is called from within the constructor to
64
* initialize the form.
65
* WARNING: Do NOT modify this code. The content of this method is
66
* always regenerated by the Form Editor.
68
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
69
private void initComponents() {
70
java.awt.GridBagConstraints gridBagConstraints;
72
jLabel1 = new javax.swing.JLabel();
73
jLabel2 = new javax.swing.JLabel();
74
jLabel3 = new javax.swing.JLabel();
75
jLabel4 = new javax.swing.JLabel();
76
jLabel5 = new javax.swing.JLabel();
77
jLabel6 = new javax.swing.JLabel();
78
jLabel7 = new javax.swing.JLabel();
79
beanClassTextField = new javax.swing.JTextField();
80
localComponentTextField = new javax.swing.JTextField();
81
localHomeTextField = new javax.swing.JTextField();
82
remoteComponentTextField = new javax.swing.JTextField();
83
remoteHomeTextField = new javax.swing.JTextField();
84
spacerLabel = new javax.swing.JLabel();
85
beanClassLinkButton = new javax.swing.JButton();
86
localComponentLinkButton = new javax.swing.JButton();
87
localHomeLinkButton = new javax.swing.JButton();
88
remoteComponentLinkButton = new javax.swing.JButton();
89
remoteHomeLinkButton = new javax.swing.JButton();
91
jLabel1.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_BeanClass")); // NOI18N
93
jLabel2.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_LocalInterface")); // NOI18N
95
jLabel3.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Component")); // NOI18N
97
jLabel4.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Home")); // NOI18N
99
jLabel5.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_RemoteInterface")); // NOI18N
101
jLabel6.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Component")); // NOI18N
103
jLabel7.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_Home")); // NOI18N
105
beanClassTextField.setColumns(35);
107
localComponentTextField.setColumns(35);
109
localHomeTextField.setColumns(35);
111
remoteComponentTextField.setColumns(35);
113
remoteHomeTextField.setColumns(35);
115
spacerLabel.setText(" ");
117
org.openide.awt.Mnemonics.setLocalizedText(beanClassLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); // NOI18N
118
beanClassLinkButton.setBorderPainted(false);
119
beanClassLinkButton.setContentAreaFilled(false);
120
beanClassLinkButton.setFocusPainted(false);
121
beanClassLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
123
org.openide.awt.Mnemonics.setLocalizedText(localComponentLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); // NOI18N
124
localComponentLinkButton.setBorderPainted(false);
125
localComponentLinkButton.setContentAreaFilled(false);
126
localComponentLinkButton.setFocusPainted(false);
127
localComponentLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
129
org.openide.awt.Mnemonics.setLocalizedText(localHomeLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); // NOI18N
130
localHomeLinkButton.setBorderPainted(false);
131
localHomeLinkButton.setContentAreaFilled(false);
132
localHomeLinkButton.setFocusPainted(false);
133
localHomeLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
135
org.openide.awt.Mnemonics.setLocalizedText(remoteComponentLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); // NOI18N
136
remoteComponentLinkButton.setBorderPainted(false);
137
remoteComponentLinkButton.setContentAreaFilled(false);
138
remoteComponentLinkButton.setFocusPainted(false);
139
remoteComponentLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
141
org.openide.awt.Mnemonics.setLocalizedText(remoteHomeLinkButton, org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_GoToSource")); // NOI18N
142
remoteHomeLinkButton.setBorderPainted(false);
143
remoteHomeLinkButton.setContentAreaFilled(false);
144
remoteHomeLinkButton.setFocusPainted(false);
145
remoteHomeLinkButton.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
147
org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
148
this.setLayout(layout);
149
layout.setHorizontalGroup(
150
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
151
.add(layout.createSequentialGroup()
154
.add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
156
.add(beanClassTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 231, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
158
.add(beanClassLinkButton))
159
.add(layout.createSequentialGroup()
161
.add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
163
.add(layout.createSequentialGroup()
165
.add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
167
.add(localComponentTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 231, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
169
.add(localComponentLinkButton))
170
.add(layout.createSequentialGroup()
172
.add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
174
.add(localHomeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 231, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
176
.add(localHomeLinkButton))
177
.add(layout.createSequentialGroup()
181
.add(layout.createSequentialGroup()
183
.add(jLabel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
185
.add(remoteComponentTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 231, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
187
.add(remoteComponentLinkButton))
188
.add(layout.createSequentialGroup()
190
.add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 106, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
192
.add(remoteHomeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 231, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
194
.add(remoteHomeLinkButton))
196
layout.setVerticalGroup(
197
layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
198
.add(layout.createSequentialGroup()
199
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
201
.add(layout.createSequentialGroup()
204
.add(layout.createSequentialGroup()
206
.add(beanClassTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
207
.add(layout.createSequentialGroup()
209
.add(beanClassLinkButton)))
213
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
214
.add(layout.createSequentialGroup()
217
.add(layout.createSequentialGroup()
219
.add(localComponentTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
220
.add(localComponentLinkButton))
222
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
223
.add(layout.createSequentialGroup()
226
.add(layout.createSequentialGroup()
228
.add(localHomeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
229
.add(localHomeLinkButton))
233
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
234
.add(layout.createSequentialGroup()
237
.add(layout.createSequentialGroup()
239
.add(remoteComponentTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
240
.add(remoteComponentLinkButton))
242
.add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
243
.add(layout.createSequentialGroup()
246
.add(layout.createSequentialGroup()
248
.add(remoteHomeTextField, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
249
.add(remoteHomeLinkButton))
252
}// </editor-fold>//GEN-END:initComponents
254
// Variables declaration - do not modify//GEN-BEGIN:variables
255
private javax.swing.JButton beanClassLinkButton;
256
private javax.swing.JTextField beanClassTextField;
257
private javax.swing.JLabel jLabel1;
258
private javax.swing.JLabel jLabel2;
259
private javax.swing.JLabel jLabel3;
260
private javax.swing.JLabel jLabel4;
261
private javax.swing.JLabel jLabel5;
262
private javax.swing.JLabel jLabel6;
263
private javax.swing.JLabel jLabel7;
264
private javax.swing.JButton localComponentLinkButton;
265
private javax.swing.JTextField localComponentTextField;
266
private javax.swing.JButton localHomeLinkButton;
267
private javax.swing.JTextField localHomeTextField;
268
private javax.swing.JButton remoteComponentLinkButton;
269
private javax.swing.JTextField remoteComponentTextField;
270
private javax.swing.JButton remoteHomeLinkButton;
271
private javax.swing.JTextField remoteHomeTextField;
272
private javax.swing.JLabel spacerLabel;
273
// End of variables declaration//GEN-END:variables
275
public JTextField getBeanClassTextField() {
276
return beanClassTextField;
279
public JTextField getLocalComponentTextField() {
280
return localComponentTextField;
283
public JTextField getLocalHomeTextField() {
284
return localHomeTextField;
287
public JTextField getRemoteComponentTextField() {
288
return remoteComponentTextField;
291
public JTextField getRemoteHomeTextField() {
292
return remoteHomeTextField;
295
public JComponent getErrorComponent(String errorId) {
299
public void setValue(JComponent source, Object value) {
303
public void linkButtonPressed(Object ddBean, String ddProperty) {
307
public JButton getBeanClassLinkButton() {
308
return beanClassLinkButton;
311
public JButton getLocalComponentLinkButton() {
312
return localComponentLinkButton;
315
public JButton getLocalHomeLinkButton() {
316
return localHomeLinkButton;
319
public JButton getRemoteComponentLinkButton() {
320
return remoteComponentLinkButton;
323
public JButton getRemoteHomeLinkButton() {
324
return remoteHomeLinkButton;