com.webrenderer.event
Class DragAdapter

java.lang.Object
  extended bycom.webrenderer.event.DragAdapter
All Implemented Interfaces:
DragListener, java.util.EventListener

public abstract class DragAdapter
extends java.lang.Object
implements DragListener

An abstract adapter class for receiving drag events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a DragEvent listener and override the methods for the events of interest. (If you implement the DragListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a browser using the browser's addDragListener method. When a drag event occurs, the relevant method in the listener object is invoked and the DragEvent is passed to it.


Constructor Summary
DragAdapter()
           
 
Method Summary
 void onDragDrop(DragEvent e)
          Invoked when a drag operation is dropped on a target.
 void onDragEnter(DragEvent e)
          Invoked when an in-progress drag enters a component.
 void onDragExit(DragEvent e)
          Invoked when an in-progress drag exits from a component.
 void onDragGesture(DragEvent e)
          Invoked when a drag gesture is recognised.
 void onDragOver(DragEvent e)
          Invoked when an in-progress drag is over a component.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragAdapter

public DragAdapter()
Method Detail

onDragEnter

public void onDragEnter(DragEvent e)
Description copied from interface: DragListener
Invoked when an in-progress drag enters a component.

Specified by:
onDragEnter in interface DragListener

onDragOver

public void onDragOver(DragEvent e)
Description copied from interface: DragListener
Invoked when an in-progress drag is over a component.

Specified by:
onDragOver in interface DragListener

onDragExit

public void onDragExit(DragEvent e)
Description copied from interface: DragListener
Invoked when an in-progress drag exits from a component.

Specified by:
onDragExit in interface DragListener

onDragDrop

public void onDragDrop(DragEvent e)
Description copied from interface: DragListener
Invoked when a drag operation is dropped on a target.

Specified by:
onDragDrop in interface DragListener

onDragGesture

public void onDragGesture(DragEvent e)
Description copied from interface: DragListener
Invoked when a drag gesture is recognised.

Specified by:
onDragGesture in interface DragListener