1 19 package org.netbeans.modules.j2ee.websphere6.dd.loaders.webbnd; 20 21 22 import org.netbeans.modules.j2ee.websphere6.dd.beans.EjbRefBindingsType; 23 import org.netbeans.modules.j2ee.websphere6.dd.beans.ResEnvRefBindingsType; 24 import org.netbeans.modules.j2ee.websphere6.dd.beans.ResRefBindingsType; 25 import org.netbeans.modules.j2ee.websphere6.dd.beans.CommonRef; 26 import org.netbeans.modules.j2ee.websphere6.dd.beans.WSWebBnd; 27 import org.netbeans.modules.j2ee.websphere6.dd.loaders.ui.WSReferenceBindingsPanel; 28 import org.netbeans.modules.j2ee.websphere6.dd.loaders.ui.WSWebBndAttributesPanel; 29 import org.netbeans.modules.xml.multiview.ui.*; 30 31 35 public class PanelFactory implements org.netbeans.modules.xml.multiview.ui.InnerPanelFactory { 36 private WSWebBndDataObject dObj; 37 ToolBarDesignEditor editor; 38 39 40 PanelFactory(ToolBarDesignEditor editor, WSWebBndDataObject dObj) { 41 this.dObj=dObj; 42 this.editor=editor; 43 } 44 45 public SectionInnerPanel createInnerPanel(Object key) { 46 SectionView pv=(SectionView)editor.getContentView(); 47 if (key instanceof WSWebBnd){ 48 return new WSWebBndAttributesPanel(pv, dObj, (WSWebBnd)key); 49 } else if (key instanceof CommonRef){ 50 return new WSReferenceBindingsPanel(pv,dObj,(CommonRef)key); 51 } 52 return null; 53 } 54 } 55 | Popular Tags |