| com.sun.jbi.jsf.util.JBITreeAdaptor
JBITreeAdaptor | public class JBITreeAdaptor extends TreeAdaptorBase (Code) | | The JBITreeAdaptor implementation must have a
public static JBITreeAdaptor getInstance(FacesContext,
LayoutComponent, UIComponent) method in order to get access to
an instance of the JBITreeAdaptor instance.
This class is used by DynamicTreeNodeFactory .
|
Constructor Summary | |
protected | JBITreeAdaptor(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 JBITreeAdaptor
instance. | public void | init() This method is called shortly after
JBITreeAdaptor.getInstance(FacesContext,LayoutComponent,UIComponent) . | void | setProperty(Map props, String key, Object value) |
JBITreeAdaptor | protected JBITreeAdaptor(LayoutComponent desc, UIComponent parent)(Code) | | This constructor saves the LayoutComponent descriptor
and the UIComponent associated with this
TreeAdaptor . This constructor is used by the
getInstance() method.
|
getChildTreeNodeObjects | public List getChildTreeNodeObjects(Object nodeObject)(Code) | | 2/13/2007
Returns child TreeNode s for the given
TreeNode model Object.
|
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. |
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.
|
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.
|
getId | public String getId(Object nodeObject)(Code) | | This method returns the id for the given tree node
model object.
|
getInstance | public static TreeAdaptor getInstance(FacesContext ctx, LayoutComponent desc, UIComponent parent)(Code) | | This method provides access to an JBITreeAdaptor
instance. Each time it is invoked, it returns a new instance.
|
setProperty | void setProperty(Map props, String key, Object value)(Code) | | Helper method for setting Properties while avoiding NPE's.
|
|
|