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.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonShow(Presentable<T> presentable)Invoked when the presentable is shown. abstract UnitonHide(Presentable<T> presentable)Invoked when the presentable is hidden. abstract UnitonDismiss(Presentable<T> presentable)Invoked when the presentable is dismissed. abstract UnitonError(Presentable<T> presentable, PresentationError error)Invoked when an error occurs while managing the presentable. -
-
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 errorerror- the error that occurred
-
-
-
-