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 interface
AnimationUtil.AnimationEndListener
For 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.JavaScriptObject
addAnimationEndListener(com.google.gwt.dom.client.Element elem, AnimationUtil.AnimationEndListener listener)
For internal use only.static String
getAnimationName(com.google.gwt.dom.client.NativeEvent event)
For internal use only.static String
getAnimationName(ComputedStyle cstyle)
For internal use only.static void
removeAllAnimationEndListeners(com.google.gwt.dom.client.Element elem)
For internal use only.static void
removeAnimationEndListener(com.google.gwt.dom.client.Element elem, com.google.gwt.core.client.JavaScriptObject listener)
For internal use only.static boolean
removeAnimationEndListener(com.google.gwt.dom.client.Element elem, AnimationUtil.AnimationEndListener animationEndListener)
Removes the given animation listener.static void
setAnimationDelay(com.google.gwt.dom.client.Element elem, String delay)
For internal use only.static void
setAnimationDuration(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:
element
- the element which has the listeneranimationEndListener
- the listener to remove- Returns:
true
if the listener was removed,false
if 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.
-
-