|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.riotfamily.components.model.wrapper.ValueWrapper<Map<String,Object>>
org.riotfamily.components.model.wrapper.MapWrapper
public class MapWrapper
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
MapWrapper()
|
|
| Method Summary | |
|---|---|
void |
clear()
|
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object value)
|
MapWrapper |
deepCopy()
Creates a deep copy. |
void |
each(ValueCallback callback)
|
Set<Map.Entry<String,Object>> |
entrySet()
|
boolean |
equals(Object obj)
Delegates the call to the equals method of the wrapped object. |
Object |
get(Object key)
|
Map<String,Object> |
getValue()
Returns the value that is passed to the form element when the value is edited. |
ValueWrapper<?> |
getWrapper(String key)
|
Map<String,Object> |
getWrapperMap()
|
int |
hashCode()
Delegates the call to the hashCode method of the wrapped object. |
boolean |
isEmpty()
|
Set<String> |
keySet()
|
Object |
put(String key,
Object value)
|
void |
putAll(Map<? extends String,?> map)
|
Object |
remove(Object key)
|
void |
setValue(Map<String,Object> value)
|
void |
setWrapperMap(Map<String,Object> wrapperMap)
|
int |
size()
|
Map<String,Object> |
unwrap()
Returns the wrapped value. |
Collection<Object> |
values()
|
void |
wrap(Object value)
Wraps the given value. |
| Methods inherited from class org.riotfamily.components.model.wrapper.ValueWrapper |
|---|
getId, setId, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapWrapper()
| Method Detail |
|---|
public Map<String,Object> getWrapperMap()
public void setWrapperMap(Map<String,Object> wrapperMap)
public void wrap(Object value)
ValueWrapperValueWrapper.setValue(Object).
wrap in class ValueWrapper<Map<String,Object>>public Map<String,Object> getValue()
ValueWrapperListWrapper and MapWrapper) which
return a self-reference.
getValue in class ValueWrapper<Map<String,Object>>public void setValue(Map<String,Object> value)
setValue in class ValueWrapper<Map<String,Object>>public ValueWrapper<?> getWrapper(String key)
public Map<String,Object> unwrap()
ValueWrapperValueWrapper.getValue(). Subclasses that wrap complex values (values
with nested wrappers) must overwrite this method to perform a
"deep-unwrapping".
unwrap in class ValueWrapper<Map<String,Object>>public MapWrapper deepCopy()
ValueWrapperValueWrapper.setValue(Object) with the value returned
by ValueWrapper.getValue(). Complex wrappers have to make sure that the
deepCopy method is invoked for all nested values too.
deepCopy in class ValueWrapper<Map<String,Object>>public void each(ValueCallback callback)
each in class ValueWrapper<Map<String,Object>>public void clear()
clear in interface Map<String,Object>public boolean containsKey(Object key)
containsKey in interface Map<String,Object>public boolean containsValue(Object value)
containsValue in interface Map<String,Object>public Set<String> keySet()
keySet in interface Map<String,Object>public Set<Map.Entry<String,Object>> entrySet()
entrySet in interface Map<String,Object>public Collection<Object> values()
values in interface Map<String,Object>public boolean isEmpty()
isEmpty in interface Map<String,Object>public int size()
size in interface Map<String,Object>public Object remove(Object key)
remove in interface Map<String,Object>public Object get(Object key)
get in interface Map<String,Object>
public Object put(String key,
Object value)
put in interface Map<String,Object>public void putAll(Map<? extends String,?> map)
putAll in interface Map<String,Object>public int hashCode()
ValueWrapper
hashCode in interface Map<String,Object>hashCode in class ValueWrapper<Map<String,Object>>public boolean equals(Object obj)
ValueWrapper
equals in interface Map<String,Object>equals in class ValueWrapper<Map<String,Object>>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||