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 thePageableController
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)
-
Constructor Details
-
Method Details
-
setItems
-
getItems
-
loadPage
Description copied from interface:IPageLoader
Load the paginated list by using thePageableController
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 interfaceIPageLoader<T>
- Parameters:
controller
- information about pagination.- Returns:
- a pagination structure which contains the paginated list and the total elements.
-