Package fr.paris.lutece.util.html
Class DelegatePaginator<E>
java.lang.Object
fr.paris.lutece.util.html.AbstractPaginator<E>
fr.paris.lutece.util.html.DelegatePaginator<E>
- Type Parameters:
E- the type
- All Implemented Interfaces:
IPaginator<E>,Serializable
- Direct Known Subclasses:
LocalizedDelegatePaginator
This paginator should be used with already paged list, and the items count. This implementation requires the items count and the page items
- See Also:
-
Field Summary
Fields inherited from class fr.paris.lutece.util.html.AbstractPaginator
LABEL_FIRST, LABEL_LAST, LABEL_NEXT, LABEL_PREVIOUS, PARAMETER_ITEMS_PER_PAGE, PARAMETER_PAGE_INDEX -
Constructor Summary
ConstructorsConstructorDescriptionDelegatePaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, int nItemsCount) Creates a new instance of Paginator.DelegatePaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, int nItemsCount, String strItemsPerPageParameterName) Creates a new instance of Paginator -
Method Summary
Methods inherited from class fr.paris.lutece.util.html.AbstractPaginator
getFirstPageLink, getItemsCount, getItemsPerPage, getItemsPerPage, getItemsPerPageParameterName, getLabelFirst, getLabelItemCount, getLabelItemCountPerPage, getLabelLast, getLabelNext, getLabelPrevious, getLastPageLink, getNextPageLink, getPageCurrent, getPageIndex, getPagesCount, getPagesLinks, getPreviousPageLink, getRangeMax, getRangeMin, setItemsPerPageParameterName
-
Constructor Details
-
DelegatePaginator
public DelegatePaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, int nItemsCount) Creates a new instance of Paginator.- Parameters:
list- The collection to paginatenItemPerPage- Number of items to display per pagestrBaseUrl- The base Url for build links on each page linkstrPageIndexParameterName- The parameter name for the page indexstrPageIndex- The current page indexnItemsCount- the item count
-
DelegatePaginator
public DelegatePaginator(List<E> list, int nItemPerPage, String strBaseUrl, String strPageIndexParameterName, String strPageIndex, int nItemsCount, String strItemsPerPageParameterName) Creates a new instance of Paginator- Parameters:
list- The collection to paginatenItemPerPage- Number of items to display per pagestrBaseUrl- The base Url for build links on each page linkstrPageIndexParameterName- The parameter name for the page indexstrPageIndex- The current page indexnItemsCount- the item countstrItemsPerPageParameterName- The parameter name of the number items per page
-
-
Method Details
-
getPageItems
Returns the List- Returns:
- The List
-
getPageItems
Description copied from interface:IPaginatorReturns the List- Returns:
- The List
-