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 TypeMethodDescriptiondefault ViewTransitionSet the animation for a view (enter and leave)default voidbeforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) default voidbeforeLeave(com.vaadin.flow.router.BeforeLeaveEvent event) default ViewInTransitionSet the animation that is shown when entering a view.default ViewOutTransitionexitWith()Set the animation that is shown when leaving a view.Methods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Method Details
-
enterWith
Set the animation that is shown when entering a view.- Returns:
- an view animation
-
exitWith
Set the animation that is shown when leaving a view.- Returns:
- an animation
-
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:
beforeLeavein interfacecom.vaadin.flow.router.internal.BeforeLeaveHandler
-
beforeEnter
default void beforeEnter(com.vaadin.flow.router.BeforeEnterEvent event) - Specified by:
beforeEnterin interfacecom.vaadin.flow.router.internal.BeforeEnterHandler
-