1 19 20 package org.netbeans.modules.j2ee.ddloaders.web.multiview; 21 22 import org.netbeans.modules.xml.multiview.ui.SectionView; 23 import org.netbeans.modules.xml.multiview.ui.ToolBarDesignEditor; 24 import org.netbeans.modules.xml.multiview.ui.SectionInnerPanel; 25 import org.netbeans.modules.j2ee.ddloaders.web.DDDataObject; 26 import org.netbeans.modules.j2ee.dd.api.web.JspPropertyGroup; 27 28 31 public class OverviewFactory implements org.netbeans.modules.xml.multiview.ui.InnerPanelFactory { 32 private DDDataObject dObj; 33 ToolBarDesignEditor editor; 34 35 36 OverviewFactory(ToolBarDesignEditor editor, DDDataObject dObj) { 37 this.dObj=dObj; 38 this.editor=editor; 39 } 40 41 public SectionInnerPanel createInnerPanel(Object key) { 42 if ("listeners".equals(key)) return new ListenersPanel((SectionView)editor.getContentView(), dObj); 43 else if ("context_params".equals(key)) return new ContextParamsPanel((SectionView)editor.getContentView(), dObj); 44 else return new OverviewPanel((SectionView)editor.getContentView(), dObj); 45 } 46 } 47 | Popular Tags |