1 23 package com.sun.enterprise.tools.jsfext.component.factory.basic; 24 25 import com.sun.enterprise.tools.jsfext.component.factory.ComponentFactoryBase; 26 import com.sun.enterprise.tools.jsfext.layout.descriptor.LayoutComponent; 27 28 import com.sun.web.ui.component.Tab; 29 import com.sun.web.ui.el.ConstantMethodBinding; 30 31 import javax.faces.component.UIComponent; 32 import javax.faces.context.FacesContext; 33 34 35 41 public class TabFactory extends ComponentFactoryBase { 42 43 54 public UIComponent create(FacesContext context, LayoutComponent descriptor, UIComponent parent) { 55 Tab comp = new Tab(); 57 String actionString = (String ) descriptor.getOption("actionString"); 58 if (null != actionString) { 59 comp.setAction(new ConstantMethodBinding(actionString)); 60 } 61 62 if (parent != null) { 65 addChild(context, descriptor, parent, comp); 66 } 67 68 setOptions(context, descriptor, comp); 70 71 return comp; 73 } 74 } 75 | Popular Tags |