Class AnimationTypes.TextAnimation

java.lang.Object
com.vaadin.flow.component.Component
de.mekaso.vaadin.addon.compani.animation.Animation
de.mekaso.vaadin.addon.compani.animation.AnimationTypes.TextAnimation
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
Direct Known Subclasses:
AnimationTypes.TextEntranceAnimation, AnimationTypes.TextExitAnimation
Enclosing class:
AnimationTypes

public static class AnimationTypes.TextAnimation extends Animation
Author:
Meik Kaufmann Animation for text component (that implement HasText).
See Also:
  • Field Summary

    Fields inherited from class de.mekaso.vaadin.addon.compani.animation.Animation

    animatedComponent, currentEffect, domListenerRegistration, effect, STYLES
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String[]
     
    boolean
    Detect text animations.
    void
    Start an animation.
    protected void
    Start the text animation.
    Set the effect for a text component.

    Methods inherited from class de.mekaso.vaadin.addon.compani.animation.Animation

    addAnimationEndListener, handleEvent, stop

    Methods 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, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

    addAttachListener

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

    addDetachListener

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

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

    • TextAnimation

      public TextAnimation()
  • Method Details

    • withEffect

      public AnimationTypes.TextAnimation withEffect(TextDisplayEffect effect)
      Set the effect for a text component.
      Parameters:
      effect - the effect
      Returns:
      an animation
    • fetchCssClasses

      protected String[] fetchCssClasses()
      Specified by:
      fetchCssClasses in class Animation
    • start

      public void start()
      Description copied from class: Animation
      Start an animation.
      Overrides:
      start in class Animation
    • startTextAnimation

      protected void startTextAnimation()
      Start the text animation.
    • isTextEffect

      public boolean isTextEffect()
      Description copied from class: Animation
      Detect text animations.
      Overrides:
      isTextEffect in class Animation
      Returns:
      true for text animations