Interface AnimatedView

All Superinterfaces:
com.vaadin.flow.router.internal.BeforeEnterHandler, com.vaadin.flow.router.BeforeEnterObserver, com.vaadin.flow.router.internal.BeforeLeaveHandler, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable

public interface AnimatedView extends com.vaadin.flow.component.HasStyle, com.vaadin.flow.router.BeforeLeaveObserver, com.vaadin.flow.router.BeforeEnterObserver
Author:
Meik Kaufmann An animated view. Override the enterWith, exitWith or animateWith methods to customize animations.
  • Method Summary

    Modifier and Type
    Method
    Description
    Set the animation for a view (enter and leave)
    default void
    beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
     
    default void
    beforeLeave(com.vaadin.flow.router.BeforeLeaveEvent event)
     
    Set the animation that is shown when entering a view.
    Set the animation that is shown when leaving a view.

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Method Details

    • enterWith

      default ViewInTransition enterWith()
      Set the animation that is shown when entering a view.
      Returns:
      an view animation
    • exitWith

      default ViewOutTransition exitWith()
      Set the animation that is shown when leaving a view.
      Returns:
      an animation
    • animateWith

      default ViewTransition animateWith()
      Set the animation for a view (enter and leave)
      Returns:
      an animation
    • beforeLeave

      default void beforeLeave(com.vaadin.flow.router.BeforeLeaveEvent event)
      Specified by:
      beforeLeave in interface com.vaadin.flow.router.internal.BeforeLeaveHandler
    • beforeEnter

      default void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event)
      Specified by:
      beforeEnter in interface com.vaadin.flow.router.internal.BeforeEnterHandler