Class NavNodeContainerFactory
java.lang.Object
com.sun.jsftemplating.component.factory.ComponentFactoryBase
org.glassfish.admingui.common.factories.NavNodeContainerFactory
- All Implemented Interfaces:
com.sun.jsftemplating.component.factory.ComponentFactory
public class NavNodeContainerFactory
extends com.sun.jsftemplating.component.factory.ComponentFactoryBase
The NavigationFactory provides an abstraction layer for the Woodstock tree
component (currently), giving us the ability to change the tree implementation to
another component or set, or a different component type altogether. The supported
attributes are:
- id
- label - The text label for the top of the tree
- url - An optional URL
- icon - The URL to an image for the tree's root icon
- target
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringTheUIComponenttype that must be registered in thefaces-config.xmlfile mapping to the UIComponent class to use for thisUIComponent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.faces.component.UIComponentcreate(jakarta.faces.context.FacesContext context, com.sun.jsftemplating.layout.descriptors.LayoutComponent descriptor, jakarta.faces.component.UIComponent parent) This is the factory method responsible for creating theUIComponent.Methods inherited from class com.sun.jsftemplating.component.factory.ComponentFactoryBase
addChild, createComponent, getExtraInfo, setExtraInfo, setOption, setOptions, storeInstanceHandlers
-
Field Details
-
COMPONENT_TYPE
The
UIComponenttype that must be registered in thefaces-config.xmlfile mapping to the UIComponent class to use for thisUIComponent.- See Also:
-
-
Constructor Details
-
NavNodeContainerFactory
public NavNodeContainerFactory()
-
-
Method Details
-
create
public jakarta.faces.component.UIComponent create(jakarta.faces.context.FacesContext context, com.sun.jsftemplating.layout.descriptors.LayoutComponent descriptor, jakarta.faces.component.UIComponent parent) This is the factory method responsible for creating the
UIComponent.- Specified by:
createin interfacecom.sun.jsftemplating.component.factory.ComponentFactory- Specified by:
createin classcom.sun.jsftemplating.component.factory.ComponentFactoryBase- Parameters:
context- TheFacesContextdescriptor- TheLayoutComponentdescriptor associated with the requestedUIComponent.parent- The parentUIComponent- Returns:
- The newly created
Tree.
-