Class LazyPageableListModel<T>

  • All Implemented Interfaces:
    java.io.Serializable, org.zkoss.zul.ext.Pageable, org.zkoss.zul.ext.Selectable<T>, org.zkoss.zul.ListModel<T>, org.zkoss.zul.PageableModel

    public class LazyPageableListModel<T>
    extends org.zkoss.zul.AbstractListModel<T>
    List model which allows to display lazy loaded data from each page Pageable.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.zkoss.zul.AbstractListModel

        org.zkoss.zul.AbstractListModel.DefaultSelectionControl<E extends java.lang.Object>
    • Field Summary

      • Fields inherited from class org.zkoss.zul.AbstractListModel

        _selection
      • Fields inherited from interface org.zkoss.zul.PageableModel

        INTERNAL_EVENT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getElementAt​(int index)  
      protected java.util.List<T> getOrLoadPage​(int pageNumber)  
      int getSize()  
      void refresh()
      Refreshes Pageable.refresh() and clears page cache.
      • Methods inherited from class org.zkoss.zul.AbstractListModel

        addListDataListener, addPagingEventListener, addToSelection, clearSelection, clone, fireEvent, fireSelectionEvent, getActivePage, getPageCount, getPageSize, getSelection, getSelectionControl, isMultiple, isSelected, isSelectionEmpty, newEmptySelection, readSelection, removeAllSelection, removeFromSelection, removeListDataListener, removePagingEventListener, retainAllSelection, setActivePage, setMultiple, setPageSize, setSelection, setSelectionControl, writeSelection
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LazyPageableListModel

        public LazyPageableListModel​(Pageable<T> pageable)
    • Method Detail

      • getSize

        public int getSize()
      • getElementAt

        public T getElementAt​(int index)
      • refresh

        public void refresh()
        Refreshes Pageable.refresh() and clears page cache. Fires ListDataEvent.CONTENTS_CHANGED which causes list re render
      • getOrLoadPage

        protected java.util.List<T> getOrLoadPage​(int pageNumber)