com.vaadin.client
Class AnimationUtil

java.lang.Object
  extended by com.vaadin.client.AnimationUtil

public class AnimationUtil
extends java.lang.Object

Utility methods for working with CSS transitions and animations.

Since:
7.3
Author:
Vaadin Ltd

Nested Class Summary
static interface AnimationUtil.AnimationEndListener
          For internal use only.
 
Constructor Summary
AnimationUtil()
           
 
Method Summary
static JavaScriptObject addAnimationEndListener(Element elem, AnimationUtil.AnimationEndListener listener)
          For internal use only.
static java.lang.String getAnimationName(NativeEvent event)
          For internal use only.
static void removeAllAnimationEndListeners(Element elem)
          For internal use only.
static void removeAnimationEndListener(Element elem, JavaScriptObject listener)
          For internal use only.
static void setAnimationDelay(Element elem, java.lang.String delay)
          For internal use only.
static void setAnimationDuration(Element elem, java.lang.String duration)
          For internal use only.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationUtil

public AnimationUtil()
Method Detail

setAnimationDuration

public static void setAnimationDuration(Element elem,
                                        java.lang.String duration)
For internal use only. May be removed or replaced in the future. Set the animation-duration CSS property.

Parameters:
elem - the element whose animation-duration to set
duration - the duration as a valid CSS value

setAnimationDelay

public static void setAnimationDelay(Element elem,
                                     java.lang.String delay)
For internal use only. May be removed or replaced in the future. Set the animation-delay CSS property.

Parameters:
elem - the element whose animation-delay to set
delay - the delay as a valid CSS value

addAnimationEndListener

public static JavaScriptObject addAnimationEndListener(Element elem,
                                                       AnimationUtil.AnimationEndListener listener)
For internal use only. May be removed or replaced in the future.


removeAnimationEndListener

public static void removeAnimationEndListener(Element elem,
                                              JavaScriptObject listener)
For internal use only. May be removed or replaced in the future.


removeAllAnimationEndListeners

public static void removeAllAnimationEndListeners(Element elem)
For internal use only. May be removed or replaced in the future.


getAnimationName

public static java.lang.String getAnimationName(NativeEvent event)
For internal use only. May be removed or replaced in the future.



Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.