KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.netbeans.modules.xml.multiview.Utils;
25
26 import javax.swing.*;
27
28 /**
29  * @author pfiala
30  */

31 public class EjbDetailForm extends SectionNodeInnerPanel {
32
33     /**
34      * Creates new form EjbDetailForm
35      */

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

48     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
49
private void initComponents() {
50         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
51
52         displayNameLabel = new javax.swing.JLabel JavaDoc();
53         descriptionLabel = new javax.swing.JLabel JavaDoc();
54         smallIconlabel = new javax.swing.JLabel JavaDoc();
55         largeIconLabel = new javax.swing.JLabel JavaDoc();
56         displayNameTextField = new javax.swing.JTextField JavaDoc();
57         descriptionTextArea = new javax.swing.JTextArea JavaDoc();
58         smallIconTextField = new javax.swing.JTextField JavaDoc();
59         browseSmallIconButton = new javax.swing.JButton JavaDoc();
60         largeIconTextField = new javax.swing.JTextField JavaDoc();
61         browseLargeIconButton = new javax.swing.JButton JavaDoc();
62         spacerLabel = new javax.swing.JLabel JavaDoc();
63
64         setLayout(new java.awt.GridBagLayout JavaDoc());
65
66         displayNameLabel.setText(org.openide.util.NbBundle.getMessage(EjbDetailForm.class, "LBL_DisplayName"));
67         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
68         gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
69         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
70         add(displayNameLabel, gridBagConstraints);
71
72         descriptionLabel.setText(org.openide.util.NbBundle.getMessage(EjbDetailForm.class, "LBL_Description"));
73         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
74         gridBagConstraints.gridx = 0;
75         gridBagConstraints.gridy = 2;
76         gridBagConstraints.anchor = java.awt.GridBagConstraints.SOUTHWEST;
77         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
78         add(descriptionLabel, gridBagConstraints);
79
80         smallIconlabel.setText(org.openide.util.NbBundle.getMessage(EjbDetailForm.class, "LBL_SmallIcon"));
81         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
82         gridBagConstraints.gridx = 0;
83         gridBagConstraints.gridy = 3;
84         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
85         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
86         add(smallIconlabel, gridBagConstraints);
87
88         largeIconLabel.setText(org.openide.util.NbBundle.getMessage(EjbDetailForm.class, "LBL_LargeIcon"));
89         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
90         gridBagConstraints.gridx = 0;
91         gridBagConstraints.gridy = 4;
92         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
93         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
94         add(largeIconLabel, gridBagConstraints);
95
96         displayNameTextField.setColumns(25);
97         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
98         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
99         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
100         add(displayNameTextField, gridBagConstraints);
101
102         descriptionTextArea.setLineWrap(true);
103         descriptionTextArea.setRows(3);
104         descriptionTextArea.setWrapStyleWord(true);
105         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
106         gridBagConstraints.gridx = 1;
107         gridBagConstraints.gridy = 1;
108         gridBagConstraints.gridwidth = java.awt.GridBagConstraints.REMAINDER;
109         gridBagConstraints.gridheight = 2;
110         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
111         gridBagConstraints.weighty = 1.0;
112         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
113         add(descriptionTextArea, gridBagConstraints);
114
115         smallIconTextField.setColumns(25);
116         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
117         gridBagConstraints.gridx = 1;
118         gridBagConstraints.gridy = 3;
119         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
120         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
121         add(smallIconTextField, gridBagConstraints);
122
123         browseSmallIconButton.setText(org.openide.util.NbBundle.getMessage(EjbDetailForm.class, "LBL_Browse"));
124         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
125         gridBagConstraints.gridx = 2;
126         gridBagConstraints.gridy = 3;
127         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
128         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
129         add(browseSmallIconButton, gridBagConstraints);
130
131         largeIconTextField.setColumns(25);
132         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
133         gridBagConstraints.gridx = 1;
134         gridBagConstraints.gridy = 4;
135         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
136         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
137         add(largeIconTextField, gridBagConstraints);
138
139         browseLargeIconButton.setText(org.openide.util.NbBundle.getMessage(EjbDetailForm.class, "LBL_Browse"));
140         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
141         gridBagConstraints.gridx = 2;
142         gridBagConstraints.gridy = 4;
143         gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
144         gridBagConstraints.insets = new java.awt.Insets JavaDoc(3, 3, 3, 3);
145         add(browseLargeIconButton, gridBagConstraints);
146
147         spacerLabel.setText(" ");
148         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
149         gridBagConstraints.gridx = 3;
150         gridBagConstraints.gridy = 4;
151         gridBagConstraints.weightx = 1.0;
152         add(spacerLabel, gridBagConstraints);
153
154     }
155     // </editor-fold>//GEN-END:initComponents
156

157     // Variables declaration - do not modify//GEN-BEGIN:variables
158
private javax.swing.JButton JavaDoc browseLargeIconButton;
159     private javax.swing.JButton JavaDoc browseSmallIconButton;
160     private javax.swing.JLabel JavaDoc descriptionLabel;
161     private javax.swing.JTextArea JavaDoc descriptionTextArea;
162     private javax.swing.JLabel JavaDoc displayNameLabel;
163     private javax.swing.JTextField JavaDoc displayNameTextField;
164     private javax.swing.JLabel JavaDoc largeIconLabel;
165     private javax.swing.JTextField JavaDoc largeIconTextField;
166     private javax.swing.JTextField JavaDoc smallIconTextField;
167     private javax.swing.JLabel JavaDoc smallIconlabel;
168     private javax.swing.JLabel JavaDoc spacerLabel;
169     // End of variables declaration//GEN-END:variables
170

171     public JTextArea getDescriptionTextArea() {
172         return descriptionTextArea;
173     }
174
175     public JTextField getDisplayNameTextField() {
176         return displayNameTextField;
177     }
178
179     public JTextField getLargeIconTextField() {
180         return largeIconTextField;
181     }
182
183     public JTextField getSmallIconTextField() {
184         return smallIconTextField;
185     }
186
187     public JButton getBrowseLargeIconButton() {
188         return browseLargeIconButton;
189     }
190
191     public JButton getBrowseSmallIconButton() {
192         return browseSmallIconButton;
193     }
194
195     public JComponent getErrorComponent(String JavaDoc errorId) {
196         return null;
197     }
198
199     public void setValue(JComponent source, Object JavaDoc value) {
200
201     }
202
203     public void linkButtonPressed(Object JavaDoc ddBean, String JavaDoc ddProperty) {
204
205     }
206
207 }
208
Popular Tags