public abstract class AbstractCollectionProxy<E> extends java.lang.Object implements java.util.Collection<E>, javassist.util.proxy.Proxy, FormProxyObject, java.io.Serializable
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 |
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 |
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) |
void |
onDirtyChange() |
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) |
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.
|
protected static boolean |
testEquals(java.lang.Object e,
java.lang.Object o) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 onDirtyChange()
public void onDataChange(java.lang.Object o)
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.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.