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:
  • Constructor Details

    • ListModelMapProxy

      public ListModelMapProxy(org.zkoss.zul.ListModelMap<K,V> origin, Annotation[] callerAnnots)
  • Method Details

    • addListDataListener

      public void addListDataListener(org.zkoss.zul.event.ListDataListener l)
      Specified by:
      addListDataListener in interface org.zkoss.zul.ListModel<K>
      Overrides:
      addListDataListener in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • removeListDataListener

      public void removeListDataListener(org.zkoss.zul.event.ListDataListener l)
      Specified by:
      removeListDataListener in interface org.zkoss.zul.ListModel<K>
      Overrides:
      removeListDataListener in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • getSelection

      public Set<Map.Entry<K,V>> getSelection()
      Specified by:
      getSelection in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      getSelection in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • setSelection

      public void setSelection(Set<Map.Entry<K,V>> selection)
    • isSelected

      public boolean isSelected(Object obj)
      Specified by:
      isSelected in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      isSelected in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • isSelectionEmpty

      public boolean isSelectionEmpty()
      Specified by:
      isSelectionEmpty in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      isSelectionEmpty in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • addToSelection

      public boolean addToSelection(Map.Entry<K,V> obj)
      Specified by:
      addToSelection in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      addToSelection in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • removeFromSelection

      public boolean removeFromSelection(Object obj)
      Specified by:
      removeFromSelection in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      removeFromSelection in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • clearSelection

      public void clearSelection()
      Specified by:
      clearSelection in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      clearSelection in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • setMultiple

      public void setMultiple(boolean multiple)
      Specified by:
      setMultiple in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      setMultiple in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • setSelectionControl

      public void setSelectionControl(org.zkoss.zul.ext.SelectionControl ctrl)
      Specified by:
      setSelectionControl in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      setSelectionControl in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • getSelectionControl

      public org.zkoss.zul.ext.SelectionControl getSelectionControl()
      Specified by:
      getSelectionControl in interface org.zkoss.zul.ext.Selectable<K>
      Overrides:
      getSelectionControl in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • addSelection

      public void addSelection(Map.Entry<K,V> obj)
    • removeSelection

      public void removeSelection(Object obj)
    • getPageSize

      public int getPageSize()
      Specified by:
      getPageSize in interface org.zkoss.zul.ext.Pageable
      Overrides:
      getPageSize in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • setPageSize

      public void setPageSize(int size) throws org.zkoss.zk.ui.WrongValueException
      Specified by:
      setPageSize in interface org.zkoss.zul.ext.Pageable
      Overrides:
      setPageSize in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
      Throws:
      org.zkoss.zk.ui.WrongValueException
    • getPageCount

      public int getPageCount()
      Specified by:
      getPageCount in interface org.zkoss.zul.ext.Pageable
      Overrides:
      getPageCount in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • getActivePage

      public int getActivePage()
      Specified by:
      getActivePage in interface org.zkoss.zul.ext.Pageable
      Overrides:
      getActivePage in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • setActivePage

      public void setActivePage(int pg) throws org.zkoss.zk.ui.WrongValueException
      Specified by:
      setActivePage in interface org.zkoss.zul.ext.Pageable
      Overrides:
      setActivePage in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
      Throws:
      org.zkoss.zk.ui.WrongValueException
    • addPagingEventListener

      public void addPagingEventListener(org.zkoss.zul.event.PagingListener l)
      Specified by:
      addPagingEventListener in interface org.zkoss.zul.PageableModel
      Overrides:
      addPagingEventListener in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • removePagingEventListener

      public void removePagingEventListener(org.zkoss.zul.event.PagingListener l)
      Specified by:
      removePagingEventListener in interface org.zkoss.zul.PageableModel
      Overrides:
      removePagingEventListener in class org.zkoss.zul.AbstractListModel<Map.Entry<K,V>>
    • getInnerMap

      public Map<K,V> getInnerMap()
      Overrides:
      getInnerMap in class org.zkoss.zul.ListModelMap<K,V>
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.zkoss.zul.ListModel<K>
      Overrides:
      getSize in class org.zkoss.zul.ListModelMap<K,V>
    • getElementAt

      public Map.Entry<K,V> getElementAt(int j)
      Specified by:
      getElementAt in interface org.zkoss.zul.ListModel<K>
      Overrides:
      getElementAt in class org.zkoss.zul.ListModelMap<K,V>
    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface Map<K,V>
      Overrides:
      containsKey in class org.zkoss.zul.ListModelMap<K,V>
    • containsValue

      public boolean containsValue(Object value)
      Specified by:
      containsValue in interface Map<K,V>
      Overrides:
      containsValue in class org.zkoss.zul.ListModelMap<K,V>
    • entrySet

      public Set<Map.Entry<K,V>> entrySet()
      Specified by:
      entrySet in interface Map<K,V>
      Overrides:
      entrySet in class org.zkoss.zul.ListModelMap<K,V>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Map<K,V>
      Overrides:
      equals in class org.zkoss.zul.ListModelMap<K,V>
    • toString

      public String toString()
      Overrides:
      toString in class org.zkoss.zul.ListModelMap<K,V>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Map<K,V>
      Overrides:
      hashCode in class org.zkoss.zul.ListModelMap<K,V>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Map<K,V>
      Overrides:
      isEmpty in class org.zkoss.zul.ListModelMap<K,V>
    • get

      public V get(Object key)
      Specified by:
      get in interface Map<K,V>
      Overrides:
      get in class org.zkoss.zul.ListModelMap<K,V>
    • put

      public V put(K key, V value)
      Specified by:
      put in interface Map<K,V>
      Overrides:
      put in class org.zkoss.zul.ListModelMap<K,V>
    • remove

      public V remove(Object key)
      Specified by:
      remove in interface Map<K,V>
      Overrides:
      remove in class org.zkoss.zul.ListModelMap<K,V>
    • putAll

      public void putAll(Map<? extends K,? extends V> m)
      Specified by:
      putAll in interface Map<K,V>
      Overrides:
      putAll in class org.zkoss.zul.ListModelMap<K,V>
    • clear

      public void clear()
      Specified by:
      clear in interface Map<K,V>
      Overrides:
      clear in class org.zkoss.zul.ListModelMap<K,V>
    • keySet

      public Set<K> keySet()
      Specified by:
      keySet in interface Map<K,V>
      Overrides:
      keySet in class org.zkoss.zul.ListModelMap<K,V>
    • values

      public Collection<V> values()
      Specified by:
      values in interface Map<K,V>
      Overrides:
      values in class org.zkoss.zul.ListModelMap<K,V>
    • indexOfKey

      public int indexOfKey(Object o)
      Overrides:
      indexOfKey in class org.zkoss.zul.ListModelMap<K,V>
    • indexOf

      public int indexOf(Object o)
      Overrides:
      indexOf in class org.zkoss.zul.ListModelMap<K,V>
    • size

      public int size()
      Specified by:
      size in interface Map<K,V>
      Overrides:
      size in class org.zkoss.zul.ListModelMap<K,V>
    • sort

      public void sort(Comparator<Map.Entry<K,V>> cmpr, boolean ascending)
      Specified by:
      sort in interface org.zkoss.zul.ext.Sortable<K>
      Overrides:
      sort in class org.zkoss.zul.ListModelMap<K,V>
    • sort

      public void sort()
      Specified by:
      sort in interface org.zkoss.zul.ext.Sortable<K>
      Overrides:
      sort in class org.zkoss.zul.ListModelMap<K,V>
    • getSortDirection

      public String getSortDirection(Comparator<Map.Entry<K,V>> cmpr)
      Specified by:
      getSortDirection in interface org.zkoss.zul.ext.Sortable<K>
      Overrides:
      getSortDirection in class org.zkoss.zul.ListModelMap<K,V>
    • clone

      public Object clone()
      Overrides:
      clone in class org.zkoss.zul.ListModelMap<K,V>
    • getOriginObject

      public org.zkoss.zul.ListModelMap<K,V> getOriginObject()
      Description copied from interface: FormProxyObject
      Returns the origin object.
      Specified by:
      getOriginObject in interface FormProxyObject
    • onDirtyChange

      public void onDirtyChange()
    • onDataChange

      public void onDataChange(Object o)
    • setDirty

      protected void setDirty(boolean d)
    • setHandler

      public void setHandler(javassist.util.proxy.MethodHandler mi)
      Specified by:
      setHandler in interface javassist.util.proxy.Proxy
    • isFormDirty

      public boolean isFormDirty()
      Description copied from interface: FormProxyObject
      Returns whether the form proxy object is dirty or not, including all of its attributes.
      Specified by:
      isFormDirty in interface FormProxyObject
    • resetFromOrigin

      public void resetFromOrigin()
      Description copied from interface: FormProxyObject
      Resets all of the changes of this form from the origin object.
      Specified by:
      resetFromOrigin in interface FormProxyObject
    • submitToOrigin

      public void submitToOrigin(BindContext ctx)
      Description copied from interface: FormProxyObject
      Saves all of the changes of this form to the origin object.
      Specified by:
      submitToOrigin in interface FormProxyObject
    • testEquals

      protected static boolean testEquals(Object e, Object o)
    • setFormOwner

      public void setFormOwner(Object owner, FormBinding binding)
      Description copied from interface: FormProxyObject
      Sets the owner of this form with its binding.
      Specified by:
      setFormOwner in interface FormProxyObject
      Parameters:
      owner - the object associated with this form.
    • cacheSavePropertyBinding

      public void cacheSavePropertyBinding(String property, SavePropertyBinding s)
      Description copied from interface: FormProxyObject
      Cache save property binding by property string
      Specified by:
      cacheSavePropertyBinding in interface FormProxyObject
      Parameters:
      property - the property of save property binding
      s - the save property binding
    • collectCachedSavePropertyBinding

      public Set<org.zkoss.util.Pair<String,SavePropertyBinding>> collectCachedSavePropertyBinding()
      Description copied from interface: FormProxyObject
      Collect all of collect cached save property bindings
      Specified by:
      collectCachedSavePropertyBinding in interface FormProxyObject
    • setPath

      public void setPath(String property, ProxyNode parent)
      Description copied from interface: FormProxyObject
      Set the property of current form proxy object and it's creator
      Specified by:
      setPath in interface FormProxyObject
      Parameters:
      property - p the property
      parent - parent the parent proxy node