|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.alfresco.web.ui.repo.component.UITree
public class UITree
JSF component that renders an AJAX based tree for browsing the repository.
Nested Class Summary | |
---|---|
static class |
UITree.TreeNode
Inner class representing a node in the tree |
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_TYPE
|
static java.lang.String |
DEFAULT_RENDERER
|
protected java.lang.String |
nodeCollapsedCallback
|
protected java.lang.String |
nodeCollapsedUrl
|
protected java.lang.String |
nodeExpandedCallback
|
protected java.lang.String |
nodeSelectedCallback
|
protected java.lang.String |
retrieveChildrenUrl
|
protected java.util.List |
rootNodes
|
Constructor Summary | |
---|---|
UITree()
|
Method Summary | |
---|---|
java.lang.String |
getFamily()
|
java.lang.String |
getNodeCollapsedCallback()
Returns the Javascript function name to be used for node collapsed event |
java.lang.String |
getNodeCollapsedUrl()
Returns the URL to use for the AJAX call to inform the server that a node has been collapsed |
java.lang.String |
getNodeExpandedCallback()
Returns the Javascript function name to be used for node expanded event |
java.lang.String |
getNodeSelectedCallback()
Returns the Javascript function name to be used for node selected event |
java.lang.String |
getRetrieveChildrenUrl()
Returns the URL to use for the AJAX call to retrieve the child nodea |
java.util.List |
getRootNodes()
Get the root nodes for the tree |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setNodeCollapsedCallback(java.lang.String nodeCollapsedCallback)
Sets the name of the Javascript function to use for the node collapsed event |
void |
setNodeCollapsedUrl(java.lang.String nodeCollapsedUrl)
Sets the AJAX URL to use to inform the server that a node has been collapsed |
void |
setNodeExpandedCallback(java.lang.String nodeExpandedCallback)
Sets the name of the Javascript function to use for the expanded event |
void |
setNodeSelectedCallback(java.lang.String nodeSelectedCallback)
Sets the name of the Javascript function to use for the node selected event |
void |
setRetrieveChildrenUrl(java.lang.String retrieveChildrenUrl)
Sets the AJAX URL to use to retrive child nodes |
void |
setRootNodes(java.util.List rootNodes)
Set the root nodes for the tree to show |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COMPONENT_TYPE
public static final java.lang.String DEFAULT_RENDERER
protected java.util.List rootNodes
protected java.lang.String retrieveChildrenUrl
protected java.lang.String nodeCollapsedUrl
protected java.lang.String nodeExpandedCallback
protected java.lang.String nodeCollapsedCallback
protected java.lang.String nodeSelectedCallback
Constructor Detail |
---|
public UITree()
Method Detail |
---|
public java.lang.String getFamily()
getFamily
in class javax.faces.component.UIComponent
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
restoreState
in class javax.faces.component.UIComponentBase
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
saveState
in class javax.faces.component.UIComponentBase
public java.util.List getRootNodes()
public void setRootNodes(java.util.List rootNodes)
rootNodes
- The list of node for the treepublic java.lang.String getNodeCollapsedCallback()
public void setNodeCollapsedCallback(java.lang.String nodeCollapsedCallback)
nodeCollapsedCallback
- The Javascript function to use for the node collapsed eventpublic java.lang.String getNodeExpandedCallback()
public void setNodeExpandedCallback(java.lang.String nodeExpandedCallback)
nodeExpandedCallback
- The Javascript function to use for the expanded eventpublic java.lang.String getNodeSelectedCallback()
public void setNodeSelectedCallback(java.lang.String nodeSelectedCallback)
nodeSelectedCallback
- The Javascript function to use for the node selected eventpublic java.lang.String getRetrieveChildrenUrl()
public void setRetrieveChildrenUrl(java.lang.String retrieveChildrenUrl)
retrieveChildrenUrl
- The AJAX URL to usepublic java.lang.String getNodeCollapsedUrl()
public void setNodeCollapsedUrl(java.lang.String nodeCollapsedUrl)
nodeCollapsedUrl
- The AJAX URL to use
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |