|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.proxy.MapProxy<K,V>
public class MapProxy<K,V>
A proxy object to implement Map
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Constructor Summary | |
---|---|
MapProxy(java.util.Map<K,V> origin,
java.lang.annotation.Annotation[] callerAnnots)
|
Method Summary | |
---|---|
void |
addFormProxyObjectListener(FormProxyObjectListener l)
Add listener |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet()
|
V |
get(java.lang.Object key)
|
java.lang.Object |
getOriginObject()
Returns the origin object. |
boolean |
isEmpty()
|
boolean |
isFormDirty()
Returns whether the form proxy object is dirty or not, including all of its attributes. |
java.util.Set<K> |
keySet()
|
void |
onDataChange(java.lang.Object o)
Call when the data in FormProxyObject change |
void |
onDirtyChange()
Call when setting form.dirty true |
V |
put(K key,
V value)
|
void |
putAll(java.util.Map<? extends K,? extends V> m)
|
V |
remove(java.lang.Object key)
|
protected java.lang.Object |
replaceOrigin(java.lang.Object origin)
|
void |
resetFromOrigin()
Resets all of the changes of this form from the origin object. |
protected void |
setDirty(boolean d)
|
void |
setFormOwner(java.lang.Object owner,
FormBinding binding)
Sets the owner of this form with its binding. |
void |
setHandler(javassist.util.proxy.MethodHandler mi)
|
int |
size()
|
void |
submitToOrigin(BindContext ctx)
Saves all of the changes of this form to the origin object. |
java.util.Collection<V> |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Constructor Detail |
---|
public MapProxy(java.util.Map<K,V> origin, java.lang.annotation.Annotation[] callerAnnots)
Method Detail |
---|
public java.lang.Object getOriginObject()
FormProxyObject
getOriginObject
in interface FormProxyObject
protected java.lang.Object replaceOrigin(java.lang.Object origin)
public java.util.Set<java.util.Map.Entry<K,V>> entrySet()
entrySet
in interface java.util.Map<K,V>
public void resetFromOrigin()
FormProxyObject
resetFromOrigin
in interface FormProxyObject
public void submitToOrigin(BindContext ctx)
FormProxyObject
submitToOrigin
in interface FormProxyObject
public void addFormProxyObjectListener(FormProxyObjectListener l)
FormProxyObject
addFormProxyObjectListener
in interface FormProxyObject
public void onDirtyChange()
FormProxyObjectListener
onDirtyChange
in interface FormProxyObjectListener
public void onDataChange(java.lang.Object o)
FormProxyObjectListener
onDataChange
in interface FormProxyObjectListener
protected void setDirty(boolean d)
public boolean isFormDirty()
FormProxyObject
isFormDirty
in interface FormProxyObject
public void setHandler(javassist.util.proxy.MethodHandler mi)
setHandler
in interface javassist.util.proxy.Proxy
public int size()
size
in interface java.util.Map<K,V>
public boolean isEmpty()
isEmpty
in interface java.util.Map<K,V>
public boolean containsKey(java.lang.Object key)
containsKey
in interface java.util.Map<K,V>
public boolean containsValue(java.lang.Object value)
containsValue
in interface java.util.Map<K,V>
public V get(java.lang.Object key)
get
in interface java.util.Map<K,V>
public V put(K key, V value)
put
in interface java.util.Map<K,V>
public V remove(java.lang.Object key)
remove
in interface java.util.Map<K,V>
public void putAll(java.util.Map<? extends K,? extends V> m)
putAll
in interface java.util.Map<K,V>
public void clear()
clear
in interface java.util.Map<K,V>
public java.util.Set<K> keySet()
keySet
in interface java.util.Map<K,V>
public java.util.Collection<V> values()
values
in interface java.util.Map<K,V>
public void setFormOwner(java.lang.Object owner, FormBinding binding)
FormProxyObject
setFormOwner
in interface FormProxyObject
owner
- the object associated with this form.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |