|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Implementers of this interface are used by DragHelper to query the possible actions for a drag gesture and to export the data into a Transferable
Method Summary | |
void |
exportDone(java.awt.Component c,
int action)
Is called to notify you that the export this Worker has been notified of has finished. |
void |
exportStarted(java.awt.Component c,
int action)
Is called to notify you that the export has started. |
int |
getAcceptableActions(java.awt.Component c)
Return a bitmask of acceptable actions. |
java.awt.Image |
getDragImage(java.awt.Component c,
java.awt.datatransfer.Transferable t,
int action)
DnD on some platforms supports displaying a drag image in addition to the drag cursor (Windows is known not to support it, so if you are on Windows you might be doing all right, but still see no image) |
java.awt.datatransfer.Transferable |
getTransferable(java.awt.Component c)
Return a Transferable with the data you whish to export. |
Method Detail |
public java.awt.datatransfer.Transferable getTransferable(java.awt.Component c)
c
- The component that acts as the drag source
public int getAcceptableActions(java.awt.Component c)
c
- The component that acts as the drag source
public void exportStarted(java.awt.Component c, int action)
c
- The component that acts as the drag sourceaction
- The drag action that is going to be performedpublic void exportDone(java.awt.Component c, int action)
c
- The component that acts as the drag sourceaction
- The drag action that has been performedpublic java.awt.Image getDragImage(java.awt.Component c, java.awt.datatransfer.Transferable t, int action)
c
- The component that acts as the drag sourcet
- The transferable that is used in this DnD processaction
- The currently requested action for the ongoing drag process
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |