Class CmsFadeAnimation

java.lang.Object
com.google.gwt.animation.client.Animation
org.opencms.gwt.client.util.A_CmsAnimation
org.opencms.gwt.client.util.CmsFadeAnimation

public class CmsFadeAnimation extends A_CmsAnimation
Fade animation. Fading the element into view or fading it out.

Since:
8.0.0
  • Field Summary

    Fields inherited from class org.opencms.gwt.client.util.A_CmsAnimation

    m_callback
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsFadeAnimation(com.google.gwt.dom.client.Element element, boolean show, com.google.gwt.user.client.Command callback)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    fadeIn(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
    Fades the given element into view executing the callback afterwards.
    fadeOut(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
    Fades the given element out of view executing the callback afterwards.
    protected void
     
    protected void
    onUpdate(double progress)
     

    Methods inherited from class com.google.gwt.animation.client.Animation

    cancel, interpolate, isRunning, onCancel, onStart, run, run, run, run

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CmsFadeAnimation

      public CmsFadeAnimation(com.google.gwt.dom.client.Element element, boolean show, com.google.gwt.user.client.Command callback)
      Constructor.

      Parameters:
      element - the element to animate
      show - true to show the element, false to hide it away
      callback - the callback executed after the animation is completed
  • Method Details

    • fadeIn

      public static CmsFadeAnimation fadeIn(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
      Fades the given element into view executing the callback afterwards.

      Parameters:
      element - the element to fade in
      callback - the callback
      duration - the animation duration
      Returns:
      the running animation object
    • fadeOut

      public static CmsFadeAnimation fadeOut(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
      Fades the given element out of view executing the callback afterwards.

      Parameters:
      element - the element to fade out
      callback - the callback
      duration - the animation duration
      Returns:
      the running animation object
    • onComplete

      protected void onComplete()
      Overrides:
      onComplete in class A_CmsAnimation
      See Also:
      • Animation.onComplete()
    • onUpdate

      protected void onUpdate(double progress)
      Specified by:
      onUpdate in class com.google.gwt.animation.client.Animation
      See Also:
      • Animation.onUpdate(double)