public class PagingServletLinks
extends java.lang.Object
implements java.io.Serializable
Users of this class must implement the PagingServletContext
interface.
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
PagingServletLinks() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getPageBegIndex(PagingServletContext ctx)
Returns the index of the first record that is to be displayed on the
current page.
|
static int |
getPageEndIndex(PagingServletContext ctx)
Returns the index of the last record that is to be displayed on the
current page.
|
static java.util.ArrayList<Link> |
getPageLinks(PagingServletContext ctx)
Returns a collection of html
Link objects that are based on the
the given servlet context's current values for list size and page number. |
private static final long serialVersionUID
public static java.util.ArrayList<Link> getPageLinks(PagingServletContext ctx)
Link objects that are based on the
the given servlet context's current values for list size and page number.ctx - (PagingServletContext) The current servlet context.Link objects.public static int getPageBegIndex(PagingServletContext ctx)
getPageLinks method.ctx - (PagingServletContext) The current servlet context.public static int getPageEndIndex(PagingServletContext ctx)
getPageLinks method.ctx - (PagingServletContext) The current servlet context.