Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.collection
Interface AttributeMap

All Known Implementing Classes:
ArrayAttributeMap, AttributeMapProxy, DictionaryAttributeMap, UINodeAttributeMap

public interface AttributeMap

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.

See Also:
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

getAttribute

public java.lang.Object getAttribute(RenderingContext context,
                                     AttributeKey key)
Returns the value in the AttributeMap specified by the key.

setAttribute

public void setAttribute(AttributeKey key,
                         java.lang.Object value)
Sets an attribute value specified by the key to the new value.

attributeKeys

public java.util.Enumeration attributeKeys(RenderingContext context)
Returns an Enumeration of all of the AttributeKeys in the AttributeMap that values exist for.

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

Copyright © 2002,2003, Oracle. All Rights Reserved.