org.hdpagination.config
Interface PageLinksPattern

All Known Implementing Classes:
DefaultPageLinksPattern, OnlyNavigatePageLinksPattern, YahooPageLinksPattern

public interface PageLinksPattern

It define an interface which controls the layout or style of "Pagination Control" links (e.g. navigation links such as 'Previous','Next', 'First', 'Last' or page links like 1 2 3 4 5 6 7 8) generated by tag of PaginationLinkTag

Since:
1.0
Author:
Liangfeng Ren

Method Summary
 Output[] output(Page page, java.lang.Object request)
          Tell PaginationLinkTag which kinds of "Pagination Control" links should be displayed in page.
 

Method Detail

output

Output[] output(Page page,
                java.lang.Object request)
Tell PaginationLinkTag which kinds of "Pagination Control" links should be displayed in page.

In order to support Portlet environment, the type of the second argument (request) has been changed from HttpServletRequest to Object since version 1.2

Parameters:
page -
request - the request is an instance of HttpServletRequest if running in Servlet environment, or an instance of PortletRequest if running in Portlet environment.
Returns:
Array of "Pagination Control" links or normal labels that will be displayed in page


Copyright © 2008 HDPagination All Rights Reserved.