Interface DataTransfer


public interface DataTransfer
This is an interface to work with JavaScript DataTransfer and DataTransferItems
  • Method Summary

    Modifier and Type
    Method
    Description
    getData(String aType)
    Returns the data for a given type.
    int
    Returns the number of files.
    Returns the files.
    Returns the types.
    void
    setData(String aType, String theData)
    Set the data for a given type.
    void
    setDragImage(HTMLElement aImg, double xOffset, double yOffset)
    Sets the image Element element to use for the drag feedback image.
  • Method Details

    • getTypes

      String[] getTypes()
      Returns the types.
    • getData

      String getData(String aType)
      Returns the data for a given type.
    • setData

      void setData(String aType, String theData)
      Set the data for a given type.
    • getFileCount

      int getFileCount()
      Returns the number of files.
    • getFiles

      File[] getFiles()
      Returns the files.
    • setDragImage

      void setDragImage(HTMLElement aImg, double xOffset, double yOffset)
      Sets the image Element element to use for the drag feedback image.