Class AnimationIterationCount

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


    public class AnimationIterationCount
    extends AbstractCssProperty<AnimationIterationCount>
      animation-iteration-count: number|initial|inherit;
    
     The animation-iteration-count property specifies the number of times an animation should be played.
     Default value:  1
     Inherited:      no
     Animatable:     no
     Version:        CSS3
     JavaScript syntax:      object.style.animationIterationCount="infinite"
     
    Since:
    1.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • AnimationIterationCount

        public AnimationIterationCount​()
        The default value 1 will be set as the cssValue.
        Since:
        1.0.0
      • AnimationIterationCount

        public AnimationIterationCount​(java.lang.String cssValue)
        Parameters:
        cssValue - the css value to set.
      • AnimationIterationCount

        public AnimationIterationCount​(AnimationIterationCount animationIterationCount)
        Parameters:
        animationIterationCounttCss - the Opacity object from which the cssValue to set.And, null will throw NullValueException
      • AnimationIterationCount

        public AnimationIterationCount​(int value)
        Parameters:
        value -
        cssLengthUnit -
    • Method Detail

      • getCssName

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

        public java.lang.String getCssValue​()
        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.Object
      • getValue

        public java.lang.Integer getValue​()
        gets the animationIterationCount in Integer value.
        Returns:
        the value in int or null if the cssValue is initial or inherit.
        Since:
        1.0.0
      • setValue

        public void setValue​(int value)
        Parameters:
        value - the value to set
        Since:
        1.0.0
      • setAsInitial

        public void setAsInitial​()
        sets as initial
        Since:
        1.0.0
      • setAsInherit

        public void setAsInherit​()
        sets as inherit
        Since:
        1.0.0
      • setAsInfinite

        public void setAsInfinite​()
        sets as infinite
        Since:
        1.0.0
      • isValid

        public static boolean isValid​(java.lang.String cssValue)
        validates if the given cssValue is valid for this class.
        Parameters:
        cssValue - the value to check.
        Returns:
        true if valid and false if invalid.
        Since:
        1.0.0