|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.core.comp.DefaultItemMap
public class DefaultItemMap
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 Map |
attrs
|
protected Object |
key
|
protected Object |
value
|
Constructor Summary | |
---|---|
DefaultItemMap(int ikey,
Object ivalue)
Create a new DefaultItemMap with the given key and value |
|
DefaultItemMap(Object ikey,
Object ivalue)
Create a new DefaultItemMap with the given key and value |
Method Summary | |
---|---|
Object |
getAttr(Object attr)
get an attribute associated with this particular component. |
Map |
getAttrMap()
get a reference of the underlying component attribute Map |
Object |
getKey()
Returns the key corresponding to this entry. |
Object |
getValue()
Returns the value corresponding to this entry. |
Attrs |
setAttr(Object attr,
Object val)
set an attribute for this particular component. |
Object |
setValue(Object ivalue)
Replaces the value corresponding to this entry with the specified value (optional operation). |
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 |
---|
protected Object key
protected Object value
protected Map attrs
Constructor Detail |
---|
public DefaultItemMap(int ikey, Object ivalue)
ikey
- an int keyivalue
- the object valuepublic DefaultItemMap(Object ikey, Object ivalue)
ikey
- an Integer keyivalue
- the object valueMethod Detail |
---|
public Object getKey()
getKey
in interface ItemMap
public Object getValue()
getValue
in interface ItemMap
public Object setValue(Object ivalue)
setValue
in interface ItemMap
public Attrs setAttr(Object attr, Object val)
setAttr
in interface Attrs
attr
- the attribute nameval
- the attribute valuepublic Object getAttr(Object attr)
getAttr
in interface Attrs
attr
- the attribute name
public Map getAttrMap()
getAttrMap
in interface Attrs
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |