Package org.zkoss.bind.proxy
Class ListModelSetProxy<E>
java.lang.Object
org.zkoss.zul.AbstractListModel<E>
org.zkoss.zul.ListModelSet<E>
org.zkoss.bind.proxy.ListModelSetProxy<E>
- All Implemented Interfaces:
Serializable,Iterable<E>,Collection<E>,Set<E>,javassist.util.proxy.Proxy,FormProxyObject,org.zkoss.zul.ext.Pageable,org.zkoss.zul.ext.Selectable<E>,org.zkoss.zul.ext.Sortable<E>,org.zkoss.zul.ListModel<E>,org.zkoss.zul.PageableModel
public class ListModelSetProxy<E>
extends org.zkoss.zul.ListModelSet<E>
implements javassist.util.proxy.Proxy, FormProxyObject, Serializable
A ListModelSet Proxy
- Since:
- 9.6.0
- Author:
- jameschu
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.zkoss.zul.AbstractListModel
org.zkoss.zul.AbstractListModel.DefaultSelectionControl<E extends Object> -
Field Summary
Fields inherited from class org.zkoss.zul.ListModelSet
_setFields inherited from class org.zkoss.zul.AbstractListModel
_selectionFields inherited from interface org.zkoss.zul.PageableModel
INTERNAL_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionListModelSetProxy(org.zkoss.zul.ListModelSet<E> origin, Annotation[] callerAnnots) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidaddListDataListener(org.zkoss.zul.event.ListDataListener l) voidaddPagingEventListener(org.zkoss.zul.event.PagingListener l) voidaddSelection(E obj) booleanaddToSelection(E obj) voidcacheSavePropertyBinding(String property, SavePropertyBinding s) Cache save property binding by property stringvoidclear()voidclone()Set<org.zkoss.util.Pair<String,SavePropertyBinding>> Collect all of collect cached save property bindingsbooleanbooleancontainsAll(Collection<?> c) protected <T> TcreateProxyObject(T t) booleanintgetElementAt(int j) org.zkoss.zul.ListModelSet<E>Returns the origin object.intintorg.zkoss.zul.ext.SelectionControlintgetSize()getSortDirection(Comparator<E> cmpr) inthashCode()intbooleanisEmpty()booleanReturns whether the form proxy object is dirty or not, including all of its attributes.booleanisSelected(Object obj) booleaniterator()booleannotifyChange(E element) voidvoidbooleanbooleanremoveAll(Collection<?> c) booleanvoidremoveListDataListener(org.zkoss.zul.event.ListDataListener l) voidremovePagingEventListener(org.zkoss.zul.event.PagingListener l) voidremoveSelection(Object obj) voidResets all of the changes of this form from the origin object.booleanretainAll(Collection<?> c) voidsetActivePage(int pg) protected voidsetDirty(boolean d) voidsetFormOwner(Object owner, FormBinding binding) Sets the owner of this form with its binding.voidsetHandler(javassist.util.proxy.MethodHandler mi) voidsetMultiple(boolean multiple) voidsetPageSize(int size) voidSet the property of current form proxy object and it's creatorvoidsetSelection(Collection<? extends E> selection) voidsetSelectionControl(org.zkoss.zul.ext.SelectionControl ctrl) intsize()voidsort()voidsort(Comparator<E> cmpr, boolean ascending) voidSaves all of the changes of this form to the origin object.protected static booleantestEquals(Object e, Object o) Object[]toArray()<T> T[]toArray(T[] a) toString()Methods inherited from class org.zkoss.zul.ListModelSet
fireSelectionEventMethods inherited from class org.zkoss.zul.AbstractListModel
fireEvent, getListDataListeners, getTotalSize, isMultiple, newEmptySelection, readSelection, removeAllSelection, retainAllSelection, writeSelectionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
ListModelSetProxy
-
-
Method Details
-
onDirtyChange
public void onDirtyChange() -
onDataChange
-
setDirty
protected void setDirty(boolean d) -
addListDataListener
public void addListDataListener(org.zkoss.zul.event.ListDataListener l) -
removeListDataListener
public void removeListDataListener(org.zkoss.zul.event.ListDataListener l) -
getSelection
-
setSelection
-
isSelected
-
isSelectionEmpty
public boolean isSelectionEmpty() -
addToSelection
-
removeFromSelection
-
clearSelection
public void clearSelection() -
setMultiple
public void setMultiple(boolean multiple) -
setSelectionControl
public void setSelectionControl(org.zkoss.zul.ext.SelectionControl ctrl) -
getSelectionControl
public org.zkoss.zul.ext.SelectionControl getSelectionControl() -
getPageSize
public int getPageSize()- Specified by:
getPageSizein interfaceorg.zkoss.zul.ext.Pageable- Overrides:
getPageSizein classorg.zkoss.zul.AbstractListModel<E>
-
setPageSize
public void setPageSize(int size) throws org.zkoss.zk.ui.WrongValueException - Specified by:
setPageSizein interfaceorg.zkoss.zul.ext.Pageable- Overrides:
setPageSizein classorg.zkoss.zul.AbstractListModel<E>- Throws:
org.zkoss.zk.ui.WrongValueException
-
getPageCount
public int getPageCount()- Specified by:
getPageCountin interfaceorg.zkoss.zul.ext.Pageable- Overrides:
getPageCountin classorg.zkoss.zul.AbstractListModel<E>
-
getActivePage
public int getActivePage()- Specified by:
getActivePagein interfaceorg.zkoss.zul.ext.Pageable- Overrides:
getActivePagein classorg.zkoss.zul.AbstractListModel<E>
-
setActivePage
public void setActivePage(int pg) throws org.zkoss.zk.ui.WrongValueException - Specified by:
setActivePagein interfaceorg.zkoss.zul.ext.Pageable- Overrides:
setActivePagein classorg.zkoss.zul.AbstractListModel<E>- Throws:
org.zkoss.zk.ui.WrongValueException
-
addPagingEventListener
public void addPagingEventListener(org.zkoss.zul.event.PagingListener l) - Specified by:
addPagingEventListenerin interfaceorg.zkoss.zul.PageableModel- Overrides:
addPagingEventListenerin classorg.zkoss.zul.AbstractListModel<E>
-
removePagingEventListener
public void removePagingEventListener(org.zkoss.zul.event.PagingListener l) - Specified by:
removePagingEventListenerin interfaceorg.zkoss.zul.PageableModel- Overrides:
removePagingEventListenerin classorg.zkoss.zul.AbstractListModel<E>
-
getInnerSet
- Overrides:
getInnerSetin classorg.zkoss.zul.ListModelSet<E>
-
getSize
public int getSize() -
getElementAt
-
notifyChange
- Overrides:
notifyChangein classorg.zkoss.zul.ListModelSet<E>
-
add
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>- Specified by:
containsAllin interfaceSet<E>- Overrides:
containsAllin classorg.zkoss.zul.ListModelSet<E>
-
equals
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
toString
- Overrides:
toStringin classorg.zkoss.zul.ListModelSet<E>
-
iterator
-
remove
-
indexOf
- Overrides:
indexOfin classorg.zkoss.zul.ListModelSet<E>
-
removeAll
-
retainAll
-
size
public int size() -
toArray
-
toArray
public <T> T[] toArray(T[] a) -
sort
-
sort
public void sort() -
getSortDirection
-
clone
- Overrides:
clonein classorg.zkoss.zul.ListModelSet<E>
-
addSelection
-
removeSelection
-
setHandler
public void setHandler(javassist.util.proxy.MethodHandler mi) - Specified by:
setHandlerin interfacejavassist.util.proxy.Proxy
-
getOriginObject
Description copied from interface:FormProxyObjectReturns the origin object.- Specified by:
getOriginObjectin interfaceFormProxyObject
-
resetFromOrigin
public void resetFromOrigin()Description copied from interface:FormProxyObjectResets all of the changes of this form from the origin object.- Specified by:
resetFromOriginin interfaceFormProxyObject
-
submitToOrigin
Description copied from interface:FormProxyObjectSaves all of the changes of this form to the origin object.- Specified by:
submitToOriginin interfaceFormProxyObject
-
isFormDirty
public boolean isFormDirty()Description copied from interface:FormProxyObjectReturns whether the form proxy object is dirty or not, including all of its attributes.- Specified by:
isFormDirtyin interfaceFormProxyObject
-
setFormOwner
Description copied from interface:FormProxyObjectSets the owner of this form with its binding.- Specified by:
setFormOwnerin interfaceFormProxyObject- Parameters:
owner- the object associated with this form.
-
setPath
Description copied from interface:FormProxyObjectSet the property of current form proxy object and it's creator- Specified by:
setPathin interfaceFormProxyObject- Parameters:
property- p the propertyparent- parent the parent proxy node
-
cacheSavePropertyBinding
Description copied from interface:FormProxyObjectCache save property binding by property string- Specified by:
cacheSavePropertyBindingin interfaceFormProxyObject- Parameters:
property- the property of save property bindings- the save property binding
-
collectCachedSavePropertyBinding
Description copied from interface:FormProxyObjectCollect all of collect cached save property bindings- Specified by:
collectCachedSavePropertyBindingin interfaceFormProxyObject
-
testEquals
-
createProxyObject
protected <T> T createProxyObject(T t)
-