|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.cetia4.data.PagingBlock
com.acsinet_solutions.cetia4.data.PagedResults<T>
public class PagedResults<T>
Base class for paged results. It contains the information of a fragment of a paged search, with the search filter that contains the indexes of the given fragment, and optionally the total number of results of the search.
A PagedResults object is also a PagingBlock ( an object that knows the indexes and size of the current page of information ) and also has methods that can report it's previous and next paging blocks, so it can be queried from pager-related taglibs. Derechos Reservados
PagingUtils,
PagerTag,
Serialized Form| Constructor Summary | |
|---|---|
PagedResults(java.util.List<T> list,
PagedSearchFilter filter)
Constructor with an unknown number of results. |
|
PagedResults(java.util.List<T> list,
PagedSearchFilter filter,
int totalNumberOfResults)
Extended constructor. |
|
| Method Summary | |
|---|---|
PagedSearchFilter |
getFilter()
Return the inner filter with the first displayed value and block size. |
PagingBlock |
getFirstBlock()
Get the first block if any. |
PagingBlock |
getLastBlock()
Get the last block if any. |
java.util.List<T> |
getList()
Return the not-null maybe-empty list of results. |
PagingBlock |
getNextBlock()
Get the next block if any. |
java.util.List<PagingBlock> |
getNextBlocks()
Get an iterator with all next blocks. |
int |
getNumberOfBlocks()
Return the total number of blocks if known; -1 if unknown. |
PagingBlock |
getPreviousBlock()
Get the previous block if any. |
java.util.List<PagingBlock> |
getPreviousBlocks()
Get an iterator with all previous blocks. |
int |
getTotalNumberOfResults()
Return the total number of results if known; -1 if unknown. |
| Methods inherited from class com.acsinet_solutions.cetia4.data.PagingBlock |
|---|
getBlockIndex, getBlockNumber, getBlockSize, getFirstResultForBlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PagedResults(java.util.List<T> list,
PagedSearchFilter filter,
int totalNumberOfResults)
list - a not-null maybe-empty result list.filter - a not-null filter instance, maybe with no pagination
instructionsnumberOfResults - The total number of results for the query if
known, or -1 if not known.
public PagedResults(java.util.List<T> list,
PagedSearchFilter filter)
| Method Detail |
|---|
public final PagedSearchFilter getFilter()
public final java.util.List<T> getList()
public final int getTotalNumberOfResults()
public final int getNumberOfBlocks()
public final PagingBlock getFirstBlock()
public final PagingBlock getPreviousBlock()
public final java.util.List<PagingBlock> getPreviousBlocks()
public final PagingBlock getLastBlock()
public final PagingBlock getNextBlock()
public final java.util.List<PagingBlock> getNextBlocks()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||