|
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 |
java.lang.Object | +--oracle.cabo.ui.collection.ArrayAttributeMap
AttributeMap implementation that stores AttributeKey value pairs in an array and locates the desired AttributeKey by making a linear scan.
Although extremely memory efficient and fast for the number of attributes stored on most UINodes ( < 15), FlaggedAttributeMap is a better general purpose AttributeMap implementation for use as UINode storage.
FlaggedAttributeMap
,
IndexedAttributeMap
Constructor Summary | |
ArrayAttributeMap()
|
|
ArrayAttributeMap(int size)
|
|
ArrayAttributeMap(int size,
int increment)
|
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 |
clone()
Clones the map. |
java.lang.Object |
getAttribute(RenderingContext context,
AttributeKey key)
Returns the value in the AttributeMap specified by the key. |
protected void |
putAttribute(AttributeKey key,
java.lang.Object value)
|
protected void |
removeAttribute(AttributeKey key)
|
void |
setAttribute(AttributeKey key,
java.lang.Object value)
Sets an attribute value specified by the key to the new value. |
int |
size()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ArrayAttributeMap()
public ArrayAttributeMap(int size)
public ArrayAttributeMap(int size, int increment)
Method Detail |
public java.lang.Object getAttribute(RenderingContext context, AttributeKey key)
AttributeMap
getAttribute
in interface AttributeMap
public void setAttribute(AttributeKey key, java.lang.Object value)
AttributeMap
setAttribute
in interface AttributeMap
public java.util.Enumeration attributeKeys(RenderingContext context)
AttributeMap
attributeKeys
in interface AttributeMap
public int size()
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected void putAttribute(AttributeKey key, java.lang.Object value)
protected void removeAttribute(AttributeKey key)
|
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 |