Package org.bgerp.model
Class Pageable<T>
java.lang.Object
org.bgerp.model.Pageable<T>
- Direct Known Subclasses:
- Data,- QueryTable,- SearchResult
Pagination supporting search results list
- 
Constructor SummaryConstructorsConstructorDescriptionPageable()Pageable(int pageSize) Constructor with page size.Pageable(DynActionForm form) Constructor sets a created Pageable object toformresponse.Pageable(DynActionForm form, int defaultPageSize) Constructor sets a created Pageable object toformresponse.
- 
Method Summary
- 
Constructor Details- 
Pageablepublic Pageable()
- 
Pageablepublic Pageable(int pageSize) Constructor with page size.- Parameters:
- pageSize-
 
- 
PageableConstructor sets a created Pageable object toformresponse. Restores a page size from user personalization. If nothing is stored there, thendefaultPageSizeis used.- Parameters:
- form- the form.
- defaultPageSize- the default page size.
 
- 
PageableConstructor sets a created Pageable object toformresponse. Restores a page size from user personalization. If nothing is stored there, thenPage.DEFAULT_PAGE_SIZEis 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.
 
- 
addAdds an item to result list- Parameters:
- item-
 
 
-