org.omnifaces.component.tree
Class TreeInsertChildren

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.omnifaces.component.tree.TreeFamily
              extended by org.omnifaces.component.tree.TreeInsertChildren
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.event.ComponentSystemEventListener, javax.faces.event.FacesListener, javax.faces.event.SystemEventListenerHolder

public class TreeInsertChildren
extends TreeFamily

TreeInsertChildren is an UIComponent that represents the insertion point for the children of a parent tree node which is represented by TreeNodeItem.

This component does not allow any children.

Author:
Bauke Scholtz
See Also:
TreeNodeItem

Field Summary
static java.lang.String COMPONENT_TYPE
          The standard component type.
 
Fields inherited from class org.omnifaces.component.tree.TreeFamily
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponent
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY
 
Constructor Summary
TreeInsertChildren()
           
 
Method Summary
protected  void process(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
          Delegate processing of the tree node to Tree.processTreeNode(FacesContext, PhaseId).
protected  void validateHierarchy()
          Validate the component hierarchy.
 boolean visitTree(javax.faces.component.visit.VisitContext context, javax.faces.component.visit.VisitCallback callback)
          Delegate visiting of the tree node to Tree.visitTreeNode(VisitContext, VisitCallback).
 
Methods inherited from class org.omnifaces.component.tree.TreeFamily
encodeChildren, getFamily, getRendersChildren, processDecodes, processSuper, processUpdates, processValidators
 
Methods inherited from class javax.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, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, setValueExpression, subscribeToEvent, unsubscribeFromEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
The standard component type.

See Also:
Constant Field Values
Constructor Detail

TreeInsertChildren

public TreeInsertChildren()
Method Detail

validateHierarchy

protected void validateHierarchy()
Validate the component hierarchy.

Specified by:
validateHierarchy in class TreeFamily
Throws:
java.lang.IllegalArgumentException - When there is no parent of type TreeNodeItem, or when there are any children.

process

protected void process(javax.faces.context.FacesContext context,
                       javax.faces.event.PhaseId phaseId)
Delegate processing of the tree node to Tree.processTreeNode(FacesContext, PhaseId).

Specified by:
process in class TreeFamily
Parameters:
context - The faces context to work with.
phaseId - The current phase ID.
See Also:
Tree.processTreeNode(FacesContext, PhaseId)

visitTree

public boolean visitTree(javax.faces.component.visit.VisitContext context,
                         javax.faces.component.visit.VisitCallback callback)
Delegate visiting of the tree node to Tree.visitTreeNode(VisitContext, VisitCallback).

Overrides:
visitTree in class javax.faces.component.UIComponent
See Also:
Tree.visitTreeNode(VisitContext, VisitCallback)