KickJava   Java API By Example, From Geeks To Geeks.

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


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.dd.api.web.JspPropertyGroup;
23 import org.netbeans.modules.j2ee.ddloaders.web.*;
24 import org.netbeans.modules.xml.multiview.ui.*;
25
26 /**
27  * @author mkuchtiak
28  */

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

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

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

87 }
88
Popular Tags