public class TextFieldDropTarget
extends java.lang.Object
implements java.awt.dnd.DropTargetListener
Modifier and Type | Field and Description |
---|---|
(package private) DDropTextField |
ddtField |
(package private) java.awt.Rectangle |
dragBounds |
(package private) javax.swing.JTextField |
jtField |
(package private) java.awt.dnd.DropTarget |
target |
Constructor and Description |
---|
TextFieldDropTarget(javax.swing.JTextField jtf,
DDropTextField ddtf) |
Modifier and Type | Method and Description |
---|---|
void |
dragEnter(java.awt.dnd.DropTargetDragEvent dtde) |
void |
dragExit(java.awt.dnd.DropTargetEvent dte) |
void |
dragOver(java.awt.dnd.DropTargetDragEvent dtde) |
void |
drop(java.awt.dnd.DropTargetDropEvent dtde) |
void |
dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde) |
java.awt.dnd.DropTarget target
DDropTextField ddtField
javax.swing.JTextField jtField
java.awt.Rectangle dragBounds
public TextFieldDropTarget(javax.swing.JTextField jtf, DDropTextField ddtf)
public void dragEnter(java.awt.dnd.DropTargetDragEvent dtde)
dragEnter
in interface java.awt.dnd.DropTargetListener
public void dragOver(java.awt.dnd.DropTargetDragEvent dtde)
dragOver
in interface java.awt.dnd.DropTargetListener
public void dragExit(java.awt.dnd.DropTargetEvent dte)
dragExit
in interface java.awt.dnd.DropTargetListener
public void dropActionChanged(java.awt.dnd.DropTargetDragEvent dtde)
dropActionChanged
in interface java.awt.dnd.DropTargetListener
public void drop(java.awt.dnd.DropTargetDropEvent dtde)
drop
in interface java.awt.dnd.DropTargetListener
Copyright © 2013. All Rights Reserved.