1 21 package com.sun.enterprise.tools.jsfext.component.factory.basic; 22 23 import com.sun.enterprise.tools.jsfext.component.factory.ComponentFactoryBase; 24 import com.sun.enterprise.tools.jsfext.layout.descriptor.LayoutComponent; 25 import com.sun.enterprise.tools.jsfext.component.PopupMenu; 26 27 import javax.faces.component.UIComponent; 28 import javax.faces.context.FacesContext; 29 30 31 38 public class PopupMenuFactory extends ComponentFactoryBase { 39 40 51 public UIComponent create(FacesContext context, LayoutComponent descriptor, UIComponent parent) { 52 PopupMenu popupMenu = new PopupMenu(); 54 55 if (parent != null) { 58 addChild(context, descriptor, parent, popupMenu); 59 } 60 61 setOptions(context, descriptor, popupMenu); 63 64 return popupMenu; 66 } 67 } 68 | Popular Tags |