edu.internet2.middleware.grouper.grouperUi.beans.json
Class GuiPaging

java.lang.Object
  extended by edu.internet2.middleware.grouper.grouperUi.beans.json.GuiPaging
All Implemented Interfaces:
Serializable

public class GuiPaging
extends Object
implements Serializable

paging object holds state of next.previous etc

See Also:
Serialized Form

Constructor Summary
GuiPaging()
           
 
Method Summary
 int getPageNumber()
          getter for pageNumber: page number indexed by 1 (friendly)
 int getPageSize()
          getter for pageSize: the number of records per page
 int getTotalRecordCount()
          total record count in results
static void init(String pagingName)
          init a paging object, if it exists, update the page size
 QueryPaging queryPaging()
          query paging bean
static GuiPaging retrievePaging(String pagingName, boolean exceptionIfNotFound)
          find a paging in response or app state
 void setPageNumber(int pageNumber1)
           
 void setPageSize(int _pageSize)
          setter for pageSize: the number of records per page
 void setTotalRecordCount(int totalRecordCount1)
          total record count in results
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiPaging

public GuiPaging()
Method Detail

queryPaging

public QueryPaging queryPaging()
query paging bean

Returns:
query paging bean

getTotalRecordCount

public int getTotalRecordCount()
total record count in results

Returns:
the totalRecordCount

setTotalRecordCount

public void setTotalRecordCount(int totalRecordCount1)
total record count in results

Parameters:
totalRecordCount1 - the totalRecordCount to set

getPageNumber

public int getPageNumber()
getter for pageNumber: page number indexed by 1 (friendly)

Returns:
the value of the field

getPageSize

public int getPageSize()
getter for pageSize: the number of records per page

Returns:
the value of the field

setPageSize

public void setPageSize(int _pageSize)
setter for pageSize: the number of records per page

Parameters:
_pageSize - is the data to set

setPageNumber

public void setPageNumber(int pageNumber1)
Parameters:
pageNumber1 -

init

public static void init(String pagingName)
init a paging object, if it exists, update the page size

Parameters:
pagingName -

retrievePaging

public static GuiPaging retrievePaging(String pagingName,
                                       boolean exceptionIfNotFound)
find a paging in response or app state

Parameters:
pagingName -
exceptionIfNotFound -
Returns:
the pager