org.apache.myfaces.trinidad.component
Class ComponentProcessingContext

java.lang.Object
  extended by org.apache.myfaces.trinidad.component.ComponentProcessingContext

public final class ComponentProcessingContext
extends java.lang.Object

ProcessingContext passed to FlattenedComponents and ComponentProcessors representing the current component iteration context.

See Also:
ComponentProcessor, UIXComponent.processFlattenedChildren(FacesContext, ComponentProcessor, UIComponent, Object), UIXComponent.processFlattenedChildren(FacesContext, ComponentProcessor, Iterable, Object), UIXComponent.processFlattenedChildren(FacesContext, ComponentProcessingContext, ComponentProcessor, UIComponent, Object), UIXComponent.processFlattenedChildren(FacesContext, ComponentProcessingContext, ComponentProcessor, Iterable, Object), FlattenedComponent

Method Summary
 int getGroupDepth()
          Returns the current group depth of the ProcessingContext.
 int getStartDepth()
          Returns the current starting group depth of the ProcessingContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStartDepth

public int getStartDepth()
Returns the current starting group depth of the ProcessingContext. The starting depth is only non-zero for the first rendered child inside a group or nested groups. If two grouping components, such as UIXGroup, are nested immediately inside of each other, the first processed component in the second UIXGroup will see 2 for the start depth. The second would see 0.

See Also:
getGroupDepth()

getGroupDepth

public int getGroupDepth()
Returns the current group depth of the ProcessingContext. The group depth is equal to the nesting depth of grouping components, such as UIXGroup that the current iteratior has entered. In contrast to getStartDepth(), all siblings at a particular nesting level see the same group depth.

See Also:
getStartDepth()


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.