JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host.draganddrop

Class DataTransferItem

    • Constructor Detail

      • DataTransferItem

        public DataTransferItem()
        Ctor.
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        JavaScript constructor.
      • getKind

        public String getKind()
        Returns:
        the type property
      • getType

        public String getType()
        Returns:
        the type property
      • getAsString

        public void getAsString(Object callback)
        Invokes the given callback with the drag data item's string data as the argument if the item's kind is a Plain unicode string (i.e. kind is string).
        Parameters:
        callback - Function to execute
      • getAsFile

        public File getAsFile()
        Returns:
        the drag data item's File object. If the item is not a file, this method returns null.
      • isFile

        public boolean isFile()
        Returns:
        true if this is a file
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /