|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.data.DictionaryData
public class DictionaryData
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<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 |
---|
public DictionaryData()
public DictionaryData(java.util.Dictionary<java.lang.Object,java.lang.Object> table)
public DictionaryData(java.lang.String select, java.lang.String data)
Method Detail |
---|
public void put(java.lang.Object select, java.lang.Object data)
public java.lang.Object selectValue(UIXRenderingContext context, java.lang.Object select)
selectValue
in interface DataObject
context
- the current rendering contextselect
- a select criterion, syntax as defined by the data objectpublic void updateValue(UIXRenderingContext context, java.lang.Object select, java.lang.Object value)
MutableDataObject
updateValue
in interface MutableDataObject
context
- the current rendering contextselect
- a select criterion, syntax as defined by the data objectvalue
- the new value associated with this select criterionpublic java.util.Iterator<java.lang.Object> keys(UIXRenderingContext context)
keys
in interface KeyedDataObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |