public class UIXSwitcher extends UIXComponentBase implements FlattenedComponent
Type | Phases | Description |
---|---|---|
org.apache.myfaces.trinidad.event.AttributeChangeEvent |
Invoke Application Apply Request Values |
Event delivered to describe an attribute change. Attribute change events are not delivered for any programmatic change to a property. They are only delivered when a renderer changes a property without the application's specific request. An example of an attribute change events might include the width of a column that supported client-side resizing. |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
static PropertyKey |
DEFAULT_FACET_KEY |
static PropertyKey |
FACET_NAME_KEY |
static FacesBean.Type |
TYPE |
BINDING_KEY, ID_KEY, RENDERED_KEY, RENDERER_TYPE_KEY, TRANSIENT_KEY
Modifier | Constructor and Description |
---|---|
|
UIXSwitcher()
Construct an instance of the UIXSwitcher.
|
protected |
UIXSwitcher(String rendererType)
Construct an instance of the UIXSwitcher.
|
Modifier and Type | Method and Description |
---|---|
void |
encodeChildren(javax.faces.context.FacesContext context)
Only render the currently active facet.
|
protected FacesBean.Type |
getBeanType() |
String |
getDefaultFacet()
Gets the name of the facet to render and process if "facetName"
is null or otherwise does not refer to an existing facet.
|
String |
getFacetName()
Gets the name of the facet to render and process.
|
String |
getFamily() |
boolean |
getRendersChildren()
Override to return true.
|
boolean |
isFlatteningChildren(javax.faces.context.FacesContext context)
Returns
true if this FlattenedComponent is currently flattening its children |
void |
processDecodes(javax.faces.context.FacesContext context)
Only decode the currently active facet.
|
<S> boolean |
processFlattenedChildren(javax.faces.context.FacesContext context,
ComponentProcessingContext cpContext,
ComponentProcessor<S> childProcessor,
S callbackContext)
Processes the selected switcher facet
|
void |
processUpdates(javax.faces.context.FacesContext context)
Only process updates on the currently active facet.
|
void |
processValidators(javax.faces.context.FacesContext context)
Only process validations on the currently active facet.
|
void |
setDefaultFacet(String defaultFacet)
Sets the name of the facet to render and process if "facetName"
is null or otherwise does not refer to an existing facet.
|
void |
setFacetName(String facetName)
Sets the name of the facet to render and process.
|
protected boolean |
visitChildren(VisitContext visitContext,
VisitCallback callback)
Hook for subclasses to override the manner in which the component's children are visited.
|
adaptMethodBinding, addAttributeChange, addAttributeChangeListener, addFacesListener, broadcast, broadcastToMethodBinding, broadcastToMethodExpression, createFacesBean, decode, decodeChildren, decodeChildrenImpl, encodeBegin, encodeEnd, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getContainerClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getParent, getProperty, getPropertyKey, getRenderer, getRendererType, getValueBinding, getValueExpression, invokeOnChildrenComponents, invokeOnComponent, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, processRestoreState, processSaveState, queueEvent, removeAttributeChangeListener, removeFacesListener, restoreState, satisfiesPartialTrigger, saveState, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression, toString, updateChildren, updateChildrenImpl, validateChildren, validateChildrenImpl
addPartialTarget, clearCachedClientIds, clearCachedClientIds, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setupChildrenVisitingContext, setupEncodingContext, setUpEncodingContext, setupVisitingContext, tearDownChildrenVisitingContext, tearDownEncodingContext, tearDownVisitingContext, visitTree, visitTree
public static final FacesBean.Type TYPE
public static final PropertyKey FACET_NAME_KEY
public static final PropertyKey DEFAULT_FACET_KEY
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public UIXSwitcher()
protected UIXSwitcher(String rendererType)
public void processDecodes(javax.faces.context.FacesContext context)
processDecodes
in class UIXComponentBase
public void processValidators(javax.faces.context.FacesContext context)
processValidators
in class UIXComponentBase
public void processUpdates(javax.faces.context.FacesContext context)
processUpdates
in class UIXComponentBase
public <S> boolean processFlattenedChildren(javax.faces.context.FacesContext context, ComponentProcessingContext cpContext, ComponentProcessor<S> childProcessor, S callbackContext) throws IOException
processFlattenedChildren
in interface FlattenedComponent
context
- Current FacesContextcpContext
- ComponentProcesingContext represetning the current child iteration statechildProcessor
- ComponentProcessor to call for each flattened childcallbackContext
- childProcessor-specific context to be passed on each call to the
childProcessortrue
if this FlattenedComponent actually processed any childrenIOException
- if an error occurs while processing childrenUIXComponent.processFlattenedChildren(FacesContext, ComponentProcessingContext, ComponentProcessor, UIComponent, Object)
,
UIXComponent.processFlattenedChildren(FacesContext, ComponentProcessingContext, ComponentProcessor, Iterable, Object)
,
FlattenedComponent.isFlatteningChildren(javax.faces.context.FacesContext)
public boolean isFlatteningChildren(javax.faces.context.FacesContext context)
true
if this FlattenedComponent is currently flattening its childrenisFlatteningChildren
in interface FlattenedComponent
context
- FacesContexttrue
if this FlattenedComponent is currently flattening its childrenFlattenedComponent.processFlattenedChildren(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.component.ComponentProcessingContext, org.apache.myfaces.trinidad.component.ComponentProcessor<S>, S)
public void encodeChildren(javax.faces.context.FacesContext context) throws IOException
encodeChildren
in class UIXComponentBase
IOException
public boolean getRendersChildren()
getRendersChildren
in class UIXComponentBase
protected boolean visitChildren(VisitContext visitContext, VisitCallback callback)
UIXComponent
setupChildrenVisitingContext
will have been called before this method is
invoked and tearDownChildrenVisitingContext
will be called after.
respectively. If the purpose of this visit was to encode the component and the
component uses a CoreRenderer, the CoreRenderer's
setupChildrenEncodingContext
and tearDownChildrenEncodingContext
will be called before and after this method is invoked, respectively.visitChildren
in class UIXComponent
visitContext
- the VisitContext
for this visitcallback
- the VisitCallback
instancetrue
if the visit is complete.UIXComponent.setupChildrenVisitingContext(javax.faces.context.FacesContext)
,
UIXComponent.tearDownChildrenVisitingContext(javax.faces.context.FacesContext)
,
CoreRenderer.setupChildrenEncodingContext(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.context.RenderingContext, javax.faces.component.UIComponent)
,
CoreRenderer.tearDownChildrenEncodingContext(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.context.RenderingContext, javax.faces.component.UIComponent)
public final String getFacetName()
public final void setFacetName(String facetName)
facetName
- the new facetName valuepublic final String getDefaultFacet()
public final void setDefaultFacet(String defaultFacet)
defaultFacet
- the new defaultFacet valuepublic String getFamily()
getFamily
in class UIXComponentBase
protected FacesBean.Type getBeanType()
getBeanType
in class UIXComponentBase
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.