Class PageResultLoaderList<T>

java.lang.Object
org.eclipse.nebula.widgets.pagination.collections.PageResultLoaderList<T>
All Implemented Interfaces:
IPageLoader<PageResult<T>>

public class PageResultLoaderList<T>
extends java.lang.Object
implements IPageLoader<PageResult<T>>
Implementation of IPageLoader with java List.
  • Constructor Summary

    Constructors 
    Constructor Description
    PageResultLoaderList​(java.util.List<T> items)  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<T> getItems()  
    PageResult<T> loadPage​(PageableController controller)
    Load the paginated list by using the PageableController information about pagination (sort, page index etc) and returns a page result which contains the paginated list and the total elements (ex: PageResult, Spring Data Page, etc).
    void setItems​(java.util.List<T> items)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • setItems

      public void setItems​(java.util.List<T> items)
    • getItems

      public java.util.List<T> getItems()
    • loadPage

      public PageResult<T> loadPage​(PageableController controller)
      Description copied from interface: IPageLoader
      Load the paginated list by using the PageableController information about pagination (sort, page index etc) and returns a page result which contains the paginated list and the total elements (ex: PageResult, Spring Data Page, etc).
      Specified by:
      loadPage in interface IPageLoader<T>
      Parameters:
      controller - information about pagination.
      Returns:
      a pagination structure which contains the paginated list and the total elements.