public abstract class TreeFamily
extends javax.faces.component.UIComponentBase
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY
The standard component family.
|
Constructor and Description |
---|
TreeFamily()
The base constructor sets the renderer type to
null as the components of the Tree family does not
render anything by themselves. |
Modifier and Type | Method and Description |
---|---|
void |
encodeChildren(javax.faces.context.FacesContext context)
Calls
validateHierarchy() when project stage is Development and then
calls process(FacesContext, PhaseId) with PhaseId.RENDER_RESPONSE . |
String |
getFamily()
Returns
COMPONENT_FAMILY . |
boolean |
getRendersChildren()
Returns
true . |
protected abstract void |
process(javax.faces.context.FacesContext context,
javax.faces.event.PhaseId phaseId)
Process the component according to the rules of the given phase ID.
|
void |
processDecodes(javax.faces.context.FacesContext context)
Calls
process(FacesContext, PhaseId) with PhaseId.APPLY_REQUEST_VALUES . |
protected void |
processSuper(javax.faces.context.FacesContext context,
javax.faces.event.PhaseId phaseId)
Helper method to delegate the processing further to the
UIComponentBase superclass which will handle
all children. |
void |
processUpdates(javax.faces.context.FacesContext context)
Calls
process(FacesContext, PhaseId) with PhaseId.UPDATE_MODEL_VALUES . |
void |
processValidators(javax.faces.context.FacesContext context)
Calls
process(FacesContext, PhaseId) with PhaseId.PROCESS_VALIDATIONS . |
protected abstract void |
validateHierarchy()
Validate the component hierarchy.
|
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
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, visitTree
public static final String COMPONENT_FAMILY
public TreeFamily()
null
as the components of the Tree family does not
render anything by themselves.public String getFamily()
COMPONENT_FAMILY
.getFamily
in class javax.faces.component.UIComponent
public boolean getRendersChildren()
true
.getRendersChildren
in class javax.faces.component.UIComponentBase
public void processDecodes(javax.faces.context.FacesContext context)
process(FacesContext, PhaseId)
with PhaseId.APPLY_REQUEST_VALUES
.processDecodes
in class javax.faces.component.UIComponentBase
public void processValidators(javax.faces.context.FacesContext context)
process(FacesContext, PhaseId)
with PhaseId.PROCESS_VALIDATIONS
.processValidators
in class javax.faces.component.UIComponentBase
public void processUpdates(javax.faces.context.FacesContext context)
process(FacesContext, PhaseId)
with PhaseId.UPDATE_MODEL_VALUES
.processUpdates
in class javax.faces.component.UIComponentBase
public void encodeChildren(javax.faces.context.FacesContext context) throws IOException
validateHierarchy()
when project stage is Development
and then
calls process(FacesContext, PhaseId)
with PhaseId.RENDER_RESPONSE
.encodeChildren
in class javax.faces.component.UIComponentBase
IOException
protected abstract void validateHierarchy() throws IllegalStateException
Development
.IllegalStateException
- When component hierarchy is wrong.protected abstract void process(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
context
- The faces context to work with.phaseId
- The current phase ID.protected void processSuper(javax.faces.context.FacesContext context, javax.faces.event.PhaseId phaseId)
UIComponentBase
superclass which will handle
all children.context
- The faces context to work with.phaseId
- The current phase ID.Copyright © 2012–2017 OmniFaces. All rights reserved.