- java.lang.Object
-
- jakarta.faces.component.UIComponent
-
- jakarta.faces.component.UIComponentBase
-
- org.omnifaces.component.tree.TreeFamily
-
- org.omnifaces.component.tree.TreeInsertChildren
-
- All Implemented Interfaces:
PartialStateHolder
,StateHolder
,TransientStateHolder
,ComponentSystemEventListener
,FacesListener
,SystemEventListenerHolder
,EventListener
public class TreeInsertChildren extends TreeFamily
The
<o:treeInsertChildren>
is anUIComponent
that represents the insertion point for the children of a parent tree node which is represented byTreeNodeItem
.This component does not allow any children.
- Author:
- Bauke Scholtz
- See Also:
TreeNodeItem
-
-
Field Summary
Fields Modifier and Type Field Description static String
COMPONENT_TYPE
The component type, which is "org.omnifaces.component.tree.TreeInsertChildren".-
Fields inherited from class org.omnifaces.component.tree.TreeFamily
COMPONENT_FAMILY
-
Fields inherited from class jakarta.faces.component.UIComponent
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 Summary
Constructors Constructor Description TreeInsertChildren()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
process(FacesContext context, PhaseId phaseId)
Delegate processing of the tree node toTree.processTreeNode(FacesContext, PhaseId)
.protected void
validateHierarchy()
Validate the component hierarchy.boolean
visitTree(VisitContext context, VisitCallback callback)
Delegate visiting of the tree node toTree.visitTreeNode(VisitContext, VisitCallback)
.-
Methods inherited from class org.omnifaces.component.tree.TreeFamily
encodeChildren, getFamily, getRendersChildren, processDecodes, processSuper, processUpdates, processValidators
-
Methods inherited from class jakarta.faces.component.UIComponentBase
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
-
Methods inherited from class jakarta.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression
-
-
-
-
Field Detail
-
COMPONENT_TYPE
public static final String COMPONENT_TYPE
The component type, which is "org.omnifaces.component.tree.TreeInsertChildren".- See Also:
- Constant Field Values
-
-
Method Detail
-
validateHierarchy
protected void validateHierarchy()
Validate the component hierarchy.- Specified by:
validateHierarchy
in classTreeFamily
- Throws:
IllegalStateException
- When there is no parent of typeTreeNodeItem
, or when there are any children.
-
process
protected void process(FacesContext context, PhaseId phaseId)
Delegate processing of the tree node toTree.processTreeNode(FacesContext, PhaseId)
.- Specified by:
process
in classTreeFamily
- Parameters:
context
- The faces context to work with.phaseId
- The current phase ID.- See Also:
Tree.processTreeNode(FacesContext, PhaseId)
-
visitTree
public boolean visitTree(VisitContext context, VisitCallback callback)
Delegate visiting of the tree node toTree.visitTreeNode(VisitContext, VisitCallback)
.- Overrides:
visitTree
in classUIComponent
- See Also:
Tree.visitTreeNode(VisitContext, VisitCallback)
-
-