|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webrenderer.event.DragAdapter
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 |
public DragAdapter()
| Method Detail |
public void onDragEnter(DragEvent e)
DragListener
onDragEnter in interface DragListenerpublic void onDragOver(DragEvent e)
DragListener
onDragOver in interface DragListenerpublic void onDragExit(DragEvent e)
DragListener
onDragExit in interface DragListenerpublic void onDragDrop(DragEvent e)
DragListener
onDragDrop in interface DragListenerpublic void onDragGesture(DragEvent e)
DragListener
onDragGesture in interface DragListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||