Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.data
Class ArrayDataSet

java.lang.Object
  |
  +--oracle.cabo.ui.data.ArrayDataSet
All Implemented Interfaces:
DataObject, DataObjectList, DataSet

public class ArrayDataSet
extends java.lang.Object
implements DataSet

DataSet across an array. The array is not cloned, so the creators must not modify the contents once the class is instantiated.

See Also:
DataSet

Constructor Summary
ArrayDataSet(DataObject[] data)
          Construct a DataSet with array-based data.
ArrayDataSet(java.lang.Object[] data, java.lang.Object key)
          Construct a DataSet with an array with ordinary objects and a single key.
 
Method Summary
 DataObject getItem(int index)
          Returns the DataObject at the index.
 int getLength()
          Returns the number of items in the data set.
 java.lang.Object selectValue(RenderingContext context, java.lang.Object select)
          Given a select string, returns the value matching that selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayDataSet

public ArrayDataSet(DataObject[] data)
Construct a DataSet with array-based data.

ArrayDataSet

public ArrayDataSet(java.lang.Object[] data,
                    java.lang.Object key)
Construct a DataSet with an array with ordinary objects and a single key.
Method Detail

getLength

public int getLength()
Returns the number of items in the data set.
Specified by:
getLength in interface DataObjectList

getItem

public DataObject getItem(int index)
Returns the DataObject at the index.
Specified by:
getItem in interface DataObjectList

selectValue

public java.lang.Object selectValue(RenderingContext context,
                                    java.lang.Object select)
Description copied from interface: DataObject
Given a select string, returns the value matching that selection. It is legal to return null if the select key doesn't match anything.

Specified by:
selectValue in interface DataObject
Following copied from interface: oracle.cabo.ui.data.DataObject
Parameters:
context - the current rendering context
select - a select criterion, syntax as defined by the data object

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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