1 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 30 public class ResEnvRefsPanel extends SectionInnerPanel { 31 32 33 public ResEnvRefsPanel(SectionView sectionView, DDDataObject dObj) { 34 super(sectionView); 35 initComponents(); 36 ResEnvRefTableModel model = new ResEnvRefTableModel(); 38 ResEnvRefsTablePanel panel = new ResEnvRefsTablePanel(dObj, model); 39 panel.setModel(dObj.getWebApp(),dObj.getWebApp().getResourceEnvRef()); 40 java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints (); 41 gridBagConstraints.gridx = 0; 42 gridBagConstraints.gridy = 0; 43 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 45 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 46 gridBagConstraints.insets = new java.awt.Insets (5, 10, 0, 0); 47 gridBagConstraints.weightx = 1.0; 48 add(panel, gridBagConstraints); 50 } 51 public javax.swing.JComponent getErrorComponent(String errorId) { 52 return null; 53 } 54 55 public void setValue(javax.swing.JComponent source, Object value) { 56 } 57 58 public void linkButtonPressed(Object obj, String id) { 59 } 60 61 66 private void initComponents() { 68 java.awt.GridBagConstraints gridBagConstraints; 69 70 filler = new javax.swing.JPanel (); 71 72 setLayout(new java.awt.GridBagLayout ()); 73 74 filler.setOpaque(false); 75 gridBagConstraints = new java.awt.GridBagConstraints (); 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 85 86 private javax.swing.JPanel filler; 88 90 } 91 | Popular Tags |