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

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

Deprecated. This class comes from the old Java 1.2 UIX codebase and should not be used anymore.

@Deprecated
public class MapData
extends java.lang.Object
implements KeyedDataObject, MutableDataObject

The MapData interface provides a simple, hashmap-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/MapData.java#0 $) $Date: 10-nov-2005.18:56:33 $

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

MapData

public MapData()
Deprecated. 
Creates a MapData.


MapData

public MapData(java.util.Map<java.lang.Object,java.lang.Object> table)
Deprecated. 
Creates a MapData, using the provided Map for storage.


MapData

public MapData(java.lang.Object select,
               java.lang.Object data)
Deprecated. 
Creates a MapData initialized with a single pair of data.

Method Detail

put

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


selectValue

public java.lang.Object selectValue(UIXRenderingContext context,
                                    java.lang.Object select)
Deprecated. 
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)
Deprecated. 
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)
Deprecated. 
Specified by:
keys in interface KeyedDataObject


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.