public abstract class AbstractCollectionProxy<E> extends java.lang.Object implements java.util.Collection<E>, javassist.util.proxy.Proxy, FormProxyObject, java.io.Serializable, FormProxyObjectListener
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_dirty |
protected boolean |
isImmutableElements |
| Constructor and Description |
|---|
AbstractCollectionProxy(java.util.Collection<E> origin,
java.lang.annotation.Annotation[] callerAnnots) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(java.util.Collection<? extends E> c) |
void |
addFormProxyObjectListener(FormProxyObjectListener l)
Add listener
|
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
protected <T extends java.util.Collection<E>> |
getCache() |
java.lang.Object |
getOriginObject()
Returns the origin object.
|
protected abstract java.util.Collection<E> |
initCache() |
boolean |
isEmpty() |
boolean |
isFormDirty()
Returns whether the form proxy object is dirty or not, including all
of its attributes.
|
java.util.Iterator<E> |
iterator() |
void |
onDataChange(java.lang.Object o)
Call when the data in FormProxyObject change
|
void |
onDirtyChange()
Call when setting form.dirty true
|
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
protected java.lang.Object |
replaceOrigin(java.lang.Object origin) |
void |
resetFromOrigin()
Resets all of the changes of this form from the origin object.
|
boolean |
retainAll(java.util.Collection<?> c) |
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.
|
protected static boolean |
testEquals(java.lang.Object e,
java.lang.Object o) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
protected boolean _dirty
protected boolean isImmutableElements
public AbstractCollectionProxy(java.util.Collection<E> origin, java.lang.annotation.Annotation[] callerAnnots)
protected abstract java.util.Collection<E> initCache()
protected <T extends java.util.Collection<E>> T getCache()
public java.lang.Object getOriginObject()
FormProxyObjectgetOriginObject in interface FormProxyObjectprotected java.lang.Object replaceOrigin(java.lang.Object origin)
public void addFormProxyObjectListener(FormProxyObjectListener l)
FormProxyObjectaddFormProxyObjectListener in interface FormProxyObjectpublic void onDirtyChange()
FormProxyObjectListeneronDirtyChange in interface FormProxyObjectListenerpublic void onDataChange(java.lang.Object o)
FormProxyObjectListeneronDataChange in interface FormProxyObjectListenerprotected void setDirty(boolean d)
public void setHandler(javassist.util.proxy.MethodHandler mi)
setHandler in interface javassist.util.proxy.Proxypublic int size()
size in interface java.util.Collection<E>public boolean isEmpty()
isEmpty in interface java.util.Collection<E>public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<E>public void clear()
clear in interface java.util.Collection<E>public java.util.Iterator<E> iterator()
public java.lang.Object[] toArray()
toArray in interface java.util.Collection<E>public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<E>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in interface java.util.Collection<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<E>public boolean isFormDirty()
FormProxyObjectisFormDirty in interface FormProxyObjectpublic boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<E>public void resetFromOrigin()
FormProxyObjectresetFromOrigin in interface FormProxyObjectpublic void submitToOrigin(BindContext ctx)
FormProxyObjectsubmitToOrigin in interface FormProxyObjectprotected static boolean testEquals(java.lang.Object e,
java.lang.Object o)
public void setFormOwner(java.lang.Object owner,
FormBinding binding)
FormProxyObjectsetFormOwner in interface FormProxyObjectowner - the object associated with this form.Copyright © 2005-2011 Potix Corporation. All Rights Reserved.