Class PageNavigationCallback

java.lang.Object
com.aquima.interactions.framework.container.list.PageNavigationCallback
All Implemented Interfaces:
ICallbackFunction, Serializable

public final class PageNavigationCallback extends Object implements ICallbackFunction
Call back function that handles the actions triggered by the paging navigation buttons.
Since:
9.0
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • PageNavigationCallback

      public PageNavigationCallback(ListConfiguration state, String navigationAction)
      Constructs a new PageNavigationCallback.
      Parameters:
      state - the list state
      navigationAction - the name of the action as defined in NavigateActionEnum
  • Method Details

    • handle

      public void handle(IElement element, IContainerEventContext context) throws Exception
      Description copied from interface: ICallbackFunction
      The handle method will be invoked after an event has occurred on the page. This callback function may choose to throw an exception when processing should stop due to an error, which will result in the flow being aborted and the last page to be shown again (for validation error messages or generic error messages set an error in the request scope) Use element.isFired() to check if the element caused the current event.
      Specified by:
      handle in interface ICallbackFunction
      Parameters:
      element - The element for which the callback function was registered.
      context - The current context which will be equal to the context at the moment of registration.
      Throws:
      Exception - This exception type may be thrown to indicate that the processing should stop due to an error.