Package org.zkoss.zul
Interface PageableModel
- All Superinterfaces:
Pageable
- All Known Implementing Classes:
AbstractListModel,AbstractTreeModel,DefaultTreeModel,GroupsListModel,ListModelArray,ListModelList,ListModelMap,ListModelSet,SimpleListModel
Provide methods to manage PagingListeners
- Since:
- 8.5.2
- Author:
- charlesqiu
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA flag different from standard PagingEvent, differentiating standard PagingEvent from Paging component and PagingEvent from PageableModel -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPagingEventListener(PagingListener listener) Adds a listener to the list of listeners to be notified when a PagingEvent happens outside of standard Paging componentintReturns the total number of items.voidremovePagingEventListener(PagingListener listener) Removes a listener from the list of listeners to be notified when a PagingEvent happens outside of standard Paging componentMethods inherited from interface org.zkoss.zul.ext.Pageable
getActivePage, getPageCount, getPageSize, setActivePage, setPageSize
-
Field Details
-
INTERNAL_EVENT
A flag different from standard PagingEvent, differentiating standard PagingEvent from Paging component and PagingEvent from PageableModel- See Also:
-
-
Method Details
-
getTotalSize
int getTotalSize()Returns the total number of items.- Since:
- 10.0.0
-
addPagingEventListener
Adds a listener to the list of listeners to be notified when a PagingEvent happens outside of standard Paging component- Parameters:
listener-
-
removePagingEventListener
Removes a listener from the list of listeners to be notified when a PagingEvent happens outside of standard Paging component- Parameters:
listener-
-