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 Summary
ConstructorsConstructorDescriptionPageable()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
-
Pageable
public Pageable() -
Pageable
public Pageable(int pageSize) Constructor with page size.- Parameters:
pageSize-
-
Pageable
Constructor 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.
-
Pageable
Constructor 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.
-
add
Adds an item to result list- Parameters:
item-
-