|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.bind.proxy.AbstractCollectionProxy<E>
public abstract class AbstractCollectionProxy<E>
This class provides a skeletal implementation of the Collection
Field Summary | |
---|---|
protected boolean |
_dirty
|
protected boolean |
isImmutableElements
|
Constructor Summary | |
---|---|
AbstractCollectionProxy(java.util.Collection<E> origin,
java.lang.annotation.Annotation[] callerAnnots)
|
Method Summary | ||
---|---|---|
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
|
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()
|
|
|
toArray(T[] a)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Collection |
---|
equals, hashCode |
Field Detail |
---|
protected boolean _dirty
protected boolean isImmutableElements
Constructor Detail |
---|
public AbstractCollectionProxy(java.util.Collection<E> origin, java.lang.annotation.Annotation[] callerAnnots)
Method Detail |
---|
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()
iterator
in interface java.lang.Iterable<E>
iterator
in interface java.util.Collection<E>
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 add(E e)
add
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |