O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Flow Review

At this point, it would be good to review the flow, because the messages passed among the several objects discussed are so complex.

The DragGestureRecognizer recognizes a gesture and notifies the DragGestureListener. The DragGestureListener, assuming the actions and/or flavors are okay, asks DragSource to startDrag().

The DragSource creates a DragSourceContext and a DragSourceContextPeer. The DragSourceContext adds itself as a DragSourceListener to the DragSourceContextPeer. The DragSourceContextPeer receives state notifications (component entered/exited/is over) from the native system and delegates them to the DragSourceContext.

If the DropTargetListener accepts the action, the DragSourceContext notifies the DragSourceListener,

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required