| com.sun.jbi.jsf.util.JBITreeAdaptorImpl
JBITreeAdaptorImpl | public class JBITreeAdaptorImpl extends TreeAdaptorBase implements TreeAdaptor(Code) | |
The JBITreeAdaptorImpl implementation must have a
public static JBITreeAdaptorImpl getInstance(FacesContext,
LayoutComponent, UIComponent) method in order to get access to an
instance of the JBITreeAdaptorImpl instance.
This class is used by DynamicTreeNodeFactory .
author: Sun Microsystems Inc. |
Constructor Summary | |
public | JBITreeAdaptorImpl() | public | JBITreeAdaptorImpl(LayoutComponent desc, UIComponent parent)
This constructor saves the LayoutComponent descriptor and
the UIComponent associated with this TreeAdaptor
. |
Method Summary | |
public List | getChildTreeNodeObjects(Object nodeObject) | public Map<String, UIComponent> | getFacets(UIComponent comp, Object nodeObject)
This method returns any facets that should be applied to the TreeNode (comp)
. | public Map<String, Object> | getFactoryOptions(Object nodeObject) | public Map | getHandlersByType(UIComponent comp, Object nodeObject)
Advanced framework feature which provides better handling for things
such as expanding TreeNodes, beforeEncode, and other events.
This method should return a Map of List of
Handler objects. | public String | getId(Object nodeObject) | public static TreeAdaptor | getInstance(FacesContext ctx, LayoutComponent desc, UIComponent parent)
This method provides access to an JBITreeAdaptorImpl
instance. | public void | init()
This method is called shortly after
JBITreeAdaptorImpl.getInstance(FacesContext,LayoutComponent,UIComponent) . | void | setProperty(Map props, String key, Object value) |
JBITreeAdaptorImpl | public JBITreeAdaptorImpl()(Code) | |
This constructor is by the wrapper. JBITreeAdaptorWrapper
|
JBITreeAdaptorImpl | public JBITreeAdaptorImpl(LayoutComponent desc, UIComponent parent)(Code) | |
This constructor saves the LayoutComponent descriptor and
the UIComponent associated with this TreeAdaptor
. This constructor is used by the JBITreeAdaptorWrapper constructor.
Parameters: desc - Description of Parameter Parameters: parent - Description of Parameter |
getChildTreeNodeObjects | public List getChildTreeNodeObjects(Object nodeObject)(Code) | | 2/13/2007
Returns child TreeNode s for the given TreeNode
model Object.
Parameters: nodeObject - Description of Parameter The ChildTreeNodeObjects value |
getFacets | public Map<String, UIComponent> getFacets(UIComponent comp, Object nodeObject)(Code) | |
This method returns any facets that should be applied to the TreeNode (comp)
. Useful facets for the sun TreeNode component are:
"content" and "image".
Facets that already exist on comp , or facets that are
directly added to comp do not need to be returned from
this method.
This implementation directly adds a "content" facet and returns null
from this method.
Parameters: comp - The tree node UIComponent . Parameters: nodeObject - The (model) object representing the tree node. The Facets value |
getFactoryOptions | public Map<String, Object> getFactoryOptions(Object nodeObject)(Code) | |
This method returns the "options" that should be supplied to the
factory that creates the TreeNode for the given tree node
model object.
Some useful options for the standard TreeNode component
include:
- text
- url
- imageURL
- target
- action
-
- actionListener
- expanded
See Tree / TreeNode component documentation for more details.
Parameters: nodeObject - Description of Parameter The FactoryOptions value |
getHandlersByType | public Map getHandlersByType(UIComponent comp, Object nodeObject)(Code) | |
Advanced framework feature which provides better handling for things
such as expanding TreeNodes, beforeEncode, and other events.
This method should return a Map of List of
Handler objects. Each List in the Map
should be registered under a key that cooresponds to to the "event" in
which the Handler s should be invoked.
Parameters: comp - Description of Parameter Parameters: nodeObject - Description of Parameter The HandlersByType value |
getId | public String getId(Object nodeObject)(Code) | |
This method returns the id for the given tree node model
object.
Parameters: nodeObject - Description of Parameter The Id value |
getInstance | public static TreeAdaptor getInstance(FacesContext ctx, LayoutComponent desc, UIComponent parent)(Code) | |
This method provides access to an JBITreeAdaptorImpl
instance. Each time it is invoked, it returns a new instance.
Parameters: ctx - Description of Parameter Parameters: desc - Description of Parameter Parameters: parent - Description of Parameter The Instance value |
setProperty | void setProperty(Map props, String key, Object value)(Code) | |
Helper method for setting Properties while avoiding NPE's.
Parameters: props - The new Property value Parameters: key - The new Property value Parameters: value - The new Property value |
|
|