Interface WindowDrag


public interface WindowDrag
One window's part in the system's drags: it begins them, and stops taking them when it closes.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    answerChanged(@Nullable DropAction action)
    What the window answers the drag over it now, with no move of the pointer to ask it: the content scrolled under the pointer.
    void
    The window is closing.
    boolean
    start(DragRequest request)
    Begins a drag the system drives.
  • Method Details

    • start

      boolean start(DragRequest request)
      Begins a drag the system drives. UI thread.
      Parameters:
      request - what is dragged
      Returns:
      whether it was taken; the request hears its end
    • answerChanged

      default void answerChanged(@Nullable DropAction action)
      What the window answers the drag over it now, with no move of the pointer to ask it: the content scrolled under the pointer. Told to the drag's source as the answer to a move would be, while that drag is over this window and not yet dropped. UI thread.
      Parameters:
      action - what a widget there would carry out, or null when none takes it
    • close

      void close()
      The window is closing. UI thread.