Interface TreeTreeDnDListener
-
- All Superinterfaces:
java.util.EventListener
public interface TreeTreeDnDListener extends java.util.EventListenerTreeTreeDnDListener represents a listener that receives notifications when some node from a tree is moved or copied into itself (or into another tree).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddrop(TreeTreeDnDEvent anEvent)Invoked when the drop operation happens.voidmayDrop(TreeTreeDnDEvent anEvent)Invoked to verify that a node may be dropped into another node.
-
-
-
Method Detail
-
mayDrop
void mayDrop(TreeTreeDnDEvent anEvent) throws DnDVetoException
Invoked to verify that a node may be dropped into another node.- Parameters:
anEvent- a TreeTreeDnDEvent the event containing information about the Drag and Drop operation.- Throws:
DnDVetoException- if the drag and drop operation is not valid.
-
drop
void drop(TreeTreeDnDEvent anEvent) throws DnDVetoException
Invoked when the drop operation happens.- Parameters:
anEvent- a TreeTreeDnDEvent the event containing information about the Drag and Drop operation.- Throws:
DnDVetoException- if the drag and drop operation is not valid.
-
-