|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
.
AttributeKey
,
BaseMutableUINode.setAttributeMap(org.apache.myfaces.trinidadinternal.ui.collection.AttributeMap)
Method Summary | |
---|---|
java.util.Iterator<AttributeKey> |
attributeKeys(UIXRenderingContext context)
Returns an Iterator of all of the AttributeKeys in the AttributeMap that values exist for. |
java.lang.Object |
getAttribute(UIXRenderingContext 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 |
---|
java.lang.Object getAttribute(UIXRenderingContext context, AttributeKey key)
void setAttribute(AttributeKey key, java.lang.Object value)
java.util.Iterator<AttributeKey> attributeKeys(UIXRenderingContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |