|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.displaytag.pagination.SmartListHelper
org.displaytag.pagination.PaginatedListSmartListHelper
public class PaginatedListSmartListHelper
An implementation of SmartListHelper used for externally sorted and paginated lists. It duplicates nearly all of its superclass, so these two classes should be refactored
| Constructor Summary | |
|---|---|
PaginatedListSmartListHelper(PaginatedList paginatedList,
TableProperties tableProperties)
|
|
| Method Summary | |
|---|---|
int |
getFirstIndexForCurrentPage()
Returns the index into the master list of the first object that should appear on the current page that the user is viewing. |
protected int |
getFirstIndexForPage(int pageNumber)
Returns the index into the master list of the first object that should appear on the given page. |
protected int |
getLastIndexForCurrentPage()
Returns the index into the master list of the last object that should appear on the current page that the user is viewing. |
protected int |
getLastIndexForPage(int pageNumber)
Returns the index into the master list of the last object that should appear on the given page. |
java.util.List |
getListForCurrentPage()
Returns a subsection of the list that contains just the elements that are supposed to be shown on the current page the user is viewing. |
protected java.util.List |
getListForPage(int pageNumber)
Returns a subsection of the list that contains just the elements that are supposed to be shown on the given page. |
java.lang.String |
getPageNavigationBar(Href baseHref,
java.lang.String pageParameter)
Returns a string containing the nagivation bar that allows the user to move between pages within the list. |
java.lang.String |
getSearchResultsSummary()
Return the little summary message that lets the user know how many objects are in the list they are viewing, and where in the list they are currently positioned. |
java.lang.String |
toString()
|
| Methods inherited from class org.displaytag.pagination.SmartListHelper |
|---|
computedPageCount, setCurrentPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PaginatedListSmartListHelper(PaginatedList paginatedList,
TableProperties tableProperties)
| Method Detail |
|---|
public int getFirstIndexForCurrentPage()
SmartListHelper
getFirstIndexForCurrentPage in class SmartListHelperprotected int getFirstIndexForPage(int pageNumber)
SmartListHelper
getFirstIndexForPage in class SmartListHelperpageNumber - page number
protected int getLastIndexForCurrentPage()
SmartListHelper
getLastIndexForCurrentPage in class SmartListHelperprotected int getLastIndexForPage(int pageNumber)
SmartListHelper
getLastIndexForPage in class SmartListHelperpageNumber - page number
public java.util.List getListForCurrentPage()
SmartListHelper
getListForCurrentPage in class SmartListHelperprotected java.util.List getListForPage(int pageNumber)
SmartListHelper
getListForPage in class SmartListHelperpageNumber - page number
public java.lang.String getPageNavigationBar(Href baseHref,
java.lang.String pageParameter)
SmartListHelper
getPageNavigationBar in class SmartListHelperbaseHref - Href used for linkspageParameter - name for the page parameter
public java.lang.String getSearchResultsSummary()
SmartListHelper
getSearchResultsSummary in class SmartListHelperpublic java.lang.String toString()
toString in class SmartListHelperObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||