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 |
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.
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 contextselect
- a select criterion, syntax as defined by the data object