oracle.cabo.ui.data
Class DictionaryData

java.lang.Object
  |
  +--oracle.cabo.ui.data.DictionaryData
All Implemented Interfaces:
DataObject, KeyedDataObject
Direct Known Subclasses:
MessageData

public class DictionaryData
extends java.lang.Object
implements KeyedDataObject

The DictionaryData interface provides a simple, hashtable-like datasource. The "select" strings are defined as keys to string values; DataSet is not supported.


Constructor Summary
DictionaryData()
          Creates a DictionaryData.
DictionaryData(java.util.Dictionary table)
          Creates a DictionaryData, using the provided Dictionary for storage.
DictionaryData(java.lang.Object select, java.lang.Object data)
          Creates a DictionaryData initialized with a single pair of data.
 
Method Summary
 java.util.Enumeration keys(RenderingContext context)
           
 void put(java.lang.Object select, java.lang.Object data)
          Adds a key/value pair to the DictionaryData.
 java.lang.Object selectValue(RenderingContext context, java.lang.Object select)
          Returns the value registered with the select key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryData

public DictionaryData()
Creates a DictionaryData.

DictionaryData

public DictionaryData(java.util.Dictionary table)
Creates a DictionaryData, using the provided Dictionary for storage.

DictionaryData

public DictionaryData(java.lang.Object select,
                      java.lang.Object data)
Creates a DictionaryData initialized with a single pair of data.
Method Detail

put

public void put(java.lang.Object select,
                java.lang.Object data)
Adds a key/value pair to the DictionaryData.

selectValue

public java.lang.Object selectValue(RenderingContext context,
                                    java.lang.Object select)
Returns the value registered with the select key.
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

keys

public java.util.Enumeration keys(RenderingContext context)
Specified by:
keys in interface KeyedDataObject