org.jboss.gravel.common.ui
Class UIGravelBase

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by org.jboss.gravel.common.ui.UIGravelBase
All Implemented Interfaces:
Serializable, javax.faces.component.StateHolder
Direct Known Subclasses:
UIDataTableColumn, UIInputFile, UIInputHidden, UINamingContainer, UISimple

public abstract class UIGravelBase
extends javax.faces.component.UIComponentBase
implements Serializable

See Also:
Serialized Form

Constructor Summary
UIGravelBase()
           
 
Method Summary
<T extends javax.faces.component.UIComponent>
Iterator<T>
getChildrenOfType(Class<T> claxx)
          Get immediate children of the given type.
<T extends javax.faces.component.UIComponent,S extends UICollection>
Iterator<T>
getChildrenOfType(Class<T> claxx, Class<S> collectionClaxx)
          Get immediate children of the given type, or the immediate children of the given collection type, which itself must be an immediate child of this component.
 boolean isGeneratedId()
           
 
Methods inherited from class javax.faces.component.UIComponentBase
broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getFamily, getValueExpression, setValueExpression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UIGravelBase

public UIGravelBase()
Method Detail

isGeneratedId

public boolean isGeneratedId()

getChildrenOfType

public <T extends javax.faces.component.UIComponent,S extends UICollection> Iterator<T> getChildrenOfType(Class<T> claxx,
                                                                                                          Class<S> collectionClaxx)
Get immediate children of the given type, or the immediate children of the given collection type, which itself must be an immediate child of this component.

Parameters:
claxx - the class to search for
collectionClaxx - the type of collection to include in the search, or null for none
Returns:
an iterator that finds the children of the given type.

getChildrenOfType

public <T extends javax.faces.component.UIComponent> Iterator<T> getChildrenOfType(Class<T> claxx)
Get immediate children of the given type.

Parameters:
claxx - the class to search for
Returns:
an iterator that finds the children of the given type.