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.Button; 29 30 import javax.faces.component.UIComponent; 31 import javax.faces.context.FacesContext; 32 33 34 40 public class ButtonFactory extends ComponentFactoryBase { 41 42 53 public UIComponent create(FacesContext context, LayoutComponent descriptor, UIComponent parent) { 54 Button button = new Button(); 56 button.setPrimary(true); 57 58 if (parent != null) { 61 addChild(context, descriptor, parent, button); 62 } 63 64 setOptions(context, descriptor, button); 66 67 return button; 69 70 } 71 72 } 73 | Popular Tags |