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 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<?> items)
-
Constructor Details
-
PageLoaderList
public PageLoaderList(java.util.List<?> items)
-
-
Method Details
-
setItems
public void setItems(java.util.List<?> items) -
getItems
public java.util.List<?> 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<PageResult<?>>
- Parameters:
controller
- information about pagination.- Returns:
- a pagination structure which contains the paginated list and the total elements.
-