java.lang.Object
jakarta.faces.component.UIComponent
jakarta.faces.component.UIComponentBase
org.omnifaces.component.tree.TreeFamily
- All Implemented Interfaces:
PartialStateHolder,StateHolder,TransientStateHolder,ComponentSystemEventListener,FacesListener,SystemEventListenerHolder,EventListener
- Direct Known Subclasses:
Tree,TreeInsertChildren,TreeNode,TreeNodeItem
Base class which is to be shared between all components of the Tree family.
- Author:
- Bauke Scholtz
-
Field Summary
FieldsFields inherited from class jakarta.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, FACETS_KEY, VIEW_LOCATION_KEY -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThe base constructor sets the renderer type tonullas the components of the Tree family does not render anything by themselves. -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeChildren(FacesContext context) CallsvalidateHierarchy(FacesContext)when project stage isDevelopmentand then callsprocess(FacesContext, PhaseId)withPhaseId.RENDER_RESPONSE.ReturnsCOMPONENT_FAMILY.booleanReturnstrue.protected abstract voidprocess(FacesContext context, PhaseId phaseId) Process the component according to the rules of the given phase ID.voidprocessDecodes(FacesContext context) protected voidprocessSuper(FacesContext context, PhaseId phaseId) Helper method to delegate the processing further to theUIComponentBasesuperclass which will handle all children.voidprocessUpdates(FacesContext context) voidprocessValidators(FacesContext context) protected abstract voidvalidateHierarchy(FacesContext context) Validate the component hierarchy.Methods inherited from class jakarta.faces.component.UIComponentBase
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeAll, encodeBegin, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getPassThroughAttributes, getRenderer, getRendererType, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, visitTreeMethods inherited from class jakarta.faces.component.UIComponent
getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
-
Field Details
-
COMPONENT_FAMILY
The standard component family.- See Also:
-
-
Constructor Details
-
TreeFamily
protected TreeFamily()The base constructor sets the renderer type tonullas the components of the Tree family does not render anything by themselves.
-
-
Method Details
-
getFamily
ReturnsCOMPONENT_FAMILY.- Specified by:
getFamilyin classUIComponent
-
getRendersChildren
public boolean getRendersChildren()Returnstrue.- Overrides:
getRendersChildrenin classUIComponentBase
-
processDecodes
- Overrides:
processDecodesin classUIComponentBase
-
processValidators
- Overrides:
processValidatorsin classUIComponentBase
-
processUpdates
- Overrides:
processUpdatesin classUIComponentBase
-
encodeChildren
CallsvalidateHierarchy(FacesContext)when project stage isDevelopmentand then callsprocess(FacesContext, PhaseId)withPhaseId.RENDER_RESPONSE.- Overrides:
encodeChildrenin classUIComponentBase- Throws:
IOException
-
validateHierarchy
Validate the component hierarchy. This should only be called when project stage isDevelopment.- Parameters:
context- The faces context to work with.- Throws:
IllegalStateException- When component hierarchy is wrong.- Since:
- 4.6
-
process
Process the component according to the rules of the given phase ID.- Parameters:
context- The faces context to work with.phaseId- The current phase ID.
-
processSuper
Helper method to delegate the processing further to theUIComponentBasesuperclass which will handle all children.- Parameters:
context- The faces context to work with.phaseId- The current phase ID.
-