org.apache.myfaces.trinidadinternal.ui.collection
Interface UINodeList

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
ArrayUINodeList, DataObjectListNodeList, RootUINodeList, UIComponentUINodeList, UINodeListProxy, UINodeUINodeList, UnmodifiableCompoundNodeList

public interface UINodeList
extends java.lang.Cloneable

Interface for lists of UINodes. This class is implemented by MutableUINode subclasses that wish to change how the list of indexed children in a MutableUINode are stored.

Because the RenderingContext is passed to both the size and getUINode methods, the contents of the UINodeList can be proxied through the RenderingContext. In fact this is how some instances of DataObjectListNodeList work, building a UINodeList from a DataObjectList retrieved from a BoundValue. However, the amount of proxying that may be accomplished is limited by the fact that the mutating methods do not take a RenderingContext, thus, it is impossible to create a mutable UINodeList that acts as the concatenation of two other UINodeLists.

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/collection/UINodeList.java#0 $) $Date: 10-nov-2005.18:57:36 $
Author:
The Oracle ADF Faces Team
See Also:
BaseMutableUINode.setIndexedNodeList(org.apache.myfaces.trinidadinternal.ui.collection.UINodeList), DataObjectListNodeList

Method Summary
 void addUINode(int index, UINode node)
          Inserts the spacified UINode into the UINodeList at the specified index
 void addUINode(UINode node)
          Appends the specified UINode to the end of the UINodeList.
 void clearUINodes()
          Removes all of the UINodes from the UINodeList.
 java.lang.Object clone()
          Clones the UINodeList
 UINode getUINode(UIXRenderingContext context, int index)
          Returns the UINode at the specifed index in the UINodeList, given the specified RenderingContext.
 UINode removeUINode(int index)
          Removes and returns UINode at the specifed index.
 UINode setUINode(int index, UINode node)
          Replaces the UINode at the specified index with the new UINode value, returning the old value.
 int size(UIXRenderingContext context)
          Returns the number of elements in the UINodeList given the specified RenderingContext.
 

Method Detail

size

int size(UIXRenderingContext context)
Returns the number of elements in the UINodeList given the specified RenderingContext.


getUINode

UINode getUINode(UIXRenderingContext context,
                 int index)
Returns the UINode at the specifed index in the UINodeList, given the specified RenderingContext.


setUINode

UINode setUINode(int index,
                 UINode node)
Replaces the UINode at the specified index with the new UINode value, returning the old value.


addUINode

void addUINode(int index,
               UINode node)
Inserts the spacified UINode into the UINodeList at the specified index


addUINode

void addUINode(UINode node)
Appends the specified UINode to the end of the UINodeList.


removeUINode

UINode removeUINode(int index)
Removes and returns UINode at the specifed index.


clearUINodes

void clearUINodes()
Removes all of the UINodes from the UINodeList.


clone

java.lang.Object clone()
Clones the UINodeList



Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.