Java java.awt.dnd DropTarget fields, constructors, methods, implement or subclass

Example usage for Java java.awt.dnd DropTarget fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.dnd DropTarget.

The text is from its open source code.

Constructor

DropTarget(Component c, DropTargetListener dtl)
Creates a DropTarget given the Component to associate itself with, and the DropTargetListener to handle event processing.
DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm)
Creates a new DropTarget given the Component to associate itself with, an int representing the default acceptable action(s) to support, a DropTargetListener to handle event processing, a boolean indicating if the DropTarget is currently accepting drops, and a FlavorMap to use (or null for the default FlavorMap ).
DropTarget(Component c, int ops, DropTargetListener dtl)
Creates a DropTarget given the Component to associate itself with, an int representing the default acceptable action(s) to support, and a DropTargetListener to handle event processing.
DropTarget()
Creates a DropTarget .
DropTarget(Component c, int ops, DropTargetListener dtl, boolean act)
Creates a DropTarget given the Component to associate itself with, an int representing the default acceptable action(s) to support, a DropTargetListener to handle event processing, and a boolean indicating if the DropTarget is currently accepting drops.

Method

voidaddDropTargetListener(DropTargetListener dtl)
Adds a new DropTargetListener (UNICAST SOURCE).
voidsetActive(boolean isActive)
Sets the DropTarget active if true , inactive if false .
voidsetDefaultActions(int ops)
Sets the default acceptable actions for this DropTarget