1 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 33 public class SecurityRolesPanel extends SectionInnerPanel { 34 35 36 public SecurityRolesPanel(SectionView view, DDDataObject dObj) { 37 super(view); 38 initComponents(); 39 40 SecurityRoleTableModel model = new SecurityRoleTableModel(); 42 SecurityRoleTablePanel panel = new SecurityRoleTablePanel(dObj, model); 43 panel.setModel(dObj.getWebApp(),dObj.getWebApp().getSecurityRole()); 44 45 java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints (); 46 gridBagConstraints.gridx = 0; 47 gridBagConstraints.gridy = 0; 48 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 50 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 51 gridBagConstraints.insets = new java.awt.Insets (5, 10, 0, 0); 52 gridBagConstraints.weightx = 1.0; 53 add(panel, gridBagConstraints); 55 } 56 57 public javax.swing.JComponent getErrorComponent(String errorId) { 58 return null; 59 } 60 61 public void setValue(javax.swing.JComponent source, Object value) { 62 } 63 64 public void linkButtonPressed(Object obj, String id) { 65 } 66 67 72 private void initComponents() { 74 75 setLayout(new java.awt.GridBagLayout ()); 76 77 } 79 80 83 } 84 | Popular Tags |