Package net.sf.freecol.client.gui.panel
Class DefaultTransferHandler.FreeColDragHandler
- java.lang.Object
-
- net.sf.freecol.client.gui.panel.DefaultTransferHandler.FreeColDragHandler
-
- All Implemented Interfaces:
java.awt.dnd.DragGestureListener
,java.awt.dnd.DragSourceListener
,java.util.EventListener
- Enclosing class:
- DefaultTransferHandler
private static class DefaultTransferHandler.FreeColDragHandler extends java.lang.Object implements java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener
This is the default drag handler for drag and drop operations that use theTransferHandler
.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
scrolls
-
Constructor Summary
Constructors Modifier Constructor Description private
FreeColDragHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
void
dragOver(java.awt.dnd.DragSourceDragEvent dsde)
void
dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
private java.awt.Cursor
getCursor(javax.swing.JComponent c)
Get a suitable cursor for the given component.private void
updatePartialChosen(javax.swing.JComponent comp, boolean partial)
-
-
-
Method Detail
-
updatePartialChosen
private void updatePartialChosen(javax.swing.JComponent comp, boolean partial)
-
getCursor
private java.awt.Cursor getCursor(javax.swing.JComponent c)
Get a suitable cursor for the given component.- Parameters:
c
- The component to consider.- Returns:
- A suitable
Cursor
, or null on failure.
-
dragGestureRecognized
public void dragGestureRecognized(java.awt.dnd.DragGestureEvent dge)
- Specified by:
dragGestureRecognized
in interfacejava.awt.dnd.DragGestureListener
-
dragEnter
public void dragEnter(java.awt.dnd.DragSourceDragEvent dsde)
- Specified by:
dragEnter
in interfacejava.awt.dnd.DragSourceListener
-
dragOver
public void dragOver(java.awt.dnd.DragSourceDragEvent dsde)
- Specified by:
dragOver
in interfacejava.awt.dnd.DragSourceListener
-
dragExit
public void dragExit(java.awt.dnd.DragSourceEvent dsde)
- Specified by:
dragExit
in interfacejava.awt.dnd.DragSourceListener
-
dragDropEnd
public void dragDropEnd(java.awt.dnd.DragSourceDropEvent dsde)
- Specified by:
dragDropEnd
in interfacejava.awt.dnd.DragSourceListener
-
dropActionChanged
public void dropActionChanged(java.awt.dnd.DragSourceDragEvent dsde)
- Specified by:
dropActionChanged
in interfacejava.awt.dnd.DragSourceListener
-
-