public interface IPageChangedListener
PageableController.
After creating an instance of a class that implements this interface it can
be added to a page controller using the addPageChangedListener
method and removed using the removePageChangedListener method.
When page selection, sort changed, total changed occurs in a page controller
the appropriate method will be invoked.
PageChangedAdapter| Modifier and Type | Method and Description |
|---|---|
void |
localeChanged(java.util.Locale oldLocale,
java.util.Locale newLocale,
PageableController paginationController)
Sent when locale changed in the page controller
PageableController. |
void |
pageIndexChanged(int oldPageIndex,
int newPageIndex,
PageableController controller)
Sent when page changed in the page controller
PageableController. |
void |
pageSizeChanged(int oldPageSize,
int newPageSize,
PageableController controller)
Sent when page size changed in the page controller
PageableController. |
void |
sortChanged(java.lang.String oldPopertyName,
java.lang.String propertyName,
int oldSortDirection,
int sortDirection,
PageableController controller)
Sent when sort changed in the page controller
PageableController. |
void |
totalElementsChanged(long oldTotalElements,
long newTotalElements,
PageableController controller)
Sent when total elements changed in the page controller
PageableController. |
void pageIndexChanged(int oldPageIndex,
int newPageIndex,
PageableController controller)
PageableController.oldPageIndex - old page index.newPageIndex - new page index.controller - the page controller which have sent this event.void totalElementsChanged(long oldTotalElements,
long newTotalElements,
PageableController controller)
PageableController.oldTotalElements - old total elements.newTotalElements - new total elements.controller - the page controller which have sent this event.void sortChanged(java.lang.String oldPopertyName,
java.lang.String propertyName,
int oldSortDirection,
int sortDirection,
PageableController controller)
PageableController.oldPopertyName - old property name.propertyName - new property name.oldSortDirection - old sort direction : SWT.UP, SWT.DOWN.sortDirection - new sort direction : SWT.UP, SWT.DOWN.controller - void pageSizeChanged(int oldPageSize,
int newPageSize,
PageableController controller)
PageableController.oldPageSize - old page size.newPageSize - new page size.controller - the page controller which have sent this event.void localeChanged(java.util.Locale oldLocale,
java.util.Locale newLocale,
PageableController paginationController)
PageableController.oldLocale - old locale.newLocale - new locale.paginationController -