|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.moremotion.datasrc.Paging
public class Paging
Objects of this class are created by the PageGenerator and passed to DataService classes to let them generate only the requested part of their data.
Constructor Summary | |
---|---|
Paging(MoreMotionRequest request,
java.lang.String adomName,
DataSourceConfig dsconfig)
Creates a new instance of Paging |
Method Summary | |
---|---|
void |
addPagingInfo(ADOM result)
Adds the paging information of this object to the given ADOM object. |
int |
getCurrentPage()
Returns the current page number |
int |
getItemsPerPage()
Returns the items-per-page value. |
boolean |
getLastPage()
Returns the value of the last-page flag. |
boolean |
getMorePages()
Returns the value of the more-pages flag. |
boolean |
getNeedsRefresh()
Returns the value of the new-page-required flag. |
int |
getNumberOfItems()
Returns the number of items available in the datasource. |
int |
getPageCount()
Returns the total page count. |
int |
getPagesPerBlock()
Returns pages-per-block value. |
java.lang.String |
getPagingInfo()
|
int |
getSkipAmount()
Returns how many items to be skipped from the beginning to locate the first item to be included in page XML data. |
int |
getTotalNumberOfItems()
Returns the total number of items available in the datasource. |
void |
setCurrentPage(int value)
Sets the current page number. |
void |
setItemsPerPage(int value)
Sets the items-per-page value. |
void |
setLastPage(boolean value)
Sets the last-page flag. |
void |
setMorePages(boolean value)
Sets the more-pages flag. |
void |
setNeedsRefresh(boolean value)
Sets the new-page-required flag. |
void |
setNumberOfItems(int value)
Sets the total number of items available in the datasource. |
void |
setPagesPerBlock(int value)
|
void |
setTotalNumberOfItems(int value)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Paging(MoreMotionRequest request, java.lang.String adomName, DataSourceConfig dsconfig) throws ConfigurationException
request
- MoreMotionRequest objectadomName
- ADOM Name.dsconfig
- DataSourceConfig object this Paging object linked.
ConfigurationException
Method Detail |
---|
public void setCurrentPage(int value)
public int getCurrentPage()
public void setItemsPerPage(int value)
public int getItemsPerPage()
public void setPagesPerBlock(int value)
public int getPagesPerBlock()
public void setNumberOfItems(int value)
public void setTotalNumberOfItems(int value)
public int getNumberOfItems()
public int getTotalNumberOfItems()
public void setNeedsRefresh(boolean value)
public boolean getNeedsRefresh()
public void setMorePages(boolean value)
public boolean getMorePages()
public void setLastPage(boolean value)
public boolean getLastPage()
public int getPageCount()
public int getSkipAmount()
public void addPagingInfo(ADOM result)
public java.lang.String getPagingInfo()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |