public class MapProxy<K,V> extends java.lang.Object implements java.util.Map<K,V>, javassist.util.proxy.Proxy, FormProxyObject, java.io.Serializable
Constructor and Description |
---|
MapProxy(java.util.Map<K,V> origin,
java.lang.annotation.Annotation[] callerAnnots) |
Modifier and Type | Method and Description |
---|---|
void |
cacheSavePropertyBinding(java.lang.String property,
SavePropertyBinding s)
Cache save property binding by property string
|
void |
clear() |
java.util.Set<Pair<java.lang.String,SavePropertyBinding>> |
collectCachedSavePropertyBinding()
Collect all of collect cached save property bindings
|
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) |
void |
onDirtyChange() |
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) |
void |
setPath(java.lang.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.
|
java.util.Collection<V> |
values() |
public java.lang.Object getOriginObject()
FormProxyObject
getOriginObject
in interface FormProxyObject
protected java.lang.Object replaceOrigin(java.lang.Object origin)
public void resetFromOrigin()
FormProxyObject
resetFromOrigin
in interface FormProxyObject
public void submitToOrigin(BindContext ctx)
FormProxyObject
submitToOrigin
in interface FormProxyObject
public void onDirtyChange()
public void onDataChange(java.lang.Object o)
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 boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public void setFormOwner(java.lang.Object owner, FormBinding binding)
FormProxyObject
setFormOwner
in interface FormProxyObject
owner
- the object associated with this form.public void cacheSavePropertyBinding(java.lang.String property, SavePropertyBinding s)
FormProxyObject
cacheSavePropertyBinding
in interface FormProxyObject
property
- the property of save property bindings
- the save property bindingpublic java.util.Set<Pair<java.lang.String,SavePropertyBinding>> collectCachedSavePropertyBinding()
FormProxyObject
collectCachedSavePropertyBinding
in interface FormProxyObject
public void setPath(java.lang.String property, ProxyNode parent)
FormProxyObject
setPath
in interface FormProxyObject
property
- p the propertyparent
- parent the parent proxy nodeCopyright © 2005-2018 Potix Corporation. All Rights Reserved.