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 import org.netbeans.modules.j2ee.dd.api.common.MessageDestinationRef; 25 import org.netbeans.modules.j2ee.dd.api.common.VersionNotSupportedException; 26 27 32 public class MessageDestRefsPanel extends SectionInnerPanel { 33 34 35 public MessageDestRefsPanel(SectionView sectionView, DDDataObject dObj) { 36 super(sectionView); 37 initComponents(); 38 MessageDestRefTableModel model = new MessageDestRefTableModel(); 40 MessageDestRefsTablePanel panel = new MessageDestRefsTablePanel(dObj, model); 41 MessageDestinationRef[] refs = null; 42 try { 43 refs = dObj.getWebApp().getMessageDestinationRef(); 44 } catch (VersionNotSupportedException ex) { 45 refs = new MessageDestinationRef[0]; 46 } 47 panel.setModel(dObj.getWebApp(),refs); 48 java.awt.GridBagConstraints gridBagConstraints = new java.awt.GridBagConstraints (); 49 gridBagConstraints.gridx = 0; 50 gridBagConstraints.gridy = 0; 51 gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST; 53 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 54 gridBagConstraints.insets = new java.awt.Insets (5, 10, 0, 0); 55 gridBagConstraints.weightx = 1.0; 56 add(panel, gridBagConstraints); 58 } 59 public javax.swing.JComponent getErrorComponent(String errorId) { 60 return null; 61 } 62 63 public void setValue(javax.swing.JComponent source, Object value) { 64 } 65 66 public void linkButtonPressed(Object obj, String id) { 67 } 68 69 74 private void initComponents() { 76 java.awt.GridBagConstraints gridBagConstraints; 77 78 filler = new javax.swing.JPanel (); 79 80 setLayout(new java.awt.GridBagLayout ()); 81 82 filler.setOpaque(false); 83 gridBagConstraints = new java.awt.GridBagConstraints (); 84 gridBagConstraints.gridx = 1; 85 gridBagConstraints.gridy = 0; 86 gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; 87 add(filler, gridBagConstraints); 88 89 } 90 92 93 private javax.swing.JPanel filler; 95 97 } 98 | Popular Tags |