Class PageLoaderList

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

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

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

    Modifier and Type Method Description
    java.util.List<?> getItems()  
    PageResult<?> 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<?> 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<?> items)
    • getItems

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

      public PageResult<?> 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<PageResult<?>>
      Parameters:
      controller - information about pagination.
      Returns:
      a pagination structure which contains the paginated list and the total elements.