java.lang.Objectorg.springframework.beans.support.PagedListHolder
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
RefreshablePagedListHolder
This is mainly targetted at usage in web UIs. Typically, an instance will be instantiated with a list of beans, put into the session, and exported as model. The properties can all be set/get programmatically, but the most common way will be data binding, i.e. populating the bean from request parameters. The getters will mainly be used by the view.
Supports sorting the underlying list via a SortDefinition implementation, available as property "sort". By default, a MutableSortDefinition instance will be used, toggling the ascending value on setting the same property again.
The data binding names have to be called "pageSize" and "sort.ascending", as expected by BeanWrapper. Note that the names and the nesting syntax match the respective JSTL EL expressions, like "myModelAttr.pageSize" and "myModelAttr.sort.ascending".
Juergen - Hoeller19.05.2003 - | Field Summary | ||
|---|---|---|
| public static final int | DEFAULT_PAGE_SIZE | |
| public static final int | DEFAULT_MAX_LINKED_PAGES | |
| Constructor: |
|---|
|
|
|
| Method from org.springframework.beans.support.PagedListHolder Summary: |
|---|
| copySortDefinition, doSort, getFirstElementOnPage, getFirstLinkedPage, getLastElementOnPage, getLastLinkedPage, getMaxLinkedPages, getNrOfElements, getPage, getPageCount, getPageList, getPageSize, getRefreshDate, getSort, getSource, isFirstPage, isLastPage, nextPage, previousPage, resort, setMaxLinkedPages, setPage, setPageSize, setSort, setSource |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.springframework.beans.support.PagedListHolder Detail: |
|---|
Default implementation creates a MutableSortDefinition instance.
Can be overridden in subclasses, in particular in case of custom
extensions to the SortDefinition interface. Is allowed to return
null, which means that no sort state will be held, triggering
actual sorting for each |
The default implementation uses Spring's PropertyComparator. Can be overridden in subclasses. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sort instance
isn't equal to the backed-up sortUsed instance.
Calls |
|
|
Default value is 10. |
|
|