Package docking.dnd

Interface Droppable

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(java.lang.Object obj, java.awt.dnd.DropTargetDropEvent e, java.awt.datatransfer.DataFlavor f)
      Add the object to the droppable component.
      void dragUnderFeedback​(boolean ok, java.awt.dnd.DropTargetDragEvent e)
      Set drag feedback according to the ok parameter
      boolean isDropOk​(java.awt.dnd.DropTargetDragEvent e)
      Return true if is OK to drop the transferable at the location specified the event
      void undoDragUnderFeedback()
      Revert back to normal if any drag feedback was set
    • Method Detail

      • isDropOk

        boolean isDropOk​(java.awt.dnd.DropTargetDragEvent e)
        Return true if is OK to drop the transferable at the location specified the event
        Parameters:
        e - event that has current state of drag and drop operation
        Returns:
        true if OK
      • dragUnderFeedback

        void dragUnderFeedback​(boolean ok,
                               java.awt.dnd.DropTargetDragEvent e)
        Set drag feedback according to the ok parameter
        Parameters:
        ok - true means the drop action is OK
        e - event that has current state of drag and drop operation
      • undoDragUnderFeedback

        void undoDragUnderFeedback()
        Revert back to normal if any drag feedback was set
      • add

        void add​(java.lang.Object obj,
                 java.awt.dnd.DropTargetDropEvent e,
                 java.awt.datatransfer.DataFlavor f)
        Add the object to the droppable component. The DropTargetAdapter calls this method from its drop() method.
        Parameters:
        obj - Transferable object that is to be dropped.
        e - has current state of drop operation
        f - represents the opaque concept of a data format as would appear on a clipboard, during drag and drop.