KickJava   Java API By Example, From Geeks To Geeks.

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


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.DDDataObject;
23 import org.netbeans.modules.xml.multiview.ui.SectionInnerPanel;
24 import org.netbeans.modules.xml.multiview.ui.SectionView;
25
26 /**
27  * SecurityRolesPanel.java
28  *
29  * Panel for hosting the SecurityRoleTablePanel.
30  *
31  * @author ptliu
32  */

33 public class SecurityRolesPanel extends SectionInnerPanel {
34     
35     /** Creates new form SecurityRolesPanel */
36     public SecurityRolesPanel(SectionView view, DDDataObject dObj) {
37         super(view);
38         initComponents();
39  
40         // Security Role Table
41
SecurityRoleTableModel model = new SecurityRoleTableModel();
42         SecurityRoleTablePanel panel = new SecurityRoleTablePanel(dObj, model);
43         panel.setModel(dObj.getWebApp(),dObj.getWebApp().getSecurityRole());
44         
45         java.awt.GridBagConstraints JavaDoc gridBagConstraints = new java.awt.GridBagConstraints JavaDoc();
46         gridBagConstraints.gridx = 0;
47         gridBagConstraints.gridy = 0;
48         //gridBagConstraints.gridwidth = 4;
49
gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
50         gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
51         gridBagConstraints.insets = new java.awt.Insets JavaDoc(5, 10, 0, 0);
52         gridBagConstraints.weightx = 1.0;
53         //gridBagConstraints.weighty = 5.0;
54
add(panel, gridBagConstraints);
55     }
56     
57     public javax.swing.JComponent JavaDoc getErrorComponent(String JavaDoc errorId) {
58         return null;
59     }
60
61     public void setValue(javax.swing.JComponent JavaDoc source, Object JavaDoc value) {
62     }
63     
64     public void linkButtonPressed(Object JavaDoc obj, String JavaDoc id) {
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     // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents
73
private void initComponents() {
74
75         setLayout(new java.awt.GridBagLayout JavaDoc());
76
77     }// </editor-fold>//GEN-END:initComponents
78

79     
80     // Variables declaration - do not modify//GEN-BEGIN:variables
81
// End of variables declaration//GEN-END:variables
82

83 }
84
Popular Tags