|
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.ContextMapProxy
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
.
Constructor Summary | |
ContextMapProxy()
|
Method Summary | |
java.lang.Object |
get(RenderingContext context,
java.lang.Object key)
Returns the Object stored under the key, returning null if no Object with that key exists. |
protected ContextMap |
getAccessorContextMap(RenderingContext context)
|
protected ContextMap |
getContextMap(RenderingContext context)
|
protected ContextMap |
getMutatorContextMap()
|
java.util.Enumeration |
keys(RenderingContext context)
Returns an Enumeration of all of the keys in the ContextMap given the specified context. |
void |
set(java.lang.Object key,
java.lang.Object value)
Stores the value in the map, under the key . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ContextMapProxy()
Method Detail |
protected ContextMap getContextMap(RenderingContext context)
protected ContextMap getAccessorContextMap(RenderingContext context)
protected ContextMap getMutatorContextMap()
public java.lang.Object get(RenderingContext context, java.lang.Object key)
ContextMap
null
if no Object with that key exists.
get
in interface ContextMap
oracle.cabo.ui.collection.ContextMap
context
- RenderingContext to use to fulfill this requestkey
- key used to retrieve the valuenull
if
no value is found.java.lang.IllegalArgumentException
- if the key is nullpublic void set(java.lang.Object key, java.lang.Object value)
ContextMap
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.
set
in interface ContextMap
oracle.cabo.ui.collection.ContextMap
key
- key used to set the valuevalue
- The new value to setjava.lang.IllegalArgumentException
- if either the key
or
value
is null.public java.util.Enumeration keys(RenderingContext context)
ContextMap
The entire contents of the ContextMap can
be retrieved by calling ContextMap.get
for each of the keys
in the enumeration.
keys
in interface ContextMap
oracle.cabo.ui.collection.ContextMap
RenderingContext
- context Context used to determine the set of
keys.
|
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 |