Package docking.dnd
Class DragSrcAdapter
- java.lang.Object
- 
- docking.dnd.DragSrcAdapter
 
- 
- All Implemented Interfaces:
- java.awt.dnd.DragSourceListener,- java.util.EventListener
 
 public class DragSrcAdapter extends java.lang.Object implements java.awt.dnd.DragSourceListenerAdapter class that receives notifications in order to provide drag over effects.When the operation ends, this class receives a dragDropEndmessage, and is responsible for checking the success of the operation. If the operation was successful, and if it was a Move, then this class will remove the source data.
- 
- 
Field SummaryFields Modifier and Type Field Description protected DraggabledragComponent
 - 
Constructor SummaryConstructors Constructor Description DragSrcAdapter(Draggable dragComponent)Constructor
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddragDropEnd(java.awt.dnd.DragSourceDropEvent e)Called when the drag-drop operation completes.voiddragEnter(java.awt.dnd.DragSourceDragEvent e)Called as the hotspot enters a platform dependent drop site.voiddragExit(java.awt.dnd.DragSourceEvent e)Called as the hotspot exits a platform dependent drop site.voiddragOver(java.awt.dnd.DragSourceDragEvent e)Called as the hotspot moves over a platform dependent drop site.voiddropActionChanged(java.awt.dnd.DragSourceDragEvent e)Drop action changed, i.e., ctrl key pressed during drag to change to a copy operation.protected java.awt.CursorgetDropOkCursor(int action)Get the cursor for an "OK" drop.protected voidsetDragOverFeedback(java.awt.dnd.DragSourceDragEvent e)Sets the cursor according to the actions that are legal.
 
- 
- 
- 
Field Detail- 
dragComponentprotected Draggable dragComponent 
 
- 
 - 
Constructor Detail- 
DragSrcAdapterpublic DragSrcAdapter(Draggable dragComponent) Constructor- Parameters:
- dragComponent- component that can be dragged.
 
 
- 
 - 
Method Detail- 
dragDropEndpublic void dragDropEnd(java.awt.dnd.DragSourceDropEvent e) Called when the drag-drop operation completes. Calls the drag component's move() method if the action is a move operation.- Specified by:
- dragDropEndin interface- java.awt.dnd.DragSourceListener
 
 - 
dragEnterpublic void dragEnter(java.awt.dnd.DragSourceDragEvent e) Called as the hotspot enters a platform dependent drop site.- Specified by:
- dragEnterin interface- java.awt.dnd.DragSourceListener
 
 - 
dragOverpublic void dragOver(java.awt.dnd.DragSourceDragEvent e) Called as the hotspot moves over a platform dependent drop site.- Specified by:
- dragOverin interface- java.awt.dnd.DragSourceListener
 
 - 
dragExitpublic void dragExit(java.awt.dnd.DragSourceEvent e) Called as the hotspot exits a platform dependent drop site.- Specified by:
- dragExitin interface- java.awt.dnd.DragSourceListener
 
 - 
dropActionChangedpublic void dropActionChanged(java.awt.dnd.DragSourceDragEvent e) Drop action changed, i.e., ctrl key pressed during drag to change to a copy operation.- Specified by:
- dropActionChangedin interface- java.awt.dnd.DragSourceListener
 
 - 
setDragOverFeedbackprotected void setDragOverFeedback(java.awt.dnd.DragSourceDragEvent e) Sets the cursor according to the actions that are legal.
 - 
getDropOkCursorprotected java.awt.Cursor getDropOkCursor(int action) Get the cursor for an "OK" drop.- Parameters:
- action- action for the drag operation (copy, move, link)
- Returns:
- cursor that is appropriate for the give action
 
 
- 
 
-