public class UITree extends UIComponentBase
Modifier and Type | Class and Description |
---|---|
static class |
UITree.TreeNode
Inner class representing a node in the tree
|
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_TYPE |
static String |
DEFAULT_RENDERER |
protected String |
nodeCollapsedCallback |
protected String |
nodeCollapsedUrl |
protected String |
nodeExpandedCallback |
protected String |
nodeSelectedCallback |
protected String |
retrieveChildrenUrl |
protected List<UITree.TreeNode> |
rootNodes |
Constructor and Description |
---|
UITree() |
Modifier and Type | Method and Description |
---|---|
String |
getFamily() |
String |
getNodeCollapsedCallback()
Returns the Javascript function name to be used for node collapsed event
|
String |
getNodeCollapsedUrl()
Returns the URL to use for the AJAX call to inform the server
that a node has been collapsed
|
String |
getNodeExpandedCallback()
Returns the Javascript function name to be used for node expanded event
|
String |
getNodeSelectedCallback()
Returns the Javascript function name to be used for node selected event
|
String |
getRetrieveChildrenUrl()
Returns the URL to use for the AJAX call to retrieve the child nodea
|
List<UITree.TreeNode> |
getRootNodes()
Get the root nodes for the tree
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setNodeCollapsedCallback(String nodeCollapsedCallback)
Sets the name of the Javascript function to use for the node collapsed event
|
void |
setNodeCollapsedUrl(String nodeCollapsedUrl)
Sets the AJAX URL to use to inform the server that a node
has been collapsed
|
void |
setNodeExpandedCallback(String nodeExpandedCallback)
Sets the name of the Javascript function to use for the expanded event
|
void |
setNodeSelectedCallback(String nodeSelectedCallback)
Sets the name of the Javascript function to use for the node selected event
|
void |
setRetrieveChildrenUrl(String retrieveChildrenUrl)
Sets the AJAX URL to use to retrive child nodes
|
void |
setRootNodes(List<UITree.TreeNode> rootNodes)
Set the root nodes for the tree to show
|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
public static final String COMPONENT_TYPE
public static final String DEFAULT_RENDERER
protected List<UITree.TreeNode> rootNodes
protected String retrieveChildrenUrl
protected String nodeCollapsedUrl
protected String nodeExpandedCallback
protected String nodeCollapsedCallback
protected String nodeSelectedCallback
public String getFamily()
getFamily
in class UIComponent
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
public List<UITree.TreeNode> getRootNodes()
public void setRootNodes(List<UITree.TreeNode> rootNodes)
rootNodes
- The list of node for the treepublic String getNodeCollapsedCallback()
public void setNodeCollapsedCallback(String nodeCollapsedCallback)
nodeCollapsedCallback
- The Javascript function to use for the node collapsed eventpublic String getNodeExpandedCallback()
public void setNodeExpandedCallback(String nodeExpandedCallback)
nodeExpandedCallback
- The Javascript function to use for the expanded eventpublic String getNodeSelectedCallback()
public void setNodeSelectedCallback(String nodeSelectedCallback)
nodeSelectedCallback
- The Javascript function to use for the node selected eventpublic String getRetrieveChildrenUrl()
public void setRetrieveChildrenUrl(String retrieveChildrenUrl)
retrieveChildrenUrl
- The AJAX URL to usepublic String getNodeCollapsedUrl()
public void setNodeCollapsedUrl(String nodeCollapsedUrl)
nodeCollapsedUrl
- The AJAX URL to useCopyright © 2005–2017 Alfresco Software. All rights reserved.