edu.northwestern.at.utils.swing
Class URLTextField.URLDragSource
java.lang.Object
java.awt.dnd.DragSource
edu.northwestern.at.utils.swing.URLTextField.URLDragSource
- All Implemented Interfaces:
- java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.io.Serializable, java.util.EventListener
- Enclosing class:
- URLTextField
class URLTextField.URLDragSource
- extends java.awt.dnd.DragSource
- implements java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener
Drag source for URL text.
Fields inherited from class java.awt.dnd.DragSource |
DefaultCopyDrop, DefaultCopyNoDrop, DefaultLinkDrop, DefaultLinkNoDrop, DefaultMoveDrop, DefaultMoveNoDrop |
Method Summary |
void |
dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
|
void |
dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
|
void |
dragExit(java.awt.dnd.DragSourceEvent dsde)
|
void |
dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
Handles a drag gesture recognized event. |
void |
dragOver(java.awt.dnd.DragSourceDragEvent dsde)
|
void |
dragOver(java.awt.dnd.DropTargetDragEvent dsde)
|
void |
dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
|
Methods inherited from class java.awt.dnd.DragSource |
addDragSourceListener, addDragSourceMotionListener, createDefaultDragGestureRecognizer, createDragGestureRecognizer, createDragSourceContext, getDefaultDragSource, getDragSourceListeners, getDragSourceMotionListeners, getDragThreshold, getFlavorMap, getListeners, isDragImageSupported, removeDragSourceListener, removeDragSourceMotionListener, startDrag, startDrag, startDrag, startDrag |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
urlTextField
protected URLTextField urlTextField
- Parent component for which dragging is enabled.
URLTextField.URLDragSource
public URLTextField.URLDragSource(URLTextField urlTextField)
- Create URL drag source.
- Parameters:
urlTextField
- The URLTextField containing
the URL to drag.
dragGestureRecognized
public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
- Handles a drag gesture recognized event.
- Specified by:
dragGestureRecognized
in interface java.awt.dnd.DragGestureListener
- Parameters:
dge
- The event.
dragDropEnd
public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
- Specified by:
dragDropEnd
in interface java.awt.dnd.DragSourceListener
dragEnter
public void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
- Specified by:
dragEnter
in interface java.awt.dnd.DragSourceListener
dragOver
public void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
- Specified by:
dragOver
in interface java.awt.dnd.DragSourceListener
dragExit
public void dragExit(java.awt.dnd.DragSourceEvent dsde)
- Specified by:
dragExit
in interface java.awt.dnd.DragSourceListener
dragOver
public void dragOver(java.awt.dnd.DropTargetDragEvent dsde)
dropActionChanged
public void dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
- Specified by:
dropActionChanged
in interface java.awt.dnd.DragSourceListener