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.ImageComponent; 29 30 import javax.faces.component.UIComponent; 31 import javax.faces.context.FacesContext; 32 33 34 41 public class ImageComponentFactory extends ComponentFactoryBase { 42 43 57 public UIComponent create(FacesContext context, LayoutComponent descriptor, UIComponent parent) { 58 ImageComponent image = new ImageComponent(); 60 61 if (parent != null) { 64 addChild(context, descriptor, parent, image); 65 } 66 67 setOptions(context, descriptor, image); 69 70 return image; 72 } 73 } 74 | Popular Tags |