1 23 package com.sun.enterprise.tools.jsfext.component.factory.basic; 24 25 import com.sun.enterprise.tools.jsfext.component.EventComponent; 26 import com.sun.enterprise.tools.jsfext.component.factory.ComponentFactoryBase; 27 import com.sun.enterprise.tools.jsfext.layout.descriptor.LayoutComponent; 28 29 import javax.faces.component.UIComponent; 30 import javax.faces.context.FacesContext; 31 32 33 39 public class EventComponentFactory extends ComponentFactoryBase { 40 41 52 public UIComponent create(FacesContext context, LayoutComponent descriptor, UIComponent parent) { 53 EventComponent eventComp = new EventComponent(); 55 56 if (parent != null) { 59 addChild(context, descriptor, parent, eventComp); 60 } 61 62 setOptions(context, descriptor, eventComp); 64 65 return eventComp; 67 } 68 } 69 | Popular Tags |