org.apache.myfaces.trinidadinternal.ui.data
Class DictionaryData

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.ui.data.DictionaryData
All Implemented Interfaces:
DataObject, KeyedDataObject, MutableDataObject

public class DictionaryData
extends java.lang.Object
implements KeyedDataObject, MutableDataObject

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

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/ui/data/DictionaryData.java#0 $) $Date: 10-nov-2005.18:56:32 $
Author:
The Oracle ADF Faces Team

Constructor Summary
DictionaryData()
          Creates a DictionaryData.
DictionaryData(java.util.Dictionary<java.lang.Object,java.lang.Object> table)
          Creates a DictionaryData, using the provided Dictionary for storage.
DictionaryData(java.lang.String select, java.lang.String data)
          Creates a DictionaryData initialized with a single pair of data.
 
Method Summary
 java.util.Iterator<java.lang.Object> keys(UIXRenderingContext context)
           
 void put(java.lang.Object select, java.lang.Object data)
          Adds a key/value pair to the DictionaryData.
 java.lang.Object selectValue(UIXRenderingContext context, java.lang.Object select)
          Returns the value registered with the select key.
 void updateValue(UIXRenderingContext context, java.lang.Object select, java.lang.Object value)
          Given a select string, updates 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

DictionaryData

public DictionaryData()
Creates a DictionaryData.


DictionaryData

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


DictionaryData

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

Specified by:
selectValue in interface DataObject
Parameters:
context - the current rendering context
select - a select criterion, syntax as defined by the data object

updateValue

public void updateValue(UIXRenderingContext context,
                        java.lang.Object select,
                        java.lang.Object value)
Description copied from interface: MutableDataObject
Given a select string, updates the value matching that selection.

Specified by:
updateValue in interface MutableDataObject
Parameters:
context - the current rendering context
select - a select criterion, syntax as defined by the data object
value - the new value associated with this select criterion

keys

public java.util.Iterator<java.lang.Object> keys(UIXRenderingContext context)
Specified by:
keys in interface KeyedDataObject


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