HiRISE

HiRISE.HiReport.uplink
Class StereoPairCollection

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<StereoPair>
              extended by HiRISE.HiReport.uplink.StereoPairCollection
All Implemented Interfaces:
Serializable, Cloneable, Iterable<StereoPair>, Collection<StereoPair>, List<StereoPair>, RandomAccess, org.displaytag.pagination.PaginatedList

public class StereoPairCollection
extends ArrayList<StereoPair>
implements org.displaytag.pagination.PaginatedList

Collection of stereo pairs, with methods for Displaytag paging and sorting

See Also:
Serialized Form

Field Summary
protected  int opp
          Objects per page
protected  org.displaytag.properties.SortOrderEnum order
          Sort order
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
StereoPairCollection()
           
 
Method Summary
 int getFullListSize()
           
 List<StereoPair> getList()
          Get the list of stereo pairs
 int getObjectsPerPage()
           
 int getPageNumber()
           
 String getSearchId()
           
 String getSortCriterion()
           
 org.displaytag.properties.SortOrderEnum getSortDirection()
           
 String getTitle(int idx)
          Get a title for the nth item in the collection
 void setObjectsPerPage(int opp)
          Set the number of stereo pairs to show per page
 void setPageNumber(int page)
          Set the page number
 void setSearchId(String sort)
          Set the column to sort on
 void setSortCriterion(String sort)
          Set the column to sort on
 void setSortDirection(String order)
          Set the sort direction
 
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

opp

protected int opp
Objects per page


pos

protected int pos
Position in list, zero-based


sort

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


order

protected org.displaytag.properties.SortOrderEnum order
Sort order

Constructor Detail

StereoPairCollection

public StereoPairCollection()
Method Detail

getTitle

public String getTitle(int idx)
Get a title for the nth item in the collection

Parameters:
idx - index (zero-based)
Returns:
title

getFullListSize

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

getList

public List<StereoPair> getList()
Get the list of stereo pairs

Specified by:
getList in interface org.displaytag.pagination.PaginatedList

getObjectsPerPage

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

setObjectsPerPage

public void setObjectsPerPage(int opp)
Set the number of stereo pairs to show per page

Parameters:
opp - objects per page

getPageNumber

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

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

getSortCriterion

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

setSortCriterion

public void setSortCriterion(String sort)
Set the column to sort on

Parameters:
sort - column ID

setSearchId

public void setSearchId(String sort)
Set the column to sort on

Parameters:
sort - column ID

getSortDirection

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

setSortDirection

public void setSortDirection(String order)
Set the sort direction

Parameters:
order - anything beginning with a or A will be considered 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