Interface DragAndDrop


public interface DragAndDrop
Allows managing the drag and drop functionality for the associated BrowserView.
Since:
7.4
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Disables the drag and drop support for the associated BrowserView.
    void
    Disables the drag-and-drop operations from the outside of the browser.
    void
    Enables the drag and drop support for the associated BrowserView.
    void
    Enables the drag-and-drop operations from the outside of the browser.
    boolean
    Indicates whether the drag and drop support is enabled for the associated BrowserView.
    boolean
    Checks whether the drag-and-drop operations from the outside of the browser is enabled.
  • Method Details

    • enable

      void enable()
      Enables the drag and drop support for the associated BrowserView.

      Does nothing in case the GraphicsEnvironment.isHeadless() returns true.

      Since:
      7.4
    • disable

      void disable()
      Disables the drag and drop support for the associated BrowserView.

      Does nothing in case the GraphicsEnvironment.isHeadless() returns true.

      Since:
      7.4
    • isEnabled

      boolean isEnabled()
      Indicates whether the drag and drop support is enabled for the associated BrowserView.

      By default, the drag and drop support is enabled unless the GraphicsEnvironment.isHeadless() returns true.

      Since:
      7.4
    • enableExternalDrag

      void enableExternalDrag()
      Enables the drag-and-drop operations from the outside of the browser.

      Does nothing in case the GraphicsEnvironment.isHeadless() returns true.

      Since:
      8.1.0
    • disableExternalDrag

      void disableExternalDrag()
      Disables the drag-and-drop operations from the outside of the browser.

      Does nothing in case the GraphicsEnvironment.isHeadless() returns true.

      Since:
      8.1.0
    • isExternalDragEnabled

      boolean isExternalDragEnabled()
      Checks whether the drag-and-drop operations from the outside of the browser is enabled.

      By default, the external drag and drop is enabled.

      Since:
      8.1.0