com.holonplatform.vaadin7.navigator.annotations

## Annotation Type OnLeave

-     @Retention(value=RUNTIME)
       @Target(value=METHOD)
       @Inherited
       @Documented
      public @interface OnLeave

  `View` class accessible (public) methods annotated with this annotation will be called by view navigator when the view is about to be deactivated (i.e. a navigation to another view was triggered).

  Annotated methods may provide an optional parameter of `ViewNavigator.ViewNavigatorChangeEvent` or default `ViewChangeListener.ViewChangeEvent` type to obtain informations about view navigation.

  If more than one OnLeave annotated method in present in view actual class or in it's class hierarchy, all these methods will be called and the following behaviour will be adopted:
  - Methods will be called following class hierarchy, starting from the top (the first superclass after Object)
  - For methods of the same class, no calling order is guaranteed
  Since:
    4.0.0

Copyright © 2019 The Holon Platform. All rights reserved.