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