Skip navigation links
org.apache.myfaces.trinidad.component
Class UIXGroup
java.lang.Object
javax.faces.component.UIComponent
org.apache.myfaces.trinidad.component.UIXComponent
org.apache.myfaces.trinidad.component.UIXComponentBase
org.apache.myfaces.trinidad.component.UIXGroup
- All Implemented Interfaces:
- javax.faces.component.StateHolder, FlattenedComponent
-
public class UIXGroup
- extends UIXComponentBase
- implements FlattenedComponent
The group component is an invisible control that aggregates semantically-related children; the group itself has no associated client representation (visual or API). Some parent components may have special representation for groups like adding separators around the group but this is a special case and is not always rendered this way. In most cases, only the children of the group will be rendered directly to the page. There will be no layout applied to the children so the natural layout behavior of the underlying HTML elements will apply. If you require a more predictable layout, you should use a layout component such as panelGroupLayout.
Events:
| 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. |
| Fields inherited from class javax.faces.component.UIComponent |
bindings |
| Constructor Summary |
|
UIXGroup()
Construct an instance of the UIXGroup. |
protected |
UIXGroup(java.lang.String rendererType)
Construct an instance of the UIXGroup. |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponentBase |
adaptMethodBinding, addAttributeChange, addAttributeChangeListener, addComponentChange, addComponentChange, addComponentChangeFilter, addFacesListener, broadcast, broadcastToMethodBinding, broadcastToMethodExpression, createFacesBean, decode, decodeChildren, decodeChildrenImpl, encodeBegin, encodeEnd, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getComponentChangeFilters, getContainerClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getParent, getProperty, getPropertyKey, getRenderedFacetsAndChildren, getRenderer, getRendererType, getValueBinding, getValueExpression, invokeOnChildrenComponents, invokeOnComponent, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeAttributeChangeListener, removeComponentChangeFilter, removeFacesListener, restoreState, satisfiesPartialTrigger, saveState, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setValueBinding, setValueExpression, toString, updateChildren, updateChildrenImpl, validateChildren, validateChildrenImpl |
| Methods inherited from class org.apache.myfaces.trinidad.component.UIXComponent |
addPartialTarget, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setUpEncodingContext, setupVisitingContext, tearDownEncodingContext, tearDownVisitingContext, visitTree, visitTree |
| Methods inherited from class javax.faces.component.UIComponent |
encodeAll, getContainerClientId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final FacesBean.Type TYPE
COMPONENT_FAMILY
public static final java.lang.String COMPONENT_FAMILY
-
- See Also:
- Constant Field Values
COMPONENT_TYPE
public static final java.lang.String COMPONENT_TYPE
-
- See Also:
- Constant Field Values
UIXGroup
public UIXGroup()
- Construct an instance of the UIXGroup.
UIXGroup
protected UIXGroup(java.lang.String rendererType)
- Construct an instance of the UIXGroup.
getRendersChildren
public boolean getRendersChildren()
- Overridden to return true.
-
- Overrides:
getRendersChildren in class UIXComponentBase
-
- Returns:
- true because the children are rendered by this component
processFlattenedChildren
public <S> boolean processFlattenedChildren(javax.faces.context.FacesContext context,
ComponentProcessingContext cpContext,
ComponentProcessor<S> childProcessor,
S callBackContext)
throws java.io.IOException
- Sets up the grouping context and processes all of the UIXGroup's children
-
- Specified by:
processFlattenedChildren in interface FlattenedComponent
-
- Parameters:
context - Current FacesContext
cpContext - ComponentProcesingContext represetning the current child iteration state
childProcessor - ComponentProcessor to call for each flattened child
callBackContext - childProcessor-specific context to be passed on each call to the childProcessor
- Returns:
true if this FlattenedComponent actually processed any children
- Throws:
java.io.IOException - if an error occurs while processing children
- See Also:
UIXComponent.processFlattenedChildren(FacesContext, ComponentProcessingContext, ComponentProcessor, UIComponent, Object), UIXComponent.processFlattenedChildren(FacesContext, ComponentProcessingContext, ComponentProcessor, Iterable, Object), FlattenedComponent.isFlatteningChildren(javax.faces.context.FacesContext)
isFlatteningChildren
public boolean isFlatteningChildren(javax.faces.context.FacesContext context)
- Returns
true if this FlattenedComponent is currently flattening its children
-
- Specified by:
isFlatteningChildren in interface FlattenedComponent
-
- Parameters:
context - FacesContext
- Returns:
true if this FlattenedComponent is currently flattening its children
- See Also:
FlattenedComponent.processFlattenedChildren(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.component.ComponentProcessingContext, org.apache.myfaces.trinidad.component.ComponentProcessor, S)
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext context)
throws java.io.IOException
- Renders the children in their raw form. There is no Renderer for this component because it has no visual representation or any sort of layout for its children.
-
- Overrides:
encodeChildren in class UIXComponentBase
-
- Parameters:
context - the FacesContext
- Throws:
java.io.IOException - if there is an error encoding the children
getFamily
public java.lang.String getFamily()
-
- Specified by:
getFamily in class UIXComponentBase
getBeanType
protected FacesBean.Type getBeanType()
-
- Overrides:
getBeanType in class UIXComponentBase
Skip navigation links
Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.