Class ListModelListProxy<E>

java.lang.Object
org.zkoss.zul.AbstractListModel<E>
org.zkoss.zul.ListModelList<E>
org.zkoss.bind.proxy.ListModelListProxy<E>
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, List<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 ListModelListProxy<E> extends org.zkoss.zul.ListModelList<E> implements javassist.util.proxy.Proxy, FormProxyObject, Serializable
A ListModelList Proxy
Since:
9.6.0
Author:
jameschu
See Also:
  • Constructor Details

    • ListModelListProxy

      public ListModelListProxy(org.zkoss.zul.ListModelList<E> origin, Annotation[] callerAnnots)
  • Method Details

    • getCache

      public org.zkoss.zul.ListModelList<E> getCache()
    • onDirtyChange

      public void onDirtyChange()
    • onDataChange

      public void onDataChange(Object o)
    • setDirty

      protected void setDirty(boolean d)
    • addListDataListener

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

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

      public Set<E> getSelection()
      Specified by:
      getSelection in interface org.zkoss.zul.ext.Selectable<E>
      Overrides:
      getSelection in class org.zkoss.zul.AbstractListModel<E>
    • setSelection

      public void setSelection(Collection<? extends E> selection)
      Specified by:
      setSelection in interface org.zkoss.zul.ext.Selectable<E>
      Overrides:
      setSelection in class org.zkoss.zul.AbstractListModel<E>
    • isSelected

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

      public boolean isSelectionEmpty()
      Specified by:
      isSelectionEmpty in interface org.zkoss.zul.ext.Selectable<E>
      Overrides:
      isSelectionEmpty in class org.zkoss.zul.AbstractListModel<E>
    • addToSelection

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

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

      public void clearSelection()
      Specified by:
      clearSelection in interface org.zkoss.zul.ext.Selectable<E>
      Overrides:
      clearSelection in class org.zkoss.zul.AbstractListModel<E>
    • setMultiple

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

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

      public org.zkoss.zul.ext.SelectionControl getSelectionControl()
      Specified by:
      getSelectionControl in interface org.zkoss.zul.ext.Selectable<E>
      Overrides:
      getSelectionControl in class org.zkoss.zul.AbstractListModel<E>
    • getPageSize

      public int getPageSize()
      Specified by:
      getPageSize in interface org.zkoss.zul.ext.Pageable
      Overrides:
      getPageSize in class org.zkoss.zul.AbstractListModel<E>
    • 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<E>
      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<E>
    • getActivePage

      public int getActivePage()
      Specified by:
      getActivePage in interface org.zkoss.zul.ext.Pageable
      Overrides:
      getActivePage in class org.zkoss.zul.AbstractListModel<E>
    • 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<E>
      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<E>
    • 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<E>
    • removeRange

      public void removeRange(int fromIndex, int toIndex)
      Overrides:
      removeRange in class org.zkoss.zul.ListModelList<E>
    • getInnerList

      public List<E> getInnerList()
      Overrides:
      getInnerList in class org.zkoss.zul.ListModelList<E>
    • getSize

      public int getSize()
      Specified by:
      getSize in interface org.zkoss.zul.ListModel<E>
      Overrides:
      getSize in class org.zkoss.zul.ListModelList<E>
    • getElementAt

      public E getElementAt(int j)
      Specified by:
      getElementAt in interface org.zkoss.zul.ListModel<E>
      Overrides:
      getElementAt in class org.zkoss.zul.ListModelList<E>
    • add

      public boolean add(E o)
      Specified by:
      add in interface Collection<E>
      Specified by:
      add in interface List<E>
      Overrides:
      add in class org.zkoss.zul.ListModelList<E>
    • add

      public void add(int index, E element)
      Specified by:
      add in interface List<E>
      Overrides:
      add in class org.zkoss.zul.ListModelList<E>
    • notifyChange

      public boolean notifyChange(E element)
      Overrides:
      notifyChange in class org.zkoss.zul.ListModelList<E>
    • addAll

      public boolean addAll(Collection<? extends E> c)
      Specified by:
      addAll in interface Collection<E>
      Specified by:
      addAll in interface List<E>
      Overrides:
      addAll in class org.zkoss.zul.ListModelList<E>
    • addAll

      public boolean addAll(int index, Collection<? extends E> c)
      Specified by:
      addAll in interface List<E>
      Overrides:
      addAll in class org.zkoss.zul.ListModelList<E>
    • clear

      public void clear()
      Specified by:
      clear in interface Collection<E>
      Specified by:
      clear in interface List<E>
      Overrides:
      clear in class org.zkoss.zul.ListModelList<E>
    • contains

      public boolean contains(Object o)
      Specified by:
      contains in interface Collection<E>
      Specified by:
      contains in interface List<E>
      Overrides:
      contains in class org.zkoss.zul.ListModelList<E>
    • containsAll

      public boolean containsAll(Collection<?> c)
      Specified by:
      containsAll in interface Collection<E>
      Specified by:
      containsAll in interface List<E>
      Overrides:
      containsAll in class org.zkoss.zul.ListModelList<E>
    • get

      public E get(int index)
      Specified by:
      get in interface List<E>
      Overrides:
      get in class org.zkoss.zul.ListModelList<E>
    • indexOf

      public int indexOf(Object o)
      Specified by:
      indexOf in interface List<E>
      Overrides:
      indexOf in class org.zkoss.zul.ListModelList<E>
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Collection<E>
      Specified by:
      isEmpty in interface List<E>
      Overrides:
      isEmpty in class org.zkoss.zul.ListModelList<E>
    • lastIndexOf

      public int lastIndexOf(Object o)
      Specified by:
      lastIndexOf in interface List<E>
      Overrides:
      lastIndexOf in class org.zkoss.zul.ListModelList<E>
    • listIterator

      public ListIterator<E> listIterator()
      Specified by:
      listIterator in interface List<E>
      Overrides:
      listIterator in class org.zkoss.zul.ListModelList<E>
    • listIterator

      public ListIterator<E> listIterator(int index)
      Specified by:
      listIterator in interface List<E>
      Overrides:
      listIterator in class org.zkoss.zul.ListModelList<E>
    • remove

      public boolean remove(Object o)
      Specified by:
      remove in interface Collection<E>
      Specified by:
      remove in interface List<E>
      Overrides:
      remove in class org.zkoss.zul.ListModelList<E>
    • remove

      public E remove(int index)
      Specified by:
      remove in interface List<E>
      Overrides:
      remove in class org.zkoss.zul.ListModelList<E>
    • removeAll

      public boolean removeAll(Collection<?> c)
      Specified by:
      removeAll in interface Collection<E>
      Specified by:
      removeAll in interface List<E>
      Overrides:
      removeAll in class org.zkoss.zul.ListModelList<E>
    • retainAll

      public boolean retainAll(Collection<?> c)
      Specified by:
      retainAll in interface Collection<E>
      Specified by:
      retainAll in interface List<E>
      Overrides:
      retainAll in class org.zkoss.zul.ListModelList<E>
    • iterator

      public Iterator<E> iterator()
      Specified by:
      iterator in interface Collection<E>
      Specified by:
      iterator in interface Iterable<E>
      Specified by:
      iterator in interface List<E>
      Overrides:
      iterator in class org.zkoss.zul.ListModelList<E>
    • set

      public E set(int index, E element)
      Specified by:
      set in interface List<E>
      Overrides:
      set in class org.zkoss.zul.ListModelList<E>
    • size

      public int size()
      Specified by:
      size in interface Collection<E>
      Specified by:
      size in interface List<E>
      Overrides:
      size in class org.zkoss.zul.ListModelList<E>
    • subList

      public List<E> subList(int fromIndex, int toIndex)
      Specified by:
      subList in interface List<E>
      Overrides:
      subList in class org.zkoss.zul.ListModelList<E>
    • toArray

      public Object[] toArray()
      Specified by:
      toArray in interface Collection<E>
      Specified by:
      toArray in interface List<E>
      Overrides:
      toArray in class org.zkoss.zul.ListModelList<E>
    • toArray

      public <T> T[] toArray(T[] a)
      Specified by:
      toArray in interface Collection<E>
      Specified by:
      toArray in interface List<E>
      Overrides:
      toArray in class org.zkoss.zul.ListModelList<E>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface Collection<E>
      Specified by:
      equals in interface List<E>
      Overrides:
      equals in class org.zkoss.zul.ListModelList<E>
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface Collection<E>
      Specified by:
      hashCode in interface List<E>
      Overrides:
      hashCode in class org.zkoss.zul.ListModelList<E>
    • toString

      public String toString()
      Overrides:
      toString in class org.zkoss.zul.ListModelList<E>
    • sort

      public void sort(Comparator<E> cmpr, boolean ascending)
      Specified by:
      sort in interface org.zkoss.zul.ext.Sortable<E>
      Overrides:
      sort in class org.zkoss.zul.ListModelList<E>
    • sort

      public void sort()
      Specified by:
      sort in interface org.zkoss.zul.ext.Sortable<E>
      Overrides:
      sort in class org.zkoss.zul.ListModelList<E>
    • getSortDirection

      public String getSortDirection(Comparator<E> cmpr)
      Specified by:
      getSortDirection in interface org.zkoss.zul.ext.Sortable<E>
      Overrides:
      getSortDirection in class org.zkoss.zul.ListModelList<E>
    • clone

      public Object clone()
      Overrides:
      clone in class org.zkoss.zul.ListModelList<E>
    • setHandler

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

      public org.zkoss.zul.ListModelList<E> getOriginObject()
      Description copied from interface: FormProxyObject
      Returns the origin object.
      Specified by:
      getOriginObject 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
    • 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
    • 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.
    • 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
    • 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
    • testEquals

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

      protected <T> T createProxyObject(T t)