oracle.cabo.ui.collection
Class ContextMapProxy
java.lang.Object
|
+--oracle.cabo.ui.collection.ContextMapProxy
- All Implemented Interfaces:
- ContextMap
- Direct Known Subclasses:
- FixedDelegatingContextMap
- public abstract class ContextMapProxy
- extends java.lang.Object
- implements ContextMap
ContextMap that proxies to either one other ContextMap, or
separate ContextMaps for gets and sets. Subclassers that
need to delegate both sets and gets to one AttribtueMap should
override getContextMap
, while those that need
to delegate to separate accessor and mutator ContextMaps should
override both getAccessorContextMap
and
getMutatorContextMap
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContextMapProxy
public ContextMapProxy()
getContextMap
protected ContextMap getContextMap(RenderingContext context)
getAccessorContextMap
protected ContextMap getAccessorContextMap(RenderingContext context)
getMutatorContextMap
protected ContextMap getMutatorContextMap()
get
public java.lang.Object get(RenderingContext context,
java.lang.Object key)
- Description copied from interface:
ContextMap
- Returns the Object stored under the key, returning
null
if no Object with that key exists.
- Specified by:
get
in interface ContextMap
- Following copied from interface:
oracle.cabo.ui.collection.ContextMap
- Parameters:
context
- RenderingContext to use to fulfill this requestkey
- key used to retrieve the value- Returns:
- The value stored under this key, or
null
if
no value is found. - Throws:
java.lang.IllegalArgumentException
- if the key is null
set
public void set(java.lang.Object key,
java.lang.Object value)
- Description copied from interface:
ContextMap
- Stores the
value
in the map, under the key
.
As the RenderingContext is not passed to this function, sets do not
have the same databinding capabilities that gets do.
- Specified by:
set
in interface ContextMap
- Following copied from interface:
oracle.cabo.ui.collection.ContextMap
- Parameters:
key
- key used to set the valuevalue
- The new value to set- Throws:
java.lang.IllegalArgumentException
- if either the key
or
value
is null.
keys
public java.util.Enumeration keys(RenderingContext context)
- Description copied from interface:
ContextMap
- Returns an Enumeration of all of the keys in the ContextMap given
the specified context.
The entire contents of the ContextMap can
be retrieved by calling ContextMap.get
for each of the keys
in the enumeration.
- Specified by:
keys
in interface ContextMap
- Following copied from interface:
oracle.cabo.ui.collection.ContextMap
- Parameters:
RenderingContext
- context Context used to determine the set of
keys.- Returns:
- The Enumeration of keys in the RenderingContext