@Unstable public class LiveDataPaginationConfiguration extends Object
Constructor and Description |
---|
LiveDataPaginationConfiguration() |
Modifier and Type | Method and Description |
---|---|
Integer |
getMaxShownPages() |
List<Integer> |
getPageSizes() |
Boolean |
getShowEntryRange() |
Boolean |
getShowFirstLast() |
Boolean |
getShowNextPrevious() |
Boolean |
getShowPageSizeDropdown() |
void |
initialize()
Prevent
null values where it's possible. |
void |
setMaxShownPages(Integer maxShownPages)
Sets the maximum number of page links to display in the pagination.
|
void |
setPageSizes(List<Integer> pageSizes)
Sets the values to display in the page size drop down that allows the user to change the page size.
|
void |
setShowEntryRange(Boolean showEntryRange)
Sets whether to show or not the current entry range.
|
void |
setShowFirstLast(Boolean showFirstLast)
Sets whether to show or not the first / last pagination links.
|
void |
setShowNextPrevious(Boolean showNextPrevious)
Sets whether to show or not the next / previous pagination links.
|
void |
setShowPageSizeDropdown(Boolean showPageSizeDropdown)
Sets whether to show or not the page size drop down that the user can use to change the number of entries
displayed per page.
|
public Integer getMaxShownPages()
public void setMaxShownPages(Integer maxShownPages)
maxShownPages
- the maximum number of page links to display in the paginationpublic List<Integer> getPageSizes()
public void setPageSizes(List<Integer> pageSizes)
pageSizes
- the values to display on the page size drop downpublic Boolean getShowEntryRange()
public void setShowEntryRange(Boolean showEntryRange)
showEntryRange
- true
to show the current entry range, false
otherwisepublic Boolean getShowNextPrevious()
public void setShowNextPrevious(Boolean showNextPrevious)
showNextPrevious
- true
to show the next / previous pagination links, false
otherwisepublic Boolean getShowFirstLast()
public void setShowFirstLast(Boolean showFirstLast)
showFirstLast
- true
to show the first / last pagination links, false
otherwisepublic Boolean getShowPageSizeDropdown()
public void setShowPageSizeDropdown(Boolean showPageSizeDropdown)
showPageSizeDropdown
- true
to show the page size drop down, false
otherwisepublic void initialize()
null
values where it's possible.Copyright © 2004–2022 XWiki. All rights reserved.