GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.dnd.DragSource
Constructor Summary | |
|
Method Summary | |
void | |
void | |
DragGestureRecognizer |
|
protected DragSourceContext |
|
|
|
|
|
static DragSource |
|
DragSourceListener[] | |
DragSourceMotionListener[] | |
static int |
|
FlavorMap | |
static boolean | |
void | |
void | |
void |
|
void |
|
void |
|
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public DragSource()
Initializes the drag source.
- Throws:
HeadlessException
- If GraphicsEnvironment.isHeadless() is true.
public void addDragSourceMotionListener(DragSourceMotionListener l)
- Since:
- 1.4
public DragGestureRecognizer createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl)
protected DragSourceContext createDragSourceContext(DragSourceContextPeer peer, DragGestureEvent dge, Cursor cursor, Image image, Point offset, Transferable t, DragSourceListener dsl)
Creates the DragSourceContext to handle this drag.
- Throws:
IllegalArgumentException
-NullPointerException
- If dscp, dgl, dragImage or t is null.
publicextends DragGestureRecognizer> T createDragGestureRecognizer (Classrecognizer, Component c, int actions, DragGestureListener dgl)
publicextends EventListener> T[] getListeners (ClasslistenerType)
- Since:
- 1.4
public static DragSource getDefaultDragSource()
Gets the default drag source.
- Throws:
HeadlessException
- If GraphicsEnvironment.isHeadless() is true.
public DragSourceMotionListener[] getDragSourceMotionListeners()
- Since:
- 1.4
public static int getDragThreshold() throws gnu.classpath.NotImplementedException
TODO
- Returns:
- TODO
- Since:
- 1.5
public void removeDragSourceMotionListener(DragSourceMotionListener l)
- Since:
- 1.4
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl)
Start a drag, given the DragGestureEvent that initiated the drag.
- Throws:
InvalidDnDOperationException
- If the Drag and Drop system is unable to initiate a drag operation, or if the user attempts to start a drag while an existing drag operation is still executing.
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable trans, DragSourceListener dsl, FlavorMap map)
Start a drag, given the DragGestureEvent that initiated the drag.
- Throws:
InvalidDnDOperationException
- If the Drag and Drop system is unable to initiate a drag operation, or if the user attempts to start a drag while an existing drag operation is still executing.
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable trans, DragSourceListener dsl)
Start a drag, given the DragGestureEvent that initiated the drag.
- Throws:
InvalidDnDOperationException
- If the Drag and Drop system is unable to initiate a drag operation, or if the user attempts to start a drag while an existing drag operation is still executing.
public void startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable trans, DragSourceListener dsl, FlavorMap map)
Start a drag, given the DragGestureEvent that initiated the drag.
- Throws:
InvalidDnDOperationException
- If the Drag and Drop system is unable to initiate a drag operation, or if the user attempts to start a drag while an existing drag operation is still executing.
GNU Classpath (0.95) |