Enum Class AnimationEffect

java.lang.Object
java.lang.Enum<AnimationEffect>
eu.webtoolkit.jwt.AnimationEffect
All Implemented Interfaces:
Serializable, Comparable<AnimationEffect>, Constable

public enum AnimationEffect extends Enum<AnimationEffect>
An enumeration describing an animation effect.

An animation effect can be the combination of a motion and an optional fade effect, e.g:


 AnimationEffect::SlideInFromRight
 AnimationEffect::SlideInFromTop | AnimationEffect::Fade

 

You can specify only one motion effect.

  • Enum Constant Details

    • SlideInFromLeft

      public static final AnimationEffect SlideInFromLeft
      Slides right to show, left to hide.
    • SlideInFromRight

      public static final AnimationEffect SlideInFromRight
      Slides left to show, right to hide.
    • SlideInFromBottom

      public static final AnimationEffect SlideInFromBottom
      Slides up to show, down to hide.
    • SlideInFromTop

      public static final AnimationEffect SlideInFromTop
      Slides down to show, up to hide.
    • Pop

      public static final AnimationEffect Pop
      Pops up to show, pops away to hide.
    • Fade

      public static final AnimationEffect Fade
      Fade effect.
  • Method Details

    • values

      public static AnimationEffect[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AnimationEffect valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the numerical representation of this enum.