Package org.bgerp.model
Class Pageable<T>
java.lang.Object
org.bgerp.model.Pageable<T>
- Direct Known Subclasses:
Data
,QueryTable
,SearchResult
Pagination supporting list.
-
Constructor Summary
ConstructorDescriptionPageable()
Pageable
(int pageSize) Constructor with page size.Pageable
(DynActionForm form) Constructor sets a created Pageable object toform
response.Pageable
(DynActionForm form, int defaultPageSize) Constructor sets a created Pageable object toform
response. -
Method Summary
-
Constructor Details
-
Pageable
public Pageable() -
Pageable
public Pageable(int pageSize) Constructor with page size.- Parameters:
pageSize
-
-
Pageable
Constructor sets a created Pageable object toform
response. Restores a page size from user personalization. If nothing is stored there, thendefaultPageSize
is used.- Parameters:
form
- the form.defaultPageSize
- the default page size.
-
Pageable
Constructor sets a created Pageable object toform
response. Restores a page size from user personalization. If nothing is stored there, thenPage.DEFAULT_PAGE_SIZE
is used.- Parameters:
form
- the form.
-
-
Method Details
-
withoutPagination
- Returns:
- the instance with disabled pagination.
-
getPage
- Returns:
- pagination options.
-
getList
- Returns:
- data list with a page content, the list is modifiable.
-