KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > j2ee > ddloaders > web > multiview > ResEnvRefsPanel


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.web.multiview;
21
22 import org.netbeans.modules.j2ee.ddloaders.web.*;
23 import org.netbeans.modules.xml.multiview.ui.*;
24
25 /** ResEnvRefsPanel section inner panel for resource env. references
26  *
27  * Created on April 11, 2005
28  * @author mkuchtiak
29  */

30 public class ResEnvRefsPanel extends SectionInnerPanel {
31
32     /** Creates new form JspPGPanel */
33     public ResEnvRefsPanel(SectionView sectionView, DDDataObject dObj) {
34         super(sectionView);
35         initComponents();
36         // Error Pages
37
ResEnvRefTableModel model = new ResEnvRefTableModel();
38         ResEnvRefsTablePanel panel = new ResEnvRefsTablePanel(dObj, model);
39         panel.setModel(dObj.getWebApp(),dObj.getWebApp().getResourceEnvRef());
40         java.awt.GridBagConstraints JavaDoc gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
41         gridBagConstraints.gridx = 0;
42         gridBagConstraints.gridy = 0;
43         //gridBagConstraints.gridwidth = 4;
44
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
45         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
46         gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 10, 0, 0);
47         gridBagConstraints.weightx = 1.0;
48         //gridBagConstraints.weighty = 5.0;
49
add(panel, gridBagConstraints);
50     }
51     public javax.swing.JComponent JavaDoc getErrorComponent(String JavaDoc errorId) {
52         return null;
53     }
54
55     public void setValue(javax.swing.JComponent JavaDoc source, Object JavaDoc value) {
56     }
57     
58     public void linkButtonPressed(Object JavaDoc obj, String JavaDoc id) {
59     }
60     
61     /** This method is called from within the constructor to
62      * initialize the form.
63      * WARNING: Do NOT modify this code. The content of this method is
64      * always regenerated by the Form Editor.
65      */

66     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
67
private void initComponents() {
68         java.awt.GridBagConstraints JavaDoc gridBagConstraints;
69
70         filler = new javax.swing.JPanel JavaDoc();
71
72         setLayout(new java.awt.GridBagLayout JavaDoc());
73
74         filler.setOpaque(false);
75         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
76         gridBagConstraints.gridx = 1;
77         gridBagConstraints.gridy = 0;
78         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
79         gridBagConstraints.weightx = 1.0;
80         add(filler, gridBagConstraints);
81
82     }
83     // </editor-fold>//GEN-END:initComponents
84

85     
86     // Variables declaration - do not modify//GEN-BEGIN:variables
87
private javax.swing.JPanel JavaDoc filler;
88     // End of variables declaration//GEN-END:variables
89

90 }
91
Popular Tags