KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > ddloaders > multiview > ui > EjbImplementationAndInterfacesForm


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

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 /**
28  * @author pfiala
29  */

30 public class EjbImplementationAndInterfacesForm extends SectionNodeInnerPanel {
31
32     /**
33      * Creates new form BeanForm
34      */

35     public EjbImplementationAndInterfacesForm(SectionNodeView sectionNodeView) {
36         super(sectionNodeView);
37         initComponents();
38     }
39
40     /**
41      * This method is called from within the constructor to
42      * initialize the form.
43      * WARNING: Do NOT modify this code. The content of this method is
44      * always regenerated by the Form Editor.
45      */

46     private void initComponents() {//GEN-BEGIN:initComponents
47
java.awt.GridBagConstraints JavaDoc gridBagConstraints;
48
49         jLabel1 = new javax.swing.JLabel JavaDoc();
50         jLabel2 = new javax.swing.JLabel JavaDoc();
51         jLabel3 = new javax.swing.JLabel JavaDoc();
52         jLabel4 = new javax.swing.JLabel JavaDoc();
53         jLabel5 = new javax.swing.JLabel JavaDoc();
54         jLabel6 = new javax.swing.JLabel JavaDoc();
55         jLabel7 = new javax.swing.JLabel JavaDoc();
56         beanClassTextField = new javax.swing.JTextField JavaDoc();
57         localInterfaceCheckBox = new javax.swing.JCheckBox JavaDoc();
58         localComponentTextField = new javax.swing.JTextField JavaDoc();
59         localHomeTextField = new javax.swing.JTextField JavaDoc();
60         remoteInterfaceCheckBox = new javax.swing.JCheckBox JavaDoc();
61         remoteComponentTextField = new javax.swing.JTextField JavaDoc();
62         remoteHomeTextField = new javax.swing.JTextField JavaDoc();
63         moveClassButton = new javax.swing.JButton JavaDoc();
64         renameClassButton = new javax.swing.JButton JavaDoc();
65         spacerLabel = new javax.swing.JLabel JavaDoc();
66         beanClassLinkButton = new javax.swing.JButton JavaDoc();
67         localComponentLinkButton = new javax.swing.JButton JavaDoc();
68         localHomeLinkButton = new javax.swing.JButton JavaDoc();
69         remoteComponentLinkButton = new javax.swing.JButton JavaDoc();
70         remoteHomeLinkButton = new javax.swing.JButton JavaDoc();
71
72         setLayout(new java.awt.GridBagLayout JavaDoc());
73
74         jLabel1.setText(org.openide.util.NbBundle.getMessage(EjbImplementationAndInterfacesForm.class, "LBL_BeanClass"));
75         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(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 JavaDoc();
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 JavaDoc(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 JavaDoc();
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 JavaDoc(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 JavaDoc();
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 JavaDoc(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 JavaDoc();
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 JavaDoc(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 JavaDoc();
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 JavaDoc(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 JavaDoc();
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 JavaDoc(5, 12, 0, 12);
135         add(jLabel7, gridBagConstraints);
136
137         beanClassTextField.setColumns(35);
138         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(5, 5, 0, 12);
145         add(beanClassTextField, gridBagConstraints);
146
147         localInterfaceCheckBox.setOpaque(false);
148         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
149         gridBagConstraints.gridx = 1;
150         gridBagConstraints.gridy = 1;
151         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
152         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
153         add(localInterfaceCheckBox, gridBagConstraints);
154
155         localComponentTextField.setColumns(35);
156         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(5, 5, 0, 12);
163         add(localComponentTextField, gridBagConstraints);
164
165         localHomeTextField.setColumns(35);
166         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(5, 5, 0, 12);
173         add(localHomeTextField, gridBagConstraints);
174
175         remoteInterfaceCheckBox.setOpaque(false);
176         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
177         gridBagConstraints.gridx = 1;
178         gridBagConstraints.gridy = 4;
179         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
180         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
181         add(remoteInterfaceCheckBox, gridBagConstraints);
182
183         remoteComponentTextField.setColumns(35);
184         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(5, 5, 0, 12);
191         add(remoteComponentTextField, gridBagConstraints);
192
193         remoteHomeTextField.setColumns(35);
194         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(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 JavaDoc();
206         gridBagConstraints.gridx = 1;
207         gridBagConstraints.gridy = 7;
208         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
209         gridBagConstraints.insets = new java.awt.Insets JavaDoc(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 JavaDoc();
215         gridBagConstraints.gridx = 2;
216         gridBagConstraints.gridy = 7;
217         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
218         gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 5, 0, 12);
219         add(renameClassButton, gridBagConstraints);
220
221         spacerLabel.setText(" ");
222         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc();
235         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
236         gridBagConstraints.insets = new java.awt.Insets JavaDoc(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 JavaDoc();
245         gridBagConstraints.gridx = 3;
246         gridBagConstraints.gridy = 2;
247         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
248         gridBagConstraints.insets = new java.awt.Insets JavaDoc(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 JavaDoc();
257         gridBagConstraints.gridx = 3;
258         gridBagConstraints.gridy = 3;
259         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
260         gridBagConstraints.insets = new java.awt.Insets JavaDoc(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 JavaDoc();
269         gridBagConstraints.gridx = 3;
270         gridBagConstraints.gridy = 5;
271         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
272         gridBagConstraints.insets = new java.awt.Insets JavaDoc(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 JavaDoc();
281         gridBagConstraints.gridx = 3;
282         gridBagConstraints.gridy = 6;
283         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
284         gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 0, 0, 0);
285         add(remoteHomeLinkButton, gridBagConstraints);
286
287     }//GEN-END:initComponents
288

289     // Variables declaration - do not modify//GEN-BEGIN:variables
290
private javax.swing.JButton JavaDoc beanClassLinkButton;
291     private javax.swing.JTextField JavaDoc beanClassTextField;
292     private javax.swing.JLabel JavaDoc jLabel1;
293     private javax.swing.JLabel JavaDoc jLabel2;
294     private javax.swing.JLabel JavaDoc jLabel3;
295     private javax.swing.JLabel JavaDoc jLabel4;
296     private javax.swing.JLabel JavaDoc jLabel5;
297     private javax.swing.JLabel JavaDoc jLabel6;
298     private javax.swing.JLabel JavaDoc jLabel7;
299     private javax.swing.JButton JavaDoc localComponentLinkButton;
300     private javax.swing.JTextField JavaDoc localComponentTextField;
301     private javax.swing.JButton JavaDoc localHomeLinkButton;
302     private javax.swing.JTextField JavaDoc localHomeTextField;
303     private javax.swing.JCheckBox JavaDoc localInterfaceCheckBox;
304     private javax.swing.JButton JavaDoc moveClassButton;
305     private javax.swing.JButton JavaDoc remoteComponentLinkButton;
306     private javax.swing.JTextField JavaDoc remoteComponentTextField;
307     private javax.swing.JButton JavaDoc remoteHomeLinkButton;
308     private javax.swing.JTextField JavaDoc remoteHomeTextField;
309     private javax.swing.JCheckBox JavaDoc remoteInterfaceCheckBox;
310     private javax.swing.JButton JavaDoc renameClassButton;
311     private javax.swing.JLabel JavaDoc spacerLabel;
312     // End of variables declaration//GEN-END:variables
313

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 JavaDoc errorId) {
343         return null;
344     }
345
346     public void setValue(JComponent source, Object JavaDoc value) {
347
348     }
349
350     public void linkButtonPressed(Object JavaDoc ddBean, String JavaDoc 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