Package org.zkoss.bind.proxy
Class ListModelMapProxy<K,V>
java.lang.Object
org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
org.zkoss.zul.ListModelMap<K,V>
org.zkoss.bind.proxy.ListModelMapProxy<K,V>
- All Implemented Interfaces:
Serializable,Map<K,,V> javassist.util.proxy.Proxy,FormProxyObject,org.zkoss.zul.ext.Pageable,org.zkoss.zul.ext.Selectable<Map.Entry<K,,V>> org.zkoss.zul.ext.Sortable<Map.Entry<K,,V>> org.zkoss.zul.ListModel<Map.Entry<K,,V>> org.zkoss.zul.PageableModel
public class ListModelMapProxy<K,V>
extends org.zkoss.zul.ListModelMap<K,V>
implements javassist.util.proxy.Proxy, FormProxyObject, Serializable
A ListModelMap 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.ListModelMap
_mapFields inherited from class org.zkoss.zul.AbstractListModel
_selectionFields inherited from interface org.zkoss.zul.PageableModel
INTERNAL_EVENT -
Constructor Summary
ConstructorsConstructorDescriptionListModelMapProxy(org.zkoss.zul.ListModelMap<K, V> origin, Annotation[] callerAnnots) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListDataListener(org.zkoss.zul.event.ListDataListener l) voidaddPagingEventListener(org.zkoss.zul.event.PagingListener l) voidaddSelection(Map.Entry<K, V> obj) booleanaddToSelection(Map.Entry<K, V> 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 bindingsbooleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()booleanintgetElementAt(int j) Returns the origin object.intintorg.zkoss.zul.ext.SelectionControlintgetSize()getSortDirection(Comparator<Map.Entry<K, V>> cmpr) inthashCode()intintindexOfKey(Object o) booleanisEmpty()booleanReturns whether the form proxy object is dirty or not, including all of its attributes.booleanisSelected(Object obj) booleankeySet()voidvoidvoidbooleanvoidremoveListDataListener(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.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(Set<Map.Entry<K, V>> selection) voidsetSelectionControl(org.zkoss.zul.ext.SelectionControl ctrl) intsize()voidsort()voidsort(Comparator<Map.Entry<K, V>> cmpr, boolean ascending) voidSaves all of the changes of this form to the origin object.protected static booleantestEquals(Object e, Object o) toString()values()Methods inherited from class org.zkoss.zul.ListModelMap
fireSelectionEvent, readSelection, writeSelectionMethods inherited from class org.zkoss.zul.AbstractListModel
fireEvent, getListDataListeners, getTotalSize, isMultiple, newEmptySelection, removeAllSelection, retainAllSelection, setSelectionMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ListModelMapProxy
-
-
Method Details
-
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() -
addSelection
-
removeSelection
-
getPageSize
public int getPageSize() -
setPageSize
public void setPageSize(int size) throws org.zkoss.zk.ui.WrongValueException -
getPageCount
public int getPageCount() -
getActivePage
public int getActivePage() -
setActivePage
public void setActivePage(int pg) throws org.zkoss.zk.ui.WrongValueException -
addPagingEventListener
public void addPagingEventListener(org.zkoss.zul.event.PagingListener l) -
removePagingEventListener
public void removePagingEventListener(org.zkoss.zul.event.PagingListener l) -
getInnerMap
-
getSize
public int getSize() -
getElementAt
-
containsKey
-
containsValue
-
entrySet
-
equals
-
toString
-
hashCode
public int hashCode() -
isEmpty
public boolean isEmpty() -
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
indexOfKey
-
indexOf
-
size
public int size() -
sort
-
sort
public void sort() -
getSortDirection
-
clone
-
getOriginObject
Description copied from interface:FormProxyObjectReturns the origin object.- Specified by:
getOriginObjectin interfaceFormProxyObject
-
onDirtyChange
public void onDirtyChange() -
onDataChange
-
setDirty
protected void setDirty(boolean d) -
setHandler
public void setHandler(javassist.util.proxy.MethodHandler mi) - Specified by:
setHandlerin interfacejavassist.util.proxy.Proxy
-
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
-
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
-
testEquals
-
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.
-
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
-
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
-