public interface PagingServlet
extends java.io.Serializable
For use by servlets that allow for paging through a list of records.
| Modifier and Type | Method and Description |
|---|---|
int |
setTemplatePagingBegIndex(PagingServletContext pgCtx)
Invoked by a subclass' implementation of
setTemplateData to set
the paging beginning index data required by the html template. |
int |
setTemplatePagingEndIndex(PagingServletContext pgCtx)
Invoked by a subclass' implementation of
setTemplateData to set
the paging ending index data required by the html template. |
void |
setTemplatePagingLinks(PagingServletContext pgCtx,
int listSize)
Invoked by a subclass' implementation of
setTemplateData to set
the paging links data required by the html template. |
void setTemplatePagingLinks(PagingServletContext pgCtx, int listSize)
setTemplateData to set
the paging links data required by the html template. This method assumes
that the invoking servlet has set an appropriate value for the current page
number context variable (ctx.pageNum) prior to invoking this method.
The template variables created by this method are $PageNum and
$PageLinks. The $PageLinks variable is a collection of html
link objects, where each element must be output using .toHTML().
pgCtx - (PagingServletContext) The current servlet context.listSize - (int) The number of records in the list being
processed.int setTemplatePagingBegIndex(PagingServletContext pgCtx)
setTemplateData to set
the paging beginning index data required by the html template. Returns the
index of the first record that is to be displayed on the current page. This
method assumes that prior to invoking this method, the invoking servlet
has processed the setTemplatePagingLinks method.
The template variable created by this method is $BegIndex.
pgCtx - (PagingServletContext) The current servlet context.int setTemplatePagingEndIndex(PagingServletContext pgCtx)
setTemplateData to set
the paging ending index data required by the html template. Returns the
index of the last record that is to be displayed on the current page. This
method assumes that prior to invoking this method, the invoking servlet
has processed the setTemplatePagingLinks method.
The template variable created by this method is $EndIndex.
pgCtx - (PagingServletContext) The current servlet context.