HiRISE

HiRISE.HiReport.form
Class PageSortForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by HiRISE.HiReport.form.PageSortForm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
StereoForm, TimeRangeForm

public class PageSortForm
extends org.apache.struts.action.ActionForm

Base class for action forms that control Displaytag tables (external paging and sorting).

Version:
1.3
See Also:
Serialized Form

Field Summary
static int EXPORT_MAX_ROWS
          Maximum rows that can be exported
static String ID
          CVS ID
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
PageSortForm()
           
 
Method Summary
 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).
 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(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(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
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

EXPORT_MAX_ROWS

public static final int EXPORT_MAX_ROWS
Maximum rows that can be exported

See Also:
Constant Field Values
Constructor Detail

PageSortForm

public PageSortForm()
Method Detail

getDir

public String getDir()
Get the direction.

Returns:
direction

setDir

public void setDir(String dir)
Set the direction.

Parameters:
dir - direction

getPage

public int getPage()
Get the page number (starting from zero).

Returns:
page number

setPage

public void setPage(int page)
Set the page number (starting from zero).

Parameters:
page - number

getSize

public int getSize()
Get the page size (number of rows per page).

Returns:
size

setSize

public void setSize(int size)
Set the page size (number of rows per page).

Parameters:
size - rows per page

getSort

public String getSort()
Get the name of the field being sorted on.

Returns:
column name

setSort

public void setSort(String sort)
Set the name of the field to sort on.

Parameters:
sort - column name

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest req)
Validate parameters

Overrides:
validate in class org.apache.struts.action.ActionForm

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest req)
Reset parameters

Overrides:
reset in class org.apache.struts.action.ActionForm

isAscending

public boolean isAscending()
Returns true if the sort order is ascending

Returns:
true if order is ascending

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona