| 1 19 package org.netbeans.modules.j2ee.websphere6.dd.loaders.ejbext; 20 21 22 import org.netbeans.modules.j2ee.websphere6.dd.beans.WSEjbExt; 23 import org.netbeans.modules.j2ee.websphere6.dd.beans.EjbExtensionsType; 24 import org.netbeans.modules.j2ee.websphere6.dd.loaders.ui.WSEjbExtAttributesPanel; 25 import org.netbeans.modules.j2ee.websphere6.dd.loaders.ui.EjbExtensionPanel; 26 27 import org.netbeans.modules.xml.multiview.ui.*; 28 29 33 public class PanelFactory implements org.netbeans.modules.xml.multiview.ui.InnerPanelFactory { 34 private WSEjbExtDataObject dObj; 35 ToolBarDesignEditor editor; 36 37 38 PanelFactory(ToolBarDesignEditor editor, WSEjbExtDataObject dObj) { 39 this.dObj=dObj; 40 this.editor=editor; 41 } 42 43 public SectionInnerPanel createInnerPanel(Object key) { 44 SectionView pv=(SectionView)editor.getContentView(); 45 SectionInnerPanel createdPanel=null; 46 if (key instanceof WSEjbExt){ 47 createdPanel=new WSEjbExtAttributesPanel(pv, dObj, (WSEjbExt)key); 48 } else if (key instanceof EjbExtensionsType){ 49 createdPanel=new EjbExtensionPanel(pv,dObj,(EjbExtensionsType)key); 50 } 55 return createdPanel; 56 } 57 } 58 | Popular Tags |