Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.collection
Interface UINodeList

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
ArrayUINodeList, InsertedUINodeList, UINodeListProxy, UINodeUINodeList, UnmodifiableCompoundNodeList, ReorderingUINodeList

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.

See Also:
BaseMutableUINode.setIndexedNodeList(oracle.cabo.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(RenderingContext 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(RenderingContext context)
          Returns the number of elements in the UINodeList given the specified RenderingContext.
 

Method Detail

size

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

getUINode

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

setUINode

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

addUINode

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

addUINode

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

removeUINode

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

clearUINodes

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

clone

public java.lang.Object clone()
Clones the UINodeList
Overrides:
clone in class java.lang.Object

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.