|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Map-like object for storing values under AttributeKeys and retrieving the values, given a RenderingContext.
Unlike UINodes, AttributeMaps do not retrieve the value of BoundValues
stored inside AttributeMaps. Thus, if a BoundValue is stored in an
AttributeMap, calling AttributeMap.getAttribute
will
return the BoundValue instance, not instance.getValue(context)
.
As the RenderingContext is passed to both the getAttribtue
and keys methods, the contents of the AttibuteMap can be
proxied through the RenderingContext to create AttributeMaps who's
contents are determined based on the current context.
The BaseMutableUINode interface allows the storage of attributes in the
UINode to be set by a call to setAttributeMap
.
AttributeKey
,
BaseMutableUINode.setAttributeMap(oracle.cabo.ui.collection.AttributeMap)
Method Summary | |
java.util.Enumeration |
attributeKeys(RenderingContext context)
Returns an Enumeration of all of the AttributeKeys in the AttributeMap that values exist for. |
java.lang.Object |
getAttribute(RenderingContext context,
AttributeKey key)
Returns the value in the AttributeMap specified by the key. |
void |
setAttribute(AttributeKey key,
java.lang.Object value)
Sets an attribute value specified by the key to the new value. |
Method Detail |
public java.lang.Object getAttribute(RenderingContext context, AttributeKey key)
public void setAttribute(AttributeKey key, java.lang.Object value)
public java.util.Enumeration attributeKeys(RenderingContext context)
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |