public class MapProxy<K,V> extends java.lang.Object implements java.util.Map<K,V>, javassist.util.proxy.Proxy, FormProxyObject, java.io.Serializable, FormProxyObjectListener
Constructor and Description |
---|
MapProxy(java.util.Map<K,V> origin,
java.lang.annotation.Annotation[] callerAnnots) |
Modifier and Type | Method and Description |
---|---|
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() |
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 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 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.Copyright © 2005-2011 Potix Corporation. All Rights Reserved.