java.awt.dnd
public class DropTarget extends Object implements DropTargetListener, EventListener, Serializable
Since: 1.2
Nested Class Summary | |
---|---|
protected static class | DropTarget.DropTargetAutoScroller |
Constructor Summary | |
---|---|
DropTarget()
Creates a DropTarget object.
| |
DropTarget(Component c, DropTargetListener dtl)
Creates a DropTarget object.
| |
DropTarget(Component c, int i, DropTargetListener dtl)
Creates a DropTarget object.
| |
DropTarget(Component c, int i, DropTargetListener dtl, boolean b)
Creates a DropTarget object.
| |
DropTarget(Component c, int i, DropTargetListener dtl, boolean b, FlavorMap fm)
Creates a DropTarget object.
|
Method Summary | |
---|---|
void | addDropTargetListener(DropTargetListener dtl)
Adds a new DropTargetListener .
|
void | addNotify(ComponentPeer p) |
protected void | clearAutoscroll() |
protected DropTarget.DropTargetAutoScroller | createDropTargetAutoScroller(Component c, Point p) |
protected DropTargetContext | createDropTargetContext() |
void | dragEnter(DropTargetDragEvent dtde) |
void | dragExit(DropTargetEvent dte) |
void | dragOver(DropTargetDragEvent dtde) |
void | drop(DropTargetDropEvent dtde) |
void | dropActionChanged(DropTargetDragEvent dtde) |
Component | getComponent()
Returns the component associated with this drop target object. |
int | getDefaultActions()
Returns the default actions. |
DropTargetContext | getDropTargetContext() |
FlavorMap | getFlavorMap() |
protected void | initializeAutoscrolling(Point p) |
boolean | isActive() |
void | removeDropTargetListener(DropTargetListener dtl) |
void | removeNotify(ComponentPeer p) |
void | setActive(boolean active) |
void | setComponent(Component c)
Sets the component associated with this drop target object. |
void | setDefaultActions(int ops)
Sets the default actions. |
void | setFlavorMap(FlavorMap fm) |
protected void | updateAutoscroll(Point dragCursorLocn) |
DropTarget
object.
Throws: HeadlessException If GraphicsEnvironment.isHeadless() returns true.
DropTarget
object.
Throws: HeadlessException If GraphicsEnvironment.isHeadless() returns true.
DropTarget
object.
Throws: HeadlessException If GraphicsEnvironment.isHeadless() returns true.
DropTarget
object.
Throws: HeadlessException If GraphicsEnvironment.isHeadless() returns true.
DropTarget
object.
Throws: HeadlessException If GraphicsEnvironment.isHeadless() returns true.
DropTargetListener
.
Throws: TooManyListenersException Sun's JDK does not, despite
documentation, throw this exception here when you install an additional
DropTargetListener
. So to be compatible, we do the same
thing.