public class HtmlTree extends UITreeData
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
COMPONENT_FAMILY| Constructor and Description |
|---|
HtmlTree()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
javax.faces.component.UICommand |
getExpandControl()
Gets the expand/collapse control that can be used to handle expand/collapse nodes.
|
boolean |
isNodeSelected()
Indicates whether or not the current
TreeNode is selected. |
protected void |
processChildNodes(javax.faces.context.FacesContext context,
TreeNode parentNode,
int processAction)
Indicates whether or not the current
TreeNode is expanded. |
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state) |
java.lang.Object |
saveState(javax.faces.context.FacesContext context) |
void |
setNodeId(java.lang.String nodeId) |
void |
setNodeSelected(javax.faces.event.ActionEvent event)
Implements the
ActionListener interface. |
void |
setVarNodeToggler(java.lang.String varNodeToggler) |
broadcast, collapsePath, encodeBegin, expandAll, expandPath, getClientId, getDataModel, getFamily, getNode, getNodeId, getPathInformation, getValue, getVar, isLastChild, isNodeExpanded, processDecodes, processUpdates, processValidators, queueEvent, setValue, setValueBinding, setVar, toggleExpandedaddFacesListener, decode, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransientpublic static final java.lang.String COMPONENT_TYPE
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState in interface javax.faces.component.StateHoldersaveState in class UITreeDatapublic void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
restoreState in interface javax.faces.component.StateHolderrestoreState in class UITreeDatapublic void setNodeId(java.lang.String nodeId)
setNodeId in class UITreeDatapublic javax.faces.component.UICommand getExpandControl()
public void setVarNodeToggler(java.lang.String varNodeToggler)
protected void processChildNodes(javax.faces.context.FacesContext context,
TreeNode parentNode,
int processAction)
TreeNode is expanded.processChildNodes in class UITreeDatacontext - FacesContextparentNode - The parent node whose children are to be processedprocessAction - An int representing the type of action to processpublic void setNodeSelected(javax.faces.event.ActionEvent event)
ActionListener interface. Basically, this
method is used to listen for node selection events (when a user has clicked on a
leaf node.)event - ActionEventpublic boolean isNodeSelected()
TreeNode is selected.