org.shept.org.springframework.beans.support
public interface PageableList<E>
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_NEW_MODEL_SIZE |
static int |
DEFAULT_PAGE_SIZE |
static String |
LIST_BINDING_NAME |
| Modifier and Type | Method and Description |
|---|---|
int |
getFirstElementOnPage()
Return the element index of the first element on the current page.
|
int |
getFirstLinkedPage()
Return the first page to which create a link around the current page.
|
int |
getLastElementOnPage()
Return the element index of the last element on the current page.
|
int |
getLastLinkedPage()
Return the last page to which create a link around the current page.
|
String |
getListBindingName()
return the binding name of the list
|
int |
getMaxLinkedPages()
Return the maximum number of page links to a few pages around the current one.
|
int |
getNewModelSize()
get the new model template (for creating new objects)
|
Object |
getNewModelTemplate()
get the new model template (for creating new objects)
|
int |
getNrOfElements()
Return the total number of elements in the source list.
|
int |
getPage()
Return the current page number.
|
int |
getPageCount()
Return the number of pages for the current source list.
|
List<E> |
getPageList()
Return a sub-list representing the current page.
|
int |
getPageSize()
Return the current page size.
|
Date |
getRefreshDate()
Return the last time the list has been fetched from the source provider.
|
org.springframework.beans.support.SortDefinition |
getSort()
Return the sort definition for this holder.
|
org.springframework.beans.support.SortDefinition |
getSortUsed() |
List<E> |
getSource()
Return the source list for this holder.
|
boolean |
isEol()
Return if the underlying resultset is completely read
(always true if the resultset is not based on cursors)
|
boolean |
isFirstPage()
Return if the current page is the first one.
|
boolean |
isLastPage()
Return if the current page is the last one.
|
boolean |
isSortNeeded()
Added to the original implementation so we can check for changes
and refresh the view conditionally..
|
boolean |
isVisible(Integer idx)
Return if the given element index is within the range of the currently visible Page
|
void |
nextPage()
Switch to next page.
|
void |
previousPage()
Switch to previous page.
|
void |
resort()
Resort the list if necessary, i.e.
|
void |
setNewModelSize(int newModelSize)
Set the new model template (for creating new objects)
|
void |
setNewModelTemplate(Object object)
Set the new model template (for creating new objects)
|
void |
setPage(int page)
Set the current page number.
|
void |
setPageSize(int pageSize)
Set the current page size.
|
void |
setSort(org.springframework.beans.support.SortDefinition sort)
Set the sort definition for this holder.
|
void |
setSource(List<E> source)
Set the source list for this holder.
|
static final String LIST_BINDING_NAME
static final int DEFAULT_PAGE_SIZE
static final int DEFAULT_NEW_MODEL_SIZE
int getFirstElementOnPage()
int getFirstLinkedPage()
int getLastElementOnPage()
int getLastLinkedPage()
int getMaxLinkedPages()
int getNrOfElements()
int getPage()
int getPageCount()
int getPageSize()
Date getRefreshDate()
org.springframework.beans.support.SortDefinition getSort()
org.springframework.beans.support.SortDefinition getSortUsed()
boolean isEol()
boolean isFirstPage()
boolean isLastPage()
boolean isVisible(Integer idx)
void nextPage()
boolean isSortNeeded()
void previousPage()
void resort()
sort instance
isn't equal to the backed-up sortUsed instance.
Calls doSort to trigger actual sorting.
#doSortvoid setPage(int page)
void setPageSize(int pageSize)
Default value is 10.
void setSort(org.springframework.beans.support.SortDefinition sort)
MutableSortDefinitionString getListBindingName()
Object getNewModelTemplate()
void setNewModelTemplate(Object object)
int getNewModelSize()
void setNewModelSize(int newModelSize)
Copyright © 2014. All Rights Reserved.