Interface IPageLoaderHandler<T extends PageableController>
- Type Parameters:
T
- the pagination controller.
public interface IPageLoaderHandler<T extends PageableController>
Handler used to do something before/after page loading process. You can for
instance display a "Loading" message when pagination start and close it when
data are loaded.
-
Field Summary
Fields Modifier and Type Field Description static IPageLoaderHandler<?>
DEFAULT_HANDLER
Default Handler -
Method Summary
Modifier and Type Method Description boolean
onAfterPageLoad(T controller, java.lang.Throwable e)
This method is called after page loading process.void
onBeforePageLoad(T controller)
This method is called before page loading process.
-
Field Details
-
DEFAULT_HANDLER
Default Handler
-
-
Method Details
-
onBeforePageLoad
This method is called before page loading process.- Parameters:
controller
- the pagination controller.
-
onAfterPageLoad
This method is called after page loading process. If there is an error the given exception is filled with the exception.- Parameters:
controller
-e
-- Returns:
- true if exception (when there is an error) must be thrown and false otherwise.
-