Package org.zkoss.bind.proxy
Class MapProxy<K,V>
java.lang.Object
org.zkoss.bind.proxy.MapProxy<K,V>
- All Implemented Interfaces:
Serializable,Map<K,,V> javassist.util.proxy.Proxy,FormProxyObject
public class MapProxy<K,V>
extends Object
implements Map<K,V>, javassist.util.proxy.Proxy, FormProxyObject, Serializable
A proxy object to implement Map
- Since:
- 8.0.0
- Author:
- jumperchen
- See Also:
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcacheSavePropertyBinding(String property, SavePropertyBinding s) Cache save property binding by property stringvoidclear()Set<org.zkoss.util.Pair<String,SavePropertyBinding>> Collect all of collect cached save property bindingsbooleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()Returns the origin object.booleanisEmpty()booleanReturns whether the form proxy object is dirty or not, including all of its attributes.keySet()voidvoidvoidprotected ObjectreplaceOrigin(Object origin) voidResets all of the changes of this form from the origin object.protected voidsetDirty(boolean d) voidsetFormOwner(Object owner, FormBinding binding) Sets the owner of this form with its binding.voidsetHandler(javassist.util.proxy.MethodHandler mi) voidSet the property of current form proxy object and it's creatorintsize()voidSaves all of the changes of this form to the origin object.values()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
MapProxy
-
-
Method Details
-
getOriginObject
Description copied from interface:FormProxyObjectReturns the origin object.- Specified by:
getOriginObjectin interfaceFormProxyObject
-
replaceOrigin
-
entrySet
-
resetFromOrigin
public void resetFromOrigin()Description copied from interface:FormProxyObjectResets all of the changes of this form from the origin object.- Specified by:
resetFromOriginin interfaceFormProxyObject
-
submitToOrigin
Description copied from interface:FormProxyObjectSaves all of the changes of this form to the origin object.- Specified by:
submitToOriginin interfaceFormProxyObject
-
onDirtyChange
public void onDirtyChange() -
onDataChange
-
setDirty
protected void setDirty(boolean d) -
isFormDirty
public boolean isFormDirty()Description copied from interface:FormProxyObjectReturns whether the form proxy object is dirty or not, including all of its attributes.- Specified by:
isFormDirtyin interfaceFormProxyObject
-
setHandler
public void setHandler(javassist.util.proxy.MethodHandler mi) - Specified by:
setHandlerin interfacejavassist.util.proxy.Proxy
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<K,V>
-
containsValue
- Specified by:
containsValuein interfaceMap<K,V>
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
setFormOwner
Description copied from interface:FormProxyObjectSets the owner of this form with its binding.- Specified by:
setFormOwnerin interfaceFormProxyObject- Parameters:
owner- the object associated with this form.
-
cacheSavePropertyBinding
Description copied from interface:FormProxyObjectCache save property binding by property string- Specified by:
cacheSavePropertyBindingin interfaceFormProxyObject- Parameters:
property- the property of save property bindings- the save property binding
-
collectCachedSavePropertyBinding
Description copied from interface:FormProxyObjectCollect all of collect cached save property bindings- Specified by:
collectCachedSavePropertyBindingin interfaceFormProxyObject
-
setPath
Description copied from interface:FormProxyObjectSet the property of current form proxy object and it's creator- Specified by:
setPathin interfaceFormProxyObject- Parameters:
property- p the propertyparent- parent the parent proxy node
-