public class TreeNodeItem extends TreeFamily
The <o:treeNodeItem>
is an UIComponent
that represents a single child tree node within a
parent TreeNode
component. Within this component, the var
attribute of the parent Tree
component will expose the child tree node.
This component allows a child component of type TreeInsertChildren
which indicates the place to insert
the children of the current child tree node recursively by a TreeNode
component associated with the
children's level in the same parent Tree
component.
TreeNode
,
TreeInsertChildren
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_TYPE
The standard component type.
|
COMPONENT_FAMILY
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
Constructor and Description |
---|
TreeNodeItem() |
Modifier and Type | Method and Description |
---|---|
void |
encodeAll(FacesContext context)
Suppress default behavior of
encodeAll(FacesContext) (which also checks UIComponentBase.isRendered() ) by
delegating directly to TreeFamily.encodeChildren(FacesContext) . |
protected void |
process(FacesContext context,
PhaseId phaseId)
Loop over children of the current model node, set the child as the current model node and continue processing
this component according to the rules of the given phase ID.
|
protected void |
validateHierarchy()
Validate the component hierarchy.
|
boolean |
visitTree(VisitContext context,
VisitCallback callback)
Loop over children of the current model node, set the child as the current model node and continue visiting
this component according to the given visit context and callback.
|
encodeChildren, getFamily, getRendersChildren, processDecodes, processSuper, processUpdates, processValidators
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
public static final String COMPONENT_TYPE
protected void validateHierarchy()
validateHierarchy
in class TreeFamily
IllegalStateException
- When there is no parent of type TreeNode
, or when this component is
nested in another TreeNodeItem
.public void encodeAll(FacesContext context) throws IOException
encodeAll(FacesContext)
(which also checks UIComponentBase.isRendered()
) by
delegating directly to TreeFamily.encodeChildren(FacesContext)
.encodeAll
in class UIComponent
IOException
protected void process(FacesContext context, PhaseId phaseId)
process
in class TreeFamily
context
- The faces context to work with.phaseId
- The current phase ID.Tree.setCurrentModelNode(FacesContext, TreeModel)
public boolean visitTree(VisitContext context, VisitCallback callback)
visitTree
in class UIComponent
context
- The visit context to work with.callback
- The visit callback to work with.Tree.setCurrentModelNode(FacesContext, TreeModel)
Copyright © 2012–2020 OmniFaces. All rights reserved.