Class VHtml5DragEvent


  • public class VHtml5DragEvent
    extends com.google.gwt.dom.client.NativeEvent
    Helper class to access html5 style drag events. TODO Gears support ?
    • Field Summary

      • Fields inherited from class com.google.gwt.dom.client.NativeEvent

        BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected VHtml5DragEvent()  
    • Constructor Detail

      • VHtml5DragEvent

        protected VHtml5DragEvent()
    • Method Detail

      • getTypes

        public final com.google.gwt.core.client.JsArrayString getTypes()
      • getDataAsText

        public final String getDataAsText​(String type)
      • getFileAsString

        public final String getFileAsString​(int index)
        Works on FF 3.6 and possibly with gears.
        Parameters:
        index -
        Returns:
      • setDropEffect

        public final void setDropEffect​(String effect)
      • getEffectAllowed

        public final String getEffectAllowed()
      • setEffectAllowed

        public final void setEffectAllowed​(String effect)
      • getFileCount

        public final int getFileCount()
      • getFile

        public final VHtml5File getFile​(int fileIndex)
      • isFile

        public final boolean isFile​(int fileIndex)
        Detects if dropped element is a file.
        Always returns true on Safari even if the dropped element is a folder.
      • setHtml5DataFlavor

        public final void setHtml5DataFlavor​(String flavor,
                                             String data)