Class AnimationTypes.AttentionSeekerAnimation
java.lang.Object
com.vaadin.flow.component.Component
de.mekaso.vaadin.addon.compani.animation.Animation
de.mekaso.vaadin.addon.compani.animation.AnimationTypes.AttentionSeekerAnimation
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.dom.DomEventListener,Serializable
- Enclosing class:
AnimationTypes
- Author:
- Meik Kaufmann Attention seeker animations.
- See Also:
-
Field Summary
Fields inherited from class de.mekaso.vaadin.addon.compani.animation.Animation
animatedComponent, currentEffect, domListenerRegistration, effect, STYLES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]Fetch all CSS classes that need to be added to the component.Set the delay of this animation.withEffect(AttentionSeeker attentionSeeker) Set the animation effect.withRepeat(Repeat repeat) Set the number of repeats for the animation.Set the speed of the animation.Methods inherited from class de.mekaso.vaadin.addon.compani.animation.Animation
addAnimationEndListener, handleEvent, isTextEffect, start, stopMethods inherited from class com.vaadin.flow.component.Component
addListener, bindVisible, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
AttentionSeekerAnimation
public AttentionSeekerAnimation()
-
-
Method Details
-
withEffect
Set the animation effect.- Parameters:
attentionSeeker- the effect- Returns:
- an animation
-
withSpeed
Set the speed of the animation.- Parameters:
speed- the speed- Returns:
- an animation
-
withDelay
Set the delay of this animation.- Parameters:
delay- the delay- Returns:
- an animation
-
withRepeat
Set the number of repeats for the animation.- Parameters:
repeat- the repeat- Returns:
- an animation
-
fetchCssClasses
Fetch all CSS classes that need to be added to the component.- Specified by:
fetchCssClassesin classAnimation- Returns:
- the CSS classes
-