public interface DropTarget
Modifier and Type | Method and Description |
---|---|
DropAction |
dragEnter(Component component,
Manifest dragContent,
int supportedDropActions,
DropAction userDropAction)
Called when the mouse first enters a drop target during a drag
operation.
|
void |
dragExit(Component component)
Called when the mouse leaves a drop target during a drag operation.
|
DropAction |
dragMove(Component component,
Manifest dragContent,
int supportedDropActions,
int x,
int y,
DropAction userDropAction)
Called when the mouse is moved while positioned over a drop target
during a drag operation.
|
DropAction |
drop(Component component,
Manifest dragContent,
int supportedDropActions,
int x,
int y,
DropAction userDropAction)
Called to drop the drag content.
|
DropAction |
userDropActionChange(Component component,
Manifest dragContent,
int supportedDropActions,
int x,
int y,
DropAction userDropAction)
Called when the user drop action changes while the mouse is positioned
over a drop target during a drag operation.
|
DropAction dragEnter(Component component, Manifest dragContent, int supportedDropActions, DropAction userDropAction)
component
- dragContent
- supportedDropActions
- userDropAction
- void dragExit(Component component)
component
- DropAction dragMove(Component component, Manifest dragContent, int supportedDropActions, int x, int y, DropAction userDropAction)
component
- dragContent
- supportedDropActions
- x
- y
- userDropAction
- DropAction userDropActionChange(Component component, Manifest dragContent, int supportedDropActions, int x, int y, DropAction userDropAction)
component
- dragContent
- supportedDropActions
- x
- y
- userDropAction
- DropAction drop(Component component, Manifest dragContent, int supportedDropActions, int x, int y, DropAction userDropAction)
component
- dragContent
- supportedDropActions
- x
- y
- userDropAction
-