Interface PresentationEventListener

  • All Implemented Interfaces:

    
    public interface PresentationEventListener<T extends Presentation<T>>
    
                        

    A notification mechanism for the component that created the associated Presentable to receive events about a presentation in response to user interaction, system events, or operations performed programmatically.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit onShow(Presentable<T> presentable) Invoked when the presentable is shown.
      abstract Unit onHide(Presentable<T> presentable) Invoked when the presentable is hidden.
      abstract Unit onDismiss(Presentable<T> presentable) Invoked when the presentable is dismissed.
      abstract Unit onError(Presentable<T> presentable, PresentationError error) Invoked when an error occurs while managing the presentable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onShow

         abstract Unit onShow(Presentable<T> presentable)

        Invoked when the presentable is shown.

        Parameters:
        presentable - the presentable that was shown
      • onHide

         abstract Unit onHide(Presentable<T> presentable)

        Invoked when the presentable is hidden.

        Parameters:
        presentable - the presentable that was hidden
      • onDismiss

         abstract Unit onDismiss(Presentable<T> presentable)

        Invoked when the presentable is dismissed.

        Parameters:
        presentable - the presentable that was dismissed
      • onError

         abstract Unit onError(Presentable<T> presentable, PresentationError error)

        Invoked when an error occurs while managing the presentable.

        Parameters:
        presentable - the presentable that encountered the error
        error - the error that occurred