Java org.springframework.beans.support PagedListHolder fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.beans.support PagedListHolder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.beans.support PagedListHolder.

The text is from its open source code.

Constructor

PagedListHolder(List source)
Create a new holder instance with the given source list, starting with a default sort definition (with "toggleAscendingOnProperty" activated).
PagedListHolder()
Create a new holder instance.

Method

intgetFirstLinkedPage()
Return the first page to which create a link around the current page.
intgetLastLinkedPage()
Return the last page to which create a link around the current page.
intgetNrOfElements()
Return the total number of elements in the source list.
intgetPage()
Return the current page number.
intgetPageCount()
Return the number of pages for the current source list.
ListgetPageList()
Return a sub-list representing the current page.
intgetPageSize()
Return the current page size.
SortDefinitiongetSort()
Return the sort definition for this holder.
booleanisFirstPage()
Return if the current page is the first one.
booleanisLastPage()
Return if the current page is the last one.
voidnextPage()
Switch to next page.
voidpreviousPage()
Switch to previous page.
voidresort()
Resort the list if necessary, i.e.
voidsetMaxLinkedPages(int maxLinkedPages)
Set the maximum number of page links to a few pages around the current one.
voidsetPage(int page)
Set the current page number.
voidsetPageSize(int pageSize)
Set the current page size.
voidsetSort(@Nullable SortDefinition sort)
Set the sort definition for this holder.
voidsetSource(List source)
Set the source list for this holder.