Class DroppedData


  • @OpenApiAll
    public class DroppedData
    extends java.lang.Object
    Wraps essential info from TransferHandler.TransferSupport to make it accessible after drop is complete
    • Constructor Summary

      Constructors 
      Constructor Description
      DroppedData​(java.lang.Object transferredData, int dropAction, java.awt.Point dropPoint)  
    • Constructor Detail

      • DroppedData

        public DroppedData​(java.lang.Object transferredData,
                           int dropAction,
                           java.awt.Point dropPoint)
        Parameters:
        transferredData - data extracted from TransferHandler.TransferSupport
        dropAction - one of transfer handler actions
        dropPoint - point on screen where the drag finished and was dropped
    • Method Detail

      • getTransferredData

        public java.lang.Object getTransferredData()
        Returns:
        data extracted from TransferHandler.TransferSupport
      • getDropPoint

        public java.awt.Point getDropPoint()
        Returns:
        point on screen where the drag finished and was dropped
      • getDropAction

        public int getDropAction()
        Returns:
        one of transfer handler actions TransferHandler.NONE TransferHandler.LINK TransferHandler.MOVE TransferHandler.COPY TransferHandler.COPY_OR_MOVE