public class MapProxy<K,V> extends Object implements Map<K,V>, javassist.util.proxy.Proxy, FormProxyObject, Serializable
| Constructor and Description |
|---|
MapProxy(Map<K,V> origin,
Annotation[] callerAnnots) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheSavePropertyBinding(String property,
SavePropertyBinding s)
Cache save property binding by property string
|
void |
clear() |
Set<org.zkoss.util.Pair<String,SavePropertyBinding>> |
collectCachedSavePropertyBinding()
Collect all of collect cached save property bindings
|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
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.
|
Set<K> |
keySet() |
void |
onDataChange(Object o) |
void |
onDirtyChange() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
remove(Object key) |
protected Object |
replaceOrigin(Object origin) |
void |
resetFromOrigin()
Resets all of the changes of this form from the origin object.
|
protected void |
setDirty(boolean d) |
void |
setFormOwner(Object owner,
FormBinding binding)
Sets the owner of this form with its binding.
|
void |
setHandler(javassist.util.proxy.MethodHandler mi) |
void |
setPath(String property,
ProxyNode parent)
Set the property of current form proxy object and it's creator
|
int |
size() |
void |
submitToOrigin(BindContext ctx)
Saves all of the changes of this form to the origin object.
|
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllpublic MapProxy(Map<K,V> origin, Annotation[] callerAnnots)
public Object getOriginObject()
FormProxyObjectgetOriginObject in interface FormProxyObjectpublic void resetFromOrigin()
FormProxyObjectresetFromOrigin in interface FormProxyObjectpublic void submitToOrigin(BindContext ctx)
FormProxyObjectsubmitToOrigin in interface FormProxyObjectpublic void onDirtyChange()
public void onDataChange(Object o)
protected void setDirty(boolean d)
public boolean isFormDirty()
FormProxyObjectisFormDirty in interface FormProxyObjectpublic void setHandler(javassist.util.proxy.MethodHandler mi)
setHandler in interface javassist.util.proxy.Proxypublic boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public void setFormOwner(Object owner, FormBinding binding)
FormProxyObjectsetFormOwner in interface FormProxyObjectowner - the object associated with this form.public void cacheSavePropertyBinding(String property, SavePropertyBinding s)
FormProxyObjectcacheSavePropertyBinding in interface FormProxyObjectproperty - the property of save property bindings - the save property bindingpublic Set<org.zkoss.util.Pair<String,SavePropertyBinding>> collectCachedSavePropertyBinding()
FormProxyObjectcollectCachedSavePropertyBinding in interface FormProxyObjectpublic void setPath(String property, ProxyNode parent)
FormProxyObjectsetPath in interface FormProxyObjectproperty - p the propertyparent - parent the parent proxy nodeCopyright © 2020. All rights reserved.