KickJava   Java API By Example, From Geeks To Geeks.

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


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 EntityOverviewForm extends SectionNodeInnerPanel {
31
32     /**
33      * Creates new form EntityOverviewForm
34      */

35     public EntityOverviewForm(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     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
47
private void initComponents() {
48         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
49
50         jLabel1 = new javax.swing.JLabel JavaDoc();
51         jLabel2 = new javax.swing.JLabel JavaDoc();
52         jLabel3 = new javax.swing.JLabel JavaDoc();
53         primaryKeyFieldLabel = new javax.swing.JLabel JavaDoc();
54         jLabel5 = new javax.swing.JLabel JavaDoc();
55         jLabel6 = new javax.swing.JLabel JavaDoc();
56         ejbNameTextField = new javax.swing.JTextField JavaDoc();
57         persistenceTypeTextField = new javax.swing.JTextField JavaDoc();
58         abstractSchemaNameTextField = new javax.swing.JTextField JavaDoc();
59         primaryKeyFieldComboBox = new javax.swing.JComboBox JavaDoc();
60         primaryKeyClassComboBox = new javax.swing.JComboBox JavaDoc();
61         primaryKeyClassTextField = new javax.swing.JTextField JavaDoc();
62         reentrantCheckBox = new javax.swing.JCheckBox JavaDoc();
63         spacerLabel = new javax.swing.JLabel JavaDoc();
64
65         setLayout(new java.awt.GridBagLayout JavaDoc());
66
67         jLabel1.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_EjbName"));
68         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
69         gridBagConstraints.gridx = 0;
70         gridBagConstraints.gridy = 0;
71         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
72         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 6);
73         add(jLabel1, gridBagConstraints);
74
75         jLabel2.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_PersistenceType"));
76         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
77         gridBagConstraints.gridx = 0;
78         gridBagConstraints.gridy = 1;
79         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
80         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 6);
81         add(jLabel2, gridBagConstraints);
82
83         jLabel3.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_AbstractSchemaName"));
84         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
85         gridBagConstraints.gridx = 0;
86         gridBagConstraints.gridy = 2;
87         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
88         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 6);
89         add(jLabel3, gridBagConstraints);
90
91         primaryKeyFieldLabel.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_PrimaryKeyField"));
92         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
93         gridBagConstraints.gridx = 0;
94         gridBagConstraints.gridy = 3;
95         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
96         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 6);
97         add(primaryKeyFieldLabel, gridBagConstraints);
98
99         jLabel5.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_PrimaryKeyClass"));
100         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
101         gridBagConstraints.gridx = 0;
102         gridBagConstraints.gridy = 4;
103         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
104         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 6);
105         add(jLabel5, gridBagConstraints);
106
107         jLabel6.setText(org.openide.util.NbBundle.getMessage(EntityOverviewForm.class, "LBL_Reentrant"));
108         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
109         gridBagConstraints.gridx = 0;
110         gridBagConstraints.gridy = 5;
111         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
112         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 6);
113         add(jLabel6, gridBagConstraints);
114
115         ejbNameTextField.setColumns(25);
116         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
117         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
118         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
119         add(ejbNameTextField, gridBagConstraints);
120
121         persistenceTypeTextField.setColumns(25);
122         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
123         gridBagConstraints.gridx = 1;
124         gridBagConstraints.gridy = 1;
125         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
126         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
127         add(persistenceTypeTextField, gridBagConstraints);
128
129         abstractSchemaNameTextField.setColumns(25);
130         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
131         gridBagConstraints.gridx = 1;
132         gridBagConstraints.gridy = 2;
133         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
134         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
135         add(abstractSchemaNameTextField, gridBagConstraints);
136
137         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
138         gridBagConstraints.gridx = 1;
139         gridBagConstraints.gridy = 3;
140         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
141         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
142         add(primaryKeyFieldComboBox, gridBagConstraints);
143
144         primaryKeyClassComboBox.setEditable(true);
145         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
146         gridBagConstraints.gridx = 1;
147         gridBagConstraints.gridy = 4;
148         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
149         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
150         add(primaryKeyClassComboBox, gridBagConstraints);
151
152         primaryKeyClassTextField.setColumns(25);
153         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
154         gridBagConstraints.gridx = 1;
155         gridBagConstraints.gridy = 4;
156         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 2, 2, 2);
157         add(primaryKeyClassTextField, gridBagConstraints);
158
159         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
160         gridBagConstraints.gridx = 1;
161         gridBagConstraints.gridy = 5;
162         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
163         gridBagConstraints.insets = new java.awt.Insets JavaDoc(2, 0, 2, 0);
164         add(reentrantCheckBox, gridBagConstraints);
165
166         spacerLabel.setText(" ");
167         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
168         gridBagConstraints.gridx = 2;
169         gridBagConstraints.gridy = 6;
170         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
171         gridBagConstraints.weightx = 1.0;
172         gridBagConstraints.weighty = 1.0;
173         add(spacerLabel, gridBagConstraints);
174
175     }
176     // </editor-fold>//GEN-END:initComponents
177

178     // Variables declaration - do not modify//GEN-BEGIN:variables
179
private javax.swing.JTextField JavaDoc abstractSchemaNameTextField;
180     private javax.swing.JTextField JavaDoc ejbNameTextField;
181     private javax.swing.JLabel JavaDoc jLabel1;
182     private javax.swing.JLabel JavaDoc jLabel2;
183     private javax.swing.JLabel JavaDoc jLabel3;
184     private javax.swing.JLabel JavaDoc jLabel5;
185     private javax.swing.JLabel JavaDoc jLabel6;
186     private javax.swing.JTextField JavaDoc persistenceTypeTextField;
187     private javax.swing.JComboBox JavaDoc primaryKeyClassComboBox;
188     private javax.swing.JTextField JavaDoc primaryKeyClassTextField;
189     private javax.swing.JComboBox JavaDoc primaryKeyFieldComboBox;
190     private javax.swing.JLabel JavaDoc primaryKeyFieldLabel;
191     private javax.swing.JCheckBox JavaDoc reentrantCheckBox;
192     private javax.swing.JLabel JavaDoc spacerLabel;
193     // End of variables declaration//GEN-END:variables
194

195     public JTextField getAbstractSchemaNameTextField() {
196         return abstractSchemaNameTextField;
197     }
198
199     public JTextField getEjbNameTextField() {
200         return ejbNameTextField;
201     }
202
203     public JTextField getPersistenceTypeTextField() {
204         return persistenceTypeTextField;
205     }
206
207     public JComboBox getPrimaryKeyClassComboBox() {
208         return primaryKeyClassComboBox;
209     }
210
211     public JLabel getPrimaryKeyFieldLabel() {
212         return primaryKeyFieldLabel;
213     }
214
215     public JComboBox getPrimaryKeyFieldComboBox() {
216         return primaryKeyFieldComboBox;
217     }
218
219     public JCheckBox getReentrantCheckBox() {
220         return reentrantCheckBox;
221     }
222
223     public JLabel getSpacerLabel() {
224         return spacerLabel;
225     }
226
227     public JComponent getErrorComponent(String JavaDoc errorId) {
228         return null;
229     }
230
231     public void setValue(JComponent source, Object JavaDoc value) {
232     }
233
234     public void linkButtonPressed(Object JavaDoc ddBean, String JavaDoc ddProperty) {
235     }
236
237     public JTextField getPrimaryKeyClassTextField() {
238         return primaryKeyClassTextField;
239     }
240 }
241
Popular Tags