HiRISE

HiRISE.HiReport.model
Class PagedList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Map<String,Object>>
              extended by HiRISE.HiReport.model.PagedList
All Implemented Interfaces:
Serializable, Cloneable, Iterable<Map<String,Object>>, Collection<Map<String,Object>>, List<Map<String,Object>>, RandomAccess, org.displaytag.pagination.PaginatedList
Direct Known Subclasses:
ResultList

public class PagedList
extends ArrayList<Map<String,Object>>
implements org.displaytag.pagination.PaginatedList

Version:
1.4
See Also:
Serialized Form

Field Summary
protected  boolean ascending
          True if ascending (default)
static int DEFAULT_SIZE
          Default number of objects per page
static String ID
          CVS ID
protected  int len
          Length of full list
protected  int opp
          Objects per page
protected  int pos
          Position in list, zero-based
protected  String sort
          Sort column, defaults to null (unsorted / order returned by query)
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PagedList()
           
 
Method Summary
 int getFullListSize()
           
 List<Map<String,Object>> getList()
           
 int getObjectsPerPage()
           
 int getPageNumber()
           
 String getSearchId()
           
 String getSortCriterion()
           
 org.displaytag.properties.SortOrderEnum getSortDirection()
           
 void setFullListSize(int len)
          Set the size of the full list
 void setObjectsPerPage(int opp)
          Set the page size
 void setPageNumber(int page)
          Set the page number
 void setSortDirection(String order)
          Set the sort direction with "ascending" or "descending".
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values

DEFAULT_SIZE

public static final int DEFAULT_SIZE
Default number of objects per page

See Also:
Constant Field Values

len

protected int len
Length of full list


pos

protected int pos
Position in list, zero-based


opp

protected int opp
Objects per page


ascending

protected boolean ascending
True if ascending (default)


sort

protected String sort
Sort column, defaults to null (unsorted / order returned by query)

Constructor Detail

PagedList

public PagedList()
Method Detail

getFullListSize

public int getFullListSize()
Specified by:
getFullListSize in interface org.displaytag.pagination.PaginatedList
See Also:
PaginatedList.getFullListSize()

setFullListSize

public void setFullListSize(int len)
Set the size of the full list

Parameters:
len - number of rows in full list

getList

public List<Map<String,Object>> getList()
Specified by:
getList in interface org.displaytag.pagination.PaginatedList
See Also:
PaginatedList.getList()

getObjectsPerPage

public int getObjectsPerPage()
Specified by:
getObjectsPerPage in interface org.displaytag.pagination.PaginatedList
See Also:
PaginatedList.getObjectsPerPage()

setObjectsPerPage

public void setObjectsPerPage(int opp)
Set the page size

Parameters:
opp - Objects per page

getPageNumber

public int getPageNumber()
Specified by:
getPageNumber in interface org.displaytag.pagination.PaginatedList
See Also:
PaginatedList.getPageNumber()

setPageNumber

public void setPageNumber(int page)
Set the page number

Parameters:
page - Number (1-based)

getSearchId

public String getSearchId()
Specified by:
getSearchId in interface org.displaytag.pagination.PaginatedList
See Also:
PaginatedList.getSearchId()

getSortCriterion

public String getSortCriterion()
Specified by:
getSortCriterion in interface org.displaytag.pagination.PaginatedList
See Also:
PaginatedList.getSortCriterion()

getSortDirection

public org.displaytag.properties.SortOrderEnum getSortDirection()
Specified by:
getSortDirection in interface org.displaytag.pagination.PaginatedList
See Also:
PaginatedList.getSortDirection()

setSortDirection

public void setSortDirection(String order)
Set the sort direction with "ascending" or "descending".

Parameters:
order - "ascending" or "descending"

HiRISE

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