public class PageSizeDecorator extends BaseListDecorator
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PER_PAGE
static value for max results per page.
|
columnCount, currentList, listName, pageContext, parent| Constructor and Description |
|---|
PageSizeDecorator() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getDefaultPageSize()
Returns the default page size that can be used
by the app.
|
static java.util.List<java.lang.Integer> |
getPageSizes()
Returns the list of available page sizes.
|
static int |
getSelectedPageSize(javax.servlet.ServletRequest request,
java.lang.String listName)
returns the page size
|
static java.lang.String |
makeSelectionLabel(java.lang.String listName)
Gets the page size decorator form widget label
|
void |
onHeadExtraAddons()
With this hook one can insert extra addons in the heading
|
static boolean |
pageWidgetSelected(javax.servlet.ServletRequest request,
java.lang.String listName)
Returns true if the page size widget was selected
|
addColumn, afterBottomPagination, afterList, afterTopPagination, beforeList, beforeTopPagination, getCurrentList, onBottomExtraAddons, onBottomExtraContent, onFooterExtraAddons, onFooterExtraContent, onHeadExtraContent, onTopExtraAddons, onTopExtraContent, setCurrentList, setEnvironmentpublic static final int MAX_PER_PAGE
public static java.lang.String makeSelectionLabel(java.lang.String listName)
listName - name of the list (already uniquified)public static boolean pageWidgetSelected(javax.servlet.ServletRequest request,
java.lang.String listName)
request - the http servlet requestlistName - the name of the listpublic static int getSelectedPageSize(javax.servlet.ServletRequest request,
java.lang.String listName)
request - the http servlet requestlistName - the name of the listpublic void onHeadExtraAddons()
throws javax.servlet.jsp.JspException
onHeadExtraAddons in interface ListDecoratoronHeadExtraAddons in class BaseListDecoratorjavax.servlet.jsp.JspException - something bad happenedpublic static int getDefaultPageSize()
public static java.util.List<java.lang.Integer> getPageSizes()