Package org.apache.pivot.wtk
Interface DropTarget
- 
 public interface DropTargetInterface representing a drop target.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description DropActiondragEnter(Component component, Manifest dragContent, int supportedDropActions, DropAction userDropAction)Called when the mouse first enters a drop target during a drag operation.voiddragExit(Component component)Called when the mouse leaves a drop target during a drag operation.DropActiondragMove(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.DropActiondrop(Component component, Manifest dragContent, int supportedDropActions, int x, int y, DropAction userDropAction)Called to drop the drag content.DropActionuserDropActionChange(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.
 
- 
- 
- 
Method Detail- 
dragEnterDropAction dragEnter(Component component, Manifest dragContent, int supportedDropActions, DropAction userDropAction) Called when the mouse first enters a drop target during a drag operation.- Parameters:
- component- The drop target component.
- dragContent- What is being dragged.
- supportedDropActions- What drop actions should be considered.
- userDropAction- What drop action the user is requesting.
- Returns:
- The drop action that would result if the user dropped the item at
 this location, or nullif the target cannot accept the drop.
 
 - 
dragExitvoid dragExit(Component component) Called when the mouse leaves a drop target during a drag operation.- Parameters:
- component- The drop target component.
 
 - 
dragMoveDropAction 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.- Parameters:
- component- The drop target component.
- dragContent- What is being dragged.
- supportedDropActions- The drop actions that are supported by the contents.
- x- The current mouse X-location.
- y- The current mouse Y-location.
- userDropAction- What drop action the user is requesting.
- Returns:
- The drop action that would result if the user dropped the item at
 this location, or nullif the target cannot accept the drop.
 
 - 
userDropActionChangeDropAction 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.- Parameters:
- component- The drop target component.
- dragContent- What is being dragged.
- supportedDropActions- The drop actions that are supported by the contents.
- x- The current mouse X-location.
- y- The current mouse Y-location.
- userDropAction- What drop action the user is requesting.
- Returns:
- The drop action that would result if the user dropped the item at
 this location, or nullif the target cannot accept the drop.
 
 - 
dropDropAction drop(Component component, Manifest dragContent, int supportedDropActions, int x, int y, DropAction userDropAction) Called to drop the drag content.- Parameters:
- component- The drop target component.
- dragContent- What is being dragged.
- supportedDropActions- The drop actions that are supported by the contents.
- x- The current mouse X-location.
- y- The current mouse Y-location.
- userDropAction- What drop action the user is requesting.
- Returns:
- The drop action used to perform the drop, or nullif the target rejected the drop.
 
 
- 
 
-