public class PageControlDto extends Object implements Serializable
A PageControlDto can be used to display a PageDto on a web site.
This page control can be processed by a JAXBContext and the Jackson
JSON processor.
| Constructor and Description |
|---|
PageControlDto()
Default constructor.
|
PageControlDto(PageDto page,
PaginationDto pagination,
String pageNumberParamName,
String pageSizeParamName,
List<PageSizeSelectorOptionDto> pageSizeSelectorOptions,
String comparatorParamName,
String comparatorParamValue,
boolean querySupported,
String queryParamName)
Creates a page control with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getComparatorParamName()
Returns the parameter name of the comparator item.
|
String |
getComparatorParamValue()
Returns the serialized value of the comparator item.
|
PageDto |
getPage()
Returns the page.
|
String |
getPageNumberParamName()
Returns the parameter name of the page number.
|
List<PageRequestLinkDto> |
getPageRequestLinks() |
String |
getPageSizeParamName()
Returns the parameter name of the page size.
|
List<PageSizeSelectorOptionDto> |
getPageSizeSelectorOptions()
Returns a list with page size selector options.
|
PaginationDto |
getPagination()
Returns the pagination.
|
String |
getQueryParamName()
Returns the parameter name of the query.
|
int |
hashCode() |
boolean |
isQuerySupported()
Returns
true if a query field should be displayed, otherwise
false. |
void |
setComparatorParamName(String comparatorParamName)
Sets the parameter name of the comparator item.
|
void |
setComparatorParamValue(String comparatorParamValue)
Sets the serialized value of the comparator item.
|
void |
setPage(PageDto page)
Sets the page.
|
void |
setPageNumberParamName(String pageNumberParamName)
Sets the parameter name of page number.
|
void |
setPageRequestLinks(List<PageRequestLinkDto> pageRequestLinks) |
void |
setPageSizeParamName(String pageSizeParamName)
Sets the parameter name of the max results.
|
void |
setPageSizeSelectorOptions(List<PageSizeSelectorOptionDto> pageSizeSelectorOptions)
Sets the list with maximum result options.
|
void |
setPagination(PaginationDto pagination)
Sets the pagination.
|
void |
setQueryParamName(String queryParamName)
Sets the parameter name of the query.
|
void |
setQuerySupported(boolean querySupported)
Specifies whether the query field should be displayed or not.
|
String |
toString() |
public PageControlDto()
public PageControlDto(PageDto page, PaginationDto pagination, String pageNumberParamName, String pageSizeParamName, List<PageSizeSelectorOptionDto> pageSizeSelectorOptions, String comparatorParamName, String comparatorParamValue, boolean querySupported, String queryParamName)
page - the pagepagination - the paginationpageNumberParamName - the parameter name of the page numberpageSizeParamName - the parameter name of the maximum resultspageSizeSelectorOptions - the options for the maximum results selectorcomparatorParamName - the parameter name of the comparator itemcomparatorParamValue - the value of the comparator itemquerySupported - true if a query field should be displayed otherwise
falsequeryParamName - the parameter name of the querypublic PageDto getPage()
public void setPage(PageDto page)
public List<PageRequestLinkDto> getPageRequestLinks()
public void setPageRequestLinks(List<PageRequestLinkDto> pageRequestLinks)
public PaginationDto getPagination()
public void setPagination(PaginationDto pagination)
public String getPageNumberParamName()
public void setPageNumberParamName(String pageNumberParamName)
public String getPageSizeParamName()
public void setPageSizeParamName(String pageSizeParamName)
public List<PageSizeSelectorOptionDto> getPageSizeSelectorOptions()
public void setPageSizeSelectorOptions(List<PageSizeSelectorOptionDto> pageSizeSelectorOptions)
public String getComparatorParamName()
public void setComparatorParamName(String comparatorParamName)
public String getComparatorParamValue()
public void setComparatorParamValue(String comparatorParamValue)
public boolean isQuerySupported()
true if a query field should be displayed, otherwise
false.public void setQuerySupported(boolean querySupported)
public String getQueryParamName()
public void setQueryParamName(String queryParamName)
Copyright © 2016 bremersee.org. All rights reserved.