KickJava   Java API By Example, From Geeks To Geeks.

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


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 /**
26  * @author mkuchtiak
27  */

28 public class FilterMappingsPanel extends SectionInnerPanel {
29     FilterMappingsTableModel model;
30
31     /** Creates new form JspPGPanel */
32     public FilterMappingsPanel(SectionView sectionView, DDDataObject dObj) {
33         super(sectionView);
34         initComponents();
35
36         // Filter Mappings
37
model = new FilterMappingsTableModel();
38         FilterMappingsTablePanel panel = new FilterMappingsTablePanel(sectionView, dObj, model);
39         panel.setModel(dObj.getWebApp(),dObj.getWebApp().getFilterMapping());
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     void removeRow(int row) {
62         model.removeRow(row);
63     }
64     
65     
66     
67     /** This method is called from within the constructor to
68      * initialize the form.
69      * WARNING: Do NOT modify this code. The content of this method is
70      * always regenerated by the Form Editor.
71      */

72     private void initComponents() {//GEN-BEGIN:initComponents
73
java.awt.GridBagConstraints JavaDoc gridBagConstraints;
74
75         filler = new javax.swing.JPanel JavaDoc();
76
77         setLayout(new java.awt.GridBagLayout JavaDoc());
78
79         filler.setOpaque(false);
80         gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
81         gridBagConstraints.gridx = 1;
82         gridBagConstraints.gridy = 0;
83         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
84         gridBagConstraints.weightx = 1.0;
85         add(filler, gridBagConstraints);
86
87     }//GEN-END:initComponents
88

89     
90     // Variables declaration - do not modify//GEN-BEGIN:variables
91
private javax.swing.JPanel JavaDoc filler;
92     // End of variables declaration//GEN-END:variables
93

94 }
95
Popular Tags