Enum AnimationFillMode

  • All Implemented Interfaces:
    CssProperty, java.io.Serializable, java.lang.Cloneable


    public enum AnimationFillMode
    extends java.lang.Enum<AnimationFillMode>
    implements CssProperty
     animation-fill-mode: none|forwards|backwards|both|initial|inherit;
    
     The animation-fill-mode property specifies a style for the element when the animation is not playing (when it is finished, or when it has a delay).
    
     By default, CSS animations do not affect the element until the first keyframe is "played", and then stops once the last keyframe has completed. The animation-fill-mode property can override this behavior.
     Default value:  none
     Inherited:      no
     Animatable:     no
     Version:        CSS3
     JavaScript syntax:      object.style.animationFillMode="forwards"
     
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCssName​()  
      java.lang.String getCssValue​()  
      static AnimationFillMode getThis​(java.lang.String cssValue)
      gets the corresponding object for the given cssValue or null for invalid cssValue.
      static boolean isValid​(java.lang.String cssValue)
      checks whether the given given cssValue is valid for this css property, i.e.
      java.lang.String toString​()  
      static AnimationFillMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static AnimationFillMode[] values​()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static AnimationFillMode[] values​()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (AnimationFillMode c : AnimationFillMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AnimationFillMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getCssName

        public java.lang.String getCssName​()
        Specified by:
        getCssName in interface CssProperty
        Returns:
        the name portion in style, eg align-content for style align-content: center.
      • getCssValue

        public java.lang.String getCssValue​()
        Specified by:
        getCssValue in interface CssProperty
        Returns:
        the value portion in style, eg center for style align-content: center.
      • toString

        public java.lang.String toString​()
        Overrides:
        toString in class java.lang.Enum<AnimationFillMode>
      • isValid

        public static boolean isValid​(java.lang.String cssValue)
        checks whether the given given cssValue is valid for this css property, i.e. whether it can have a corresponding object from it.
        Parameters:
        cssValue -
        Returns:
        true if the given cssValue has a corresponding object.
        Since:
        1.0.0
      • getThis

        public static AnimationFillMode getThis​(java.lang.String cssValue)
        gets the corresponding object for the given cssValue or null for invalid cssValue.
        Parameters:
        cssValue - the css property value without including !important in it.
        Returns:
        the corresponding object for the given cssValue or null for invalid cssValue.
        Since:
        1.0.0