1 19 20 package org.netbeans.modules.j2ee.ddloaders.multiview; 21 22 import org.netbeans.modules.j2ee.dd.api.ejb.Ejb; 23 import org.netbeans.modules.xml.multiview.ui.SectionNodeInnerPanel; 24 import org.netbeans.modules.xml.multiview.ui.SectionNodeView; 25 26 29 public class EjbReferencesNode extends EjbSectionNode { 30 31 public EjbReferencesNode(SectionNodeView sectionNodeView, Ejb ejb) { 32 super(sectionNodeView, ejb, Utils.getBundleMessage("LBL_EjbReferences"), Utils.ICON_BASE_MISC_NODE); 33 } 34 35 protected SectionNodeInnerPanel createNodeInnerPanel() { 36 final Ejb ejb = (Ejb) getKey(); 37 SectionNodeView sectionNodeView = getSectionNodeView(); 38 final InnerTablePanel innerTablePanel = new InnerTablePanel(sectionNodeView, 39 new EjbReferencesTableModel(sectionNodeView.getDataObject(), ejb)); 40 innerTablePanel.getEditButton().setVisible(true); 41 innerTablePanel.getRemoveButton().setVisible(true); 42 return innerTablePanel; 43 } 44 } 45 | Popular Tags |