javax.swing
Class TransferHandler.DragHandler

java.lang.Object
  extended byjavax.swing.TransferHandler.DragHandler
All Implemented Interfaces:
DragGestureListener, DragSourceListener, EventListener
Enclosing class:
TransferHandler

private static class TransferHandler.DragHandler
extends Object
implements DragGestureListener, DragSourceListener

This is the default drag handler for drag and drop operations that use the TransferHandler.


Field Summary
private  boolean scrolls
           
 
Constructor Summary
private TransferHandler.DragHandler()
           
 
Method Summary
 void dragDropEnd(DragSourceDropEvent dsde)
          as the operation completes
 void dragEnter(DragSourceDragEvent dsde)
          as the hotspot enters a platform dependent drop site
 void dragExit(DragSourceEvent dsde)
          as the hotspot exits a platform dependent drop site
 void dragGestureRecognized(DragGestureEvent dge)
          a Drag gesture has been recognized
 void dragOver(DragSourceDragEvent dsde)
          as the hotspot moves over a platform dependent drop site
 void dropActionChanged(DragSourceDragEvent dsde)
          Called when the user has modified the drop gesture.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scrolls

private boolean scrolls
Constructor Detail

TransferHandler.DragHandler

private TransferHandler.DragHandler()
Method Detail

dragGestureRecognized

public void dragGestureRecognized(DragGestureEvent dge)
a Drag gesture has been recognized

Specified by:
dragGestureRecognized in interface DragGestureListener
Parameters:
dge - the DragGestureEvent describing the gesture that has just occurred

dragEnter

public void dragEnter(DragSourceDragEvent dsde)
as the hotspot enters a platform dependent drop site

Specified by:
dragEnter in interface DragSourceListener
Parameters:
dsde - the DragSourceDragEvent

dragOver

public void dragOver(DragSourceDragEvent dsde)
as the hotspot moves over a platform dependent drop site

Specified by:
dragOver in interface DragSourceListener
Parameters:
dsde - the DragSourceDragEvent

dragExit

public void dragExit(DragSourceEvent dsde)
as the hotspot exits a platform dependent drop site

Specified by:
dragExit in interface DragSourceListener
Parameters:
dsde - the DragSourceEvent

dragDropEnd

public void dragDropEnd(DragSourceDropEvent dsde)
as the operation completes

Specified by:
dragDropEnd in interface DragSourceListener
Parameters:
dsde - the DragSourceDropEvent

dropActionChanged

public void dropActionChanged(DragSourceDragEvent dsde)
Description copied from interface: DragSourceListener
Called when the user has modified the drop gesture. This method is invoked when the state of the input device(s) that the user is interacting with changes. Such devices are typically the mouse buttons or keyboard modifiers that the user is interacting with.

Specified by:
dropActionChanged in interface DragSourceListener
Parameters:
dsde - the DragSourceDragEvent