public abstract class AbstractCollectionProxy<E> extends Object implements Collection<E>, javassist.util.proxy.Proxy, FormProxyObject, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_dirty |
protected boolean |
isImmutableElements |
| Constructor and Description |
|---|
AbstractCollectionProxy(Collection<E> origin,
Annotation[] callerAnnots) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
cacheSavePropertyBinding(String property,
SavePropertyBinding s)
Cache save property binding by property string
|
void |
clear() |
Set<org.zkoss.util.Pair<String,SavePropertyBinding>> |
collectCachedSavePropertyBinding()
Collect all of collect cached save property bindings
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
protected <T extends Collection<E>> |
getCache() |
Object |
getOriginObject()
Returns the origin object.
|
protected abstract Collection<E> |
initCache() |
boolean |
isEmpty() |
boolean |
isFormDirty()
Returns whether the form proxy object is dirty or not, including all
of its attributes.
|
Iterator<E> |
iterator() |
void |
onDataChange(Object o) |
void |
onDirtyChange() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
protected Object |
replaceOrigin(Object origin) |
void |
resetFromOrigin()
Resets all of the changes of this form from the origin object.
|
boolean |
retainAll(Collection<?> c) |
protected void |
setDirty(boolean d) |
void |
setFormOwner(Object owner,
FormBinding binding)
Sets the owner of this form with its binding.
|
void |
setHandler(javassist.util.proxy.MethodHandler mi) |
void |
setPath(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(Object e,
Object o) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamprotected boolean _dirty
protected boolean isImmutableElements
public AbstractCollectionProxy(Collection<E> origin, Annotation[] callerAnnots)
protected abstract Collection<E> initCache()
protected <T extends Collection<E>> T getCache()
public Object getOriginObject()
FormProxyObjectgetOriginObject in interface FormProxyObjectpublic void onDirtyChange()
public void onDataChange(Object o)
protected void setDirty(boolean d)
public void setHandler(javassist.util.proxy.MethodHandler mi)
setHandler in interface javassist.util.proxy.Proxypublic int size()
size in interface Collection<E>public boolean isEmpty()
isEmpty in interface Collection<E>public boolean contains(Object o)
contains in interface Collection<E>public void clear()
clear in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] a)
toArray in interface Collection<E>public boolean add(E e)
add in interface Collection<E>public boolean remove(Object o)
remove in interface Collection<E>public boolean addAll(Collection<? extends E> c)
addAll in interface Collection<E>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>public boolean removeAll(Collection<?> c)
removeAll in interface Collection<E>public boolean isFormDirty()
FormProxyObjectisFormDirty in interface FormProxyObjectpublic boolean retainAll(Collection<?> c)
retainAll in interface Collection<E>public void resetFromOrigin()
FormProxyObjectresetFromOrigin in interface FormProxyObjectpublic void submitToOrigin(BindContext ctx)
FormProxyObjectsubmitToOrigin in interface FormProxyObjectpublic void setFormOwner(Object owner, FormBinding binding)
FormProxyObjectsetFormOwner in interface FormProxyObjectowner - the object associated with this form.public void cacheSavePropertyBinding(String property, SavePropertyBinding s)
FormProxyObjectcacheSavePropertyBinding in interface FormProxyObjectproperty - the property of save property bindings - the save property bindingpublic Set<org.zkoss.util.Pair<String,SavePropertyBinding>> collectCachedSavePropertyBinding()
FormProxyObjectcollectCachedSavePropertyBinding in interface FormProxyObjectpublic void setPath(String property, ProxyNode parent)
FormProxyObjectsetPath in interface FormProxyObjectproperty - p the propertyparent - parent the parent proxy nodeCopyright © 2020. All rights reserved.