Package com.teamdev.jxbrowser.view.swing
Interface DragAndDrop
public interface DragAndDrop
Allows managing the drag and drop functionality for the associated
BrowserView.- Since:
- 7.4
-
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disables the drag and drop support for the associatedBrowserView.voidDisables the drag-and-drop operations from the outside of the browser.voidenable()Enables the drag and drop support for the associatedBrowserView.voidEnables the drag-and-drop operations from the outside of the browser.booleanIndicates whether the drag and drop support is enabled for the associatedBrowserView.booleanChecks 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 associatedBrowserView.Does nothing in case the
GraphicsEnvironment.isHeadless()returns true.- Since:
- 7.4
-
disable
void disable()Disables the drag and drop support for the associatedBrowserView.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 associatedBrowserView.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
-