org.enhydra.barracuda.core.comp
Class DefaultItemMap

java.lang.Object
  |
  +--org.enhydra.barracuda.core.comp.DefaultItemMap
All Implemented Interfaces:
ItemMap

public class DefaultItemMap
extends java.lang.Object
implements ItemMap

An ItemMap can be returned by the getItem() methods within any of the model implementations. It is used to associate a key with a particular value. It is primarily used by the BSelect component (which can use both key and value information when rendering). The other components just use the value information.


Field Summary
protected  java.lang.Object key
           
protected  java.lang.Object value
           
 
Constructor Summary
DefaultItemMap(int ikey, java.lang.Object ivalue)
          Create a new DefaultItemMap with the given key and value
DefaultItemMap(java.lang.Object ikey, java.lang.Object ivalue)
          Create a new DefaultItemMap with the given key and value
 
Method Summary
 java.lang.Object getKey()
          Returns the key corresponding to this entry.
 java.lang.Object getValue()
          Returns the value corresponding to this entry.
 java.lang.Object setValue(java.lang.Object ivalue)
          Replaces the value corresponding to this entry with the specified value (optional operation).
 java.lang.String toString()
          Return a String representation of the ItemMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

protected java.lang.Object key

value

protected java.lang.Object value
Constructor Detail

DefaultItemMap

public DefaultItemMap(int ikey,
                      java.lang.Object ivalue)
Create a new DefaultItemMap with the given key and value


DefaultItemMap

public DefaultItemMap(java.lang.Object ikey,
                      java.lang.Object ivalue)
Create a new DefaultItemMap with the given key and value

Method Detail

getKey

public java.lang.Object getKey()
Returns the key corresponding to this entry.

Specified by:
getKey in interface ItemMap

getValue

public java.lang.Object getValue()
Returns the value corresponding to this entry.

Specified by:
getValue in interface ItemMap

setValue

public java.lang.Object setValue(java.lang.Object ivalue)
Replaces the value corresponding to this entry with the specified value (optional operation).

Specified by:
setValue in interface ItemMap

toString

public java.lang.String toString()
Return a String representation of the ItemMap

Overrides:
toString in class java.lang.Object


Copyright © 2001 Enhydra.org