Package com.vaadin.client
Class AnimationUtil
- java.lang.Object
-
- com.vaadin.client.AnimationUtil
-
public class AnimationUtil extends Object
Utility methods for working with CSS transitions and animations.- Since:
- 7.3
- Author:
- Vaadin Ltd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnimationUtil.AnimationEndListenerFor internal use only.
-
Constructor Summary
Constructors Constructor Description AnimationUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.gwt.core.client.JavaScriptObjectaddAnimationEndListener(com.google.gwt.dom.client.Element elem, AnimationUtil.AnimationEndListener listener)For internal use only.static StringgetAnimationName(com.google.gwt.dom.client.NativeEvent event)For internal use only.static StringgetAnimationName(ComputedStyle cstyle)For internal use only.static voidremoveAllAnimationEndListeners(com.google.gwt.dom.client.Element elem)For internal use only.static voidremoveAnimationEndListener(com.google.gwt.dom.client.Element elem, com.google.gwt.core.client.JavaScriptObject listener)For internal use only.static booleanremoveAnimationEndListener(com.google.gwt.dom.client.Element elem, AnimationUtil.AnimationEndListener animationEndListener)Removes the given animation listener.static voidsetAnimationDelay(com.google.gwt.dom.client.Element elem, String delay)For internal use only.static voidsetAnimationDuration(com.google.gwt.dom.client.Element elem, String duration)For internal use only.
-
-
-
Method Detail
-
setAnimationDuration
public static void setAnimationDuration(com.google.gwt.dom.client.Element elem, 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 setduration- the duration as a valid CSS value
-
setAnimationDelay
public static void setAnimationDelay(com.google.gwt.dom.client.Element elem, 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 setdelay- the delay as a valid CSS value
-
addAnimationEndListener
public static com.google.gwt.core.client.JavaScriptObject addAnimationEndListener(com.google.gwt.dom.client.Element elem, AnimationUtil.AnimationEndListener listener)For internal use only. May be removed or replaced in the future.
-
removeAnimationEndListener
public static void removeAnimationEndListener(com.google.gwt.dom.client.Element elem, com.google.gwt.core.client.JavaScriptObject listener)For internal use only. May be removed or replaced in the future.
-
removeAnimationEndListener
public static boolean removeAnimationEndListener(com.google.gwt.dom.client.Element elem, AnimationUtil.AnimationEndListener animationEndListener)Removes the given animation listener.- Parameters:
elem- the element which has the listeneranimationEndListener- the listener to remove- Returns:
trueif the listener was removed,falseif the listener was not registered to the given element
-
removeAllAnimationEndListeners
public static void removeAllAnimationEndListeners(com.google.gwt.dom.client.Element elem)
For internal use only. May be removed or replaced in the future.
-
getAnimationName
public static String getAnimationName(com.google.gwt.dom.client.NativeEvent event)
For internal use only. May be removed or replaced in the future.
-
getAnimationName
public static String getAnimationName(ComputedStyle cstyle)
For internal use only. May be removed or replaced in the future.
-
-