Communication between container and widget

#1

Hi,

I have a transition container that contains a widget.

This widget has an animation, I want the transition container to switch to an other page once the animation is finished.

How can the widget communicate with the transition container to tell him that the animation is finished ? (handleEvent?)

Thanks in advance.

#2

Hi Christophe,

If you want to use a generic solution, you could use ej.widget.animation.AnimationListenerRegistry

  • Making your transition container implementing the AnimationListener and registering itself
  • Making your widget notifying the OnStart and OnStop of the animation

The full javadoc is available here

Regards,

#3

Thanks, this is working very fine