Package org.xwiki.livedata
Class LiveDataPaginationConfiguration
- java.lang.Object
-
- org.xwiki.livedata.LiveDataPaginationConfiguration
-
public class LiveDataPaginationConfiguration extends Object
Describes the live data pagination configuration.- Since:
- 12.10
- Version:
- $Id: 8c10ae64ac65f8992779f508b4dbb1ff28fd4d5a $
-
-
Constructor Summary
Constructors Constructor Description LiveDataPaginationConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetMaxShownPages()List<Integer>getPageSizes()BooleangetShowEntryRange()BooleangetShowFirstLast()BooleangetShowNextPrevious()BooleangetShowPageSizeDropdown()voidinitialize()Preventnullvalues where it's possible.voidsetMaxShownPages(Integer maxShownPages)Sets the maximum number of page links to display in the pagination.voidsetPageSizes(List<Integer> pageSizes)Sets the values to display in the page size drop down that allows the user to change the page size.voidsetShowEntryRange(Boolean showEntryRange)Sets whether to show or not the current entry range.voidsetShowFirstLast(Boolean showFirstLast)Sets whether to show or not the first / last pagination links.voidsetShowNextPrevious(Boolean showNextPrevious)Sets whether to show or not the next / previous pagination links.voidsetShowPageSizeDropdown(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.
-
-
-
Method Detail
-
getMaxShownPages
public Integer getMaxShownPages()
- Returns:
- the maximum number of page links to display in the pagination
-
setMaxShownPages
public void setMaxShownPages(Integer maxShownPages)
Sets the maximum number of page links to display in the pagination.- Parameters:
maxShownPages- the maximum number of page links to display in the pagination
-
getPageSizes
public List<Integer> getPageSizes()
- Returns:
- the values to display in the page size drop down
-
setPageSizes
public 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.- Parameters:
pageSizes- the values to display on the page size drop down
-
getShowEntryRange
public Boolean getShowEntryRange()
- Returns:
- whether to show or not the current entry range
-
setShowEntryRange
public void setShowEntryRange(Boolean showEntryRange)
Sets whether to show or not the current entry range.- Parameters:
showEntryRange-trueto show the current entry range,falseotherwise
-
getShowNextPrevious
public Boolean getShowNextPrevious()
- Returns:
- whether to show or not the next / previous pagination links
-
setShowNextPrevious
public void setShowNextPrevious(Boolean showNextPrevious)
Sets whether to show or not the next / previous pagination links.- Parameters:
showNextPrevious-trueto show the next / previous pagination links,falseotherwise
-
getShowFirstLast
public Boolean getShowFirstLast()
- Returns:
- whether to show or not the first / last pagination links
-
setShowFirstLast
public void setShowFirstLast(Boolean showFirstLast)
Sets whether to show or not the first / last pagination links.- Parameters:
showFirstLast-trueto show the first / last pagination links,falseotherwise
-
getShowPageSizeDropdown
public Boolean getShowPageSizeDropdown()
- Returns:
- whether to show or not the page size drop down that the user can use to change the number of entries displayed per page
-
setShowPageSizeDropdown
public 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.- Parameters:
showPageSizeDropdown-trueto show the page size drop down,falseotherwise
-
initialize
public void initialize()
Preventnullvalues where it's possible.
-
-