org.glassfish.admingui.common.factories
Class NavigationNodeFactory

java.lang.Object
  extended by com.sun.jsftemplating.component.factory.ComponentFactoryBase
      extended by org.glassfish.admingui.common.factories.NavigationNodeFactory
All Implemented Interfaces:
com.sun.jsftemplating.component.factory.ComponentFactory

public class NavigationNodeFactory
extends com.sun.jsftemplating.component.factory.ComponentFactoryBase

The NavigationNodeFactory provides an abstraction layer for the a tree node component, currently implemented as a Woodstock treeNode component. This provides the ability to change the treeNode implementation to another component or set, or a different component type altogether. The supported attributes are:

Author:
Jason Lee, Ken Paulsen (ken.paulsen@sun.com)

Field Summary
static String COMPONENT_TYPE
           The UIComponent type that must be registered in the faces-config.xml file mapping to the UIComponent class to use for this UIComponent.
static String REAL_URL
           The attribute name on the TreeNode component that contains the real URL of the content in which to include.
 
Constructor Summary
NavigationNodeFactory()
           
 
Method Summary
protected  void applyOption(javax.faces.context.FacesContext context, javax.faces.component.UIComponent comp, com.sun.jsftemplating.layout.descriptors.LayoutComponent lc, String name, Object value)
           
 javax.faces.component.UIComponent create(javax.faces.context.FacesContext context, com.sun.jsftemplating.layout.descriptors.LayoutComponent descriptor, javax.faces.component.UIComponent parent)
           This is the factory method responsible for creating the UIComponent.
 
Methods inherited from class com.sun.jsftemplating.component.factory.ComponentFactoryBase
addChild, createComponent, getExtraInfo, setExtraInfo, setOption, setOptions, storeInstanceHandlers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final String COMPONENT_TYPE

The UIComponent type that must be registered in the faces-config.xml file mapping to the UIComponent class to use for this UIComponent.

See Also:
Constant Field Values

REAL_URL

public static final String REAL_URL

The attribute name on the TreeNode component that contains the real URL of the content in which to include. This is only used if the user wishes to take advantage of the admin console templating to add the header and navigation content to their page.

See Also:
Constant Field Values
Constructor Detail

NavigationNodeFactory

public NavigationNodeFactory()
Method Detail

create

public javax.faces.component.UIComponent create(javax.faces.context.FacesContext context,
                                                com.sun.jsftemplating.layout.descriptors.LayoutComponent descriptor,
                                                javax.faces.component.UIComponent parent)

This is the factory method responsible for creating the UIComponent.

Specified by:
create in interface com.sun.jsftemplating.component.factory.ComponentFactory
Specified by:
create in class com.sun.jsftemplating.component.factory.ComponentFactoryBase
Parameters:
context - The FacesContext.
descriptor - The LayoutComponent descriptor associated. with the requested UIComponent.
parent - The parent UIComponent.
Returns:
The newly created TreeNode.

applyOption

protected void applyOption(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent comp,
                           com.sun.jsftemplating.layout.descriptors.LayoutComponent lc,
                           String name,
                           Object value)


Copyright © 2012. All Rights Reserved.