|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DragSource
Interface representing a drag source.
Method Summary | |
---|---|
boolean |
beginDrag(Component component,
int x,
int y)
Called by the framework to initiate a drag operation. |
void |
endDrag(Component component,
DropAction dropAction)
Called by the framework to terminate a drag operation. |
LocalManifest |
getContent()
Returns the drag content. |
Point |
getOffset()
Returns the offset of the mouse pointer within the drag visual. |
Visual |
getRepresentation()
Returns a visual representing the drag content. |
int |
getSupportedDropActions()
Returns the drop actions supported by this drag source. |
boolean |
isNative()
Returns the drag source's native flag. |
Method Detail |
---|
boolean beginDrag(Component component, int x, int y)
component
- x
- y
-
void endDrag(Component component, DropAction dropAction)
component
- dropAction
- boolean isNative()
LocalManifest getContent()
Visual getRepresentation()
Point getOffset()
int getSupportedDropActions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |