public class TLcyCompositeDropTargetListener extends Object implements DropTargetListener
Composite implementation of the DropTargetListener
interface.
Please refer to the "Composite"
design pattern for more information.
Constructor and Description |
---|
TLcyCompositeDropTargetListener() |
Modifier and Type | Method and Description |
---|---|
void |
addDropTargetListener(DropTargetListener aDropTargetListener)
Adds a
DropTargetListener as a leaf to this composite. |
void |
dragEnter(DropTargetDragEvent dtde) |
void |
dragExit(DropTargetEvent dte) |
void |
dragOver(DropTargetDragEvent dtde) |
void |
drop(DropTargetDropEvent dtde) |
void |
dropActionChanged(DropTargetDragEvent dtde) |
void |
removeDropTargetListener(DropTargetListener aDropTargetListener)
Removes the specified
DropTargetListener as a leaf from this composite. |
public void addDropTargetListener(DropTargetListener aDropTargetListener)
DropTargetListener
as a leaf to this composite.aDropTargetListener
- The DropTargetListener
to add as a leaf to this
composite. If this listener is null
, nothing happens.public void removeDropTargetListener(DropTargetListener aDropTargetListener)
DropTargetListener
as a leaf from this composite.aDropTargetListener
- The DropTargetListener
to remove from this composite.
If this is null
, nothing happens.public void dragEnter(DropTargetDragEvent dtde)
dragEnter
in interface DropTargetListener
public void dragExit(DropTargetEvent dte)
dragExit
in interface DropTargetListener
public void dragOver(DropTargetDragEvent dtde)
dragOver
in interface DropTargetListener
public void drop(DropTargetDropEvent dtde)
drop
in interface DropTargetListener
public void dropActionChanged(DropTargetDragEvent dtde)
dropActionChanged
in interface DropTargetListener