public class TreeNode extends TreeFamily
UIComponent that represents a single tree node within a parent
Tree component. Within this component, the var attribute of the parent Tree
component will expose the tree node. Each of its children is processed by TreeNodeItem.
The level attribute can be used to specify for which tree node level as obtained by
TreeModel.getLevel() this component should render the children by TreeNodeItem. The root tree node
has level 0.
Tree,
TreeNodeItem| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_TYPE
The standard component type.
|
COMPONENT_FAMILYBEANINFO_KEY, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY| Constructor and Description |
|---|
TreeNode() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getLevel()
Returns the level for which this node should render the items.
|
void |
setLevel(Integer level)
Sets the level for which this node should render the items.
|
encodeChildren, getFamily, getRendersChildren, processDecodes, processUpdates, processValidatorsaddClientBehavior, broadcast, clearInitialState, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBindingencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getValueExpression, initialStateMarked, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent, visitTreepublic static final String COMPONENT_TYPE
public Integer getLevel()
public void setLevel(Integer level)
level - The level for which this node should render the items.