|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DragComponent
Defines a component that supports drag actions. Classes
implementing this interface must also extend java.awt.Component.
Classes that implement this interface may then use an instance of
DragSourceAdapter
to manage drag events via method calls to
this interface.
Method Summary | |
---|---|
void |
endDrag(DragSourceDropEvent e,
boolean moveData)
|
int |
getSupportedDragActions()
Return a mask of possible drag actions supported by this component eg DnDConstants.ACTION_COPY_OR_MOVE. |
boolean |
isDragOK(DragGestureEvent e)
Return true if starting a drag in the given context is possible. |
Transferable |
startDrag(DragGestureEvent e)
Start a drag operation. |
Method Detail |
---|
int getSupportedDragActions()
isDragOK(java.awt.dnd.DragGestureEvent)
.
boolean isDragOK(DragGestureEvent e)
e
- The drag context.Transferable startDrag(DragGestureEvent e)
e
- The gesture that started the drag.
void endDrag(DragSourceDropEvent e, boolean moveData)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |