org.barracudamvc.core.comp
Interface ItemMap

All Superinterfaces:
Attrs
All Known Implementing Classes:
DefaultItemMap

public interface ItemMap
extends Attrs

This interface defines the methods needed to implement an ItemMap object. 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.


Method Summary
 Object getKey()
          Returns the key corresponding to this entry.
 Object getValue()
          Returns the value corresponding to this entry.
 Object setValue(Object value)
          Replaces the value corresponding to this entry with the specified value (optional operation).
 
Methods inherited from interface org.barracudamvc.core.comp.Attrs
getAttr, getAttrMap, setAttr
 

Method Detail

getKey

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


getValue

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


setValue

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



Copyright © 2006 BarracudaMVC.org All Rights Reserved.