Package com.vaadin.client.ui.dd
Class VHtml5DragEvent
- java.lang.Object
-
- com.google.gwt.core.client.JavaScriptObject
-
- com.google.gwt.dom.client.NativeEvent
-
- com.vaadin.client.ui.dd.VHtml5DragEvent
-
public class VHtml5DragEvent extends com.google.gwt.dom.client.NativeEventHelper class to access html5 style drag events. TODO Gears support ?
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedVHtml5DragEvent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDataAsText(String type)StringgetEffectAllowed()VHtml5FilegetFile(int fileIndex)StringgetFileAsString(int index)Works on FF 3.6 and possibly with gears.intgetFileCount()com.google.gwt.core.client.JsArrayStringgetTypes()booleanisFile(int fileIndex)Detects if dropped element is a file.voidsetDropEffect(String effect)voidsetEffectAllowed(String effect)voidsetHtml5DataFlavor(String flavor, String data)-
Methods inherited from class com.google.gwt.dom.client.NativeEvent
getAltKey, getButton, getChangedTouches, getCharCode, getClientX, getClientY, getCtrlKey, getCurrentEventTarget, getDataTransfer, getEventTarget, getKeyCode, getMetaKey, getMouseWheelVelocityY, getRelatedEventTarget, getRotation, getScale, getScreenX, getScreenY, getShiftKey, getString, getTargetTouches, getTouches, getType, preventDefault, stopPropagation
-
-
-
-
Method Detail
-
getTypes
public final com.google.gwt.core.client.JsArrayString getTypes()
-
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 returnstrueon Safari even if the dropped element is a folder.
-
-