Interface AcceptProvider
public interface AcceptProvider
This interface controls an accept (drag & drop) action.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Widget widget, Point point, Transferable transferable) Handles the drop of a transferable.isAcceptable
(Widget widget, Point point, Transferable transferable) Checks whether a transferable can be dropped on a widget at a specific point.
-
Method Details
-
isAcceptable
Checks whether a transferable can be dropped on a widget at a specific point.- Parameters:
widget
- the widget could be droppedpoint
- the drop location in local coordination system of the widgettransferable
- the transferable- Returns:
- the state
-
accept
Handles the drop of a transferable.- Parameters:
widget
- the widget where the transferable is droppedpoint
- the drop location in local coordination system of the widgettransferable
- the transferable
-