Interface TreeTreeDnDListener

  • All Superinterfaces:
    java.util.EventListener

    public interface TreeTreeDnDListener
    extends java.util.EventListener
    TreeTreeDnDListener represents a listener that receives notifications when some node from a tree is moved or copied into itself (or into another tree).
    • 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.