com.holonplatform.vaadin.navigator.annotations

## Annotation Type OnShow

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

  `View` class accessible (public) methods annotated with this annotation will be called by view navigator right before the view is shown (rendered in target display component).

  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 OnShow 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

  OnShow annotated methods have a similar function to that of `View` `enter` method.

  Since:
    4.0.0

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `boolean` | `onRefresh` Whether to call OnShow annotated method also at browser page refresh

- - ### Element Detail

    - #### onRefresh

          public abstract boolean onRefresh

      Whether to call OnShow annotated method also at browser page refresh
      Returns:
        `true` to call OnShow annotated method also at browser page refresh
      Default:
        false

Copyright © 2019 The Holon Platform. All rights reserved.