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()
FormProxyObject
getOriginObject
in interface FormProxyObject
protected java.lang.Object replaceOrigin(java.lang.Object origin)
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 void setHandler(javassist.util.proxy.MethodHandler mi)
setHandler
in interface javassist.util.proxy.Proxy
public 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()
FormProxyObject
isFormDirty
in interface FormProxyObject
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<E>
public void resetFromOrigin()
FormProxyObject
resetFromOrigin
in interface FormProxyObject
public void submitToOrigin(BindContext ctx)
FormProxyObject
submitToOrigin
in interface FormProxyObject
protected static boolean testEquals(java.lang.Object e, java.lang.Object o)
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.