com.webrenderer.event
Interface DragListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
DragAdapter

public interface DragListener
extends java.util.EventListener

The listener interface for receiving drag events such as drag drops.

You should explicitly use com.webrenderer.event.DragListener

e.g:
browser.addDragListener(new com.webrenderer.event.DragListener(){...});

The class that is interested in processing a drag event either implements this interface (and all the methods it contains) or extends the abstract DragAdapter class (overriding only the methods of interest).

The listener object created from that class is then registered with an IBrowserCanvas using the addDragListener method. Currently only available on Windows.


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.
 

Method Detail

onDragEnter

public void onDragEnter(DragEvent e)
Invoked when an in-progress drag enters a component.


onDragOver

public void onDragOver(DragEvent e)
Invoked when an in-progress drag is over a component.


onDragExit

public void onDragExit(DragEvent e)
Invoked when an in-progress drag exits from a component.


onDragDrop

public void onDragDrop(DragEvent e)
Invoked when a drag operation is dropped on a target.


onDragGesture

public void onDragGesture(DragEvent e)
Invoked when a drag gesture is recognised.