org.jvnet.lafwidget.tree.dnd
Interface StringTreeDnDListener

All Superinterfaces:
java.util.EventListener

public interface StringTreeDnDListener
extends java.util.EventListener

StringTreeDnDListener represents a listener that is informed when a String is about to be dropped into a node in a JTree.

Version:
$Revision: 1.12 $
Author:
Antonio Vieiro (antonio@antonioshome.net), $Author: kirillcool $

Method Summary
 void drop(StringTreeDnDEvent anEvent)
          Invoked when the drop operation happens.
 void mayDrop(StringTreeDnDEvent anEvent)
          Invoked to verify that aSourceString may be dropped into aTargetNode inside aTargetTree.
 

Method Detail

mayDrop

void mayDrop(StringTreeDnDEvent anEvent)
             throws DnDVetoException
Invoked to verify that aSourceString may be dropped into aTargetNode inside aTargetTree.

Parameters:
anEvent - a StringTreeDnDEvent containing information about the data being dropped.
Throws:
DnDVetoException - if the drag and drop operation is not valid.

drop

void drop(StringTreeDnDEvent anEvent)
          throws DnDVetoException
Invoked when the drop operation happens.

Parameters:
anEvent - a StringTreeDnDEvent the event containing information about the Drag and Drop operation.
Throws:
DnDVetoException - if the drag and drop operation is not valid.