KickJava   Java API By Example, From Geeks To Geeks.

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


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 MdbImplementationForm extends SectionNodeInnerPanel {
31
32     /**
33      * Creates new form MdbImplementationForm
34      *
35      * @param sectionNodeView enclosing SectionNodeView object
36      */

37     public MdbImplementationForm(SectionNodeView sectionNodeView) {
38         super(sectionNodeView);
39         initComponents();
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         jLabel1 = new javax.swing.JLabel JavaDoc();
53         beanClassTextField = new javax.swing.JTextField JavaDoc();
54         moveClassButton = new javax.swing.JButton JavaDoc();
55         renameClassButton = new javax.swing.JButton JavaDoc();
56         spacerLabel = new javax.swing.JLabel JavaDoc();
57         beanClassLinkButton = new javax.swing.JButton JavaDoc();
58
59         setLayout(new java.awt.GridBagLayout JavaDoc());
60
61         jLabel1.setText(org.openide.util.NbBundle.getMessage(MdbImplementationForm.class, "LBL_BeanClass"));
62         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(5, 12, 0, 12);
68         add(jLabel1, gridBagConstraints);
69
70         beanClassTextField.setColumns(35);
71         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc(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 JavaDoc();
82         gridBagConstraints.gridx = 1;
83         gridBagConstraints.gridy = 1;
84         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
85         gridBagConstraints.insets = new java.awt.Insets JavaDoc(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 JavaDoc();
90         gridBagConstraints.gridx = 2;
91         gridBagConstraints.gridy = 1;
92         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
93         gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 5, 0, 12);
94         add(renameClassButton, gridBagConstraints);
95
96         spacerLabel.setText(" ");
97         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
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 JavaDoc();
110         gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
111         gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 0, 0, 0);
112         add(beanClassLinkButton, gridBagConstraints);
113
114     }
115     // </editor-fold>//GEN-END:initComponents
116

117     // Variables declaration - do not modify//GEN-BEGIN:variables
118
private javax.swing.JButton JavaDoc beanClassLinkButton;
119     private javax.swing.JTextField JavaDoc beanClassTextField;
120     private javax.swing.JLabel JavaDoc jLabel1;
121     private javax.swing.JButton JavaDoc moveClassButton;
122     private javax.swing.JButton JavaDoc renameClassButton;
123     private javax.swing.JLabel JavaDoc spacerLabel;
124     // End of variables declaration//GEN-END:variables
125

126     public void setValue(JComponent source, Object JavaDoc value) {
127     }
128
129     public void linkButtonPressed(Object JavaDoc ddBean, String JavaDoc ddProperty) {
130     }
131
132     public JComponent getErrorComponent(String JavaDoc 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