Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

oracle.cabo.ui.collection
Class DictionaryAttributeMap

java.lang.Object
  |
  +--oracle.cabo.ui.collection.DictionaryAttributeMap
All Implemented Interfaces:
AttributeMap

public final class DictionaryAttributeMap
extends java.lang.Object
implements AttributeMap

AttributeMap implementation that delegates storage of the AttibuteMap to a Dictionary. Although this implementation is the fastest when large numbers of unindexed AttributeKey values are stored in the AttributeMap, for most uses FlaggedAttributeMap has similar or better performance at a much smaller memory cost, while IndexedAttributeMap is faster with a similar cost.

See Also:
FlaggedAttributeMap, IndexedAttributeMap

Constructor Summary
DictionaryAttributeMap()
           
DictionaryAttributeMap(java.util.Dictionary dictionary)
           
 
Method Summary
 java.util.Enumeration attributeKeys(RenderingContext context)
          Returns an Enumeration of all of the AttributeKeys in the AttributeMap that values exist for.
protected  java.util.Dictionary createDefaultDictionary()
           
 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.
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryAttributeMap

public DictionaryAttributeMap()

DictionaryAttributeMap

public DictionaryAttributeMap(java.util.Dictionary dictionary)
Method Detail

getAttribute

public java.lang.Object getAttribute(RenderingContext context,
                                     AttributeKey key)
Description copied from interface: AttributeMap
Returns the value in the AttributeMap specified by the key.
Specified by:
getAttribute in interface AttributeMap

setAttribute

public void setAttribute(AttributeKey key,
                         java.lang.Object value)
Description copied from interface: AttributeMap
Sets an attribute value specified by the key to the new value.
Specified by:
setAttribute in interface AttributeMap

attributeKeys

public java.util.Enumeration attributeKeys(RenderingContext context)
Description copied from interface: AttributeMap
Returns an Enumeration of all of the AttributeKeys in the AttributeMap that values exist for.
Specified by:
attributeKeys in interface AttributeMap

size

public int size()

createDefaultDictionary

protected java.util.Dictionary createDefaultDictionary()

Oracle UIX API Reference
Release 2.1.22.0.0
B12196-01

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