Interface AcceptProvider


public interface AcceptProvider
This interface controls an accept (drag & drop) action.
  • Method Details

    • isAcceptable

      ConnectorState isAcceptable(Widget widget, Point point, Transferable transferable)
      Checks whether a transferable can be dropped on a widget at a specific point.
      Parameters:
      widget - the widget could be dropped
      point - the drop location in local coordination system of the widget
      transferable - the transferable
      Returns:
      the state
    • accept

      void accept(Widget widget, Point point, Transferable transferable)
      Handles the drop of a transferable.
      Parameters:
      widget - the widget where the transferable is dropped
      point - the drop location in local coordination system of the widget
      transferable - the transferable