public class PageSortForm
extends org.apache.struts.action.ActionForm
Modifier and Type | Field and Description |
---|---|
static int |
EXPORT_MAX_ROWS
Maximum rows that can be exported
|
static java.lang.String |
ID
CVS ID
|
Constructor and Description |
---|
PageSortForm() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDir()
Get the direction.
|
int |
getPage()
Get the page number (starting from zero).
|
int |
getSize()
Get the page size (number of rows per page).
|
java.lang.String |
getSort()
Get the name of the field being sorted on.
|
boolean |
isAscending()
Returns true if the sort order is ascending
|
void |
reset(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req)
Reset parameters
|
void |
setDir(java.lang.String dir)
Set the direction.
|
void |
setPage(int page)
Set the page number (starting from zero).
|
void |
setSize(int size)
Set the page size (number of rows per page).
|
void |
setSort(java.lang.String sort)
Set the name of the field to sort on.
|
org.apache.struts.action.ActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
javax.servlet.http.HttpServletRequest req)
Validate parameters
|
public static final java.lang.String ID
public static final int EXPORT_MAX_ROWS
public java.lang.String getDir()
public void setDir(java.lang.String dir)
dir
- directionpublic int getPage()
public void setPage(int page)
page
- numberpublic int getSize()
public void setSize(int size)
size
- rows per pagepublic java.lang.String getSort()
public void setSort(java.lang.String sort)
sort
- column namepublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
validate
in class org.apache.struts.action.ActionForm
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
reset
in class org.apache.struts.action.ActionForm
public boolean isAscending()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona