com.vaadin.terminal.gwt.client.ui.dd
Class VHtml5DragEvent

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.NativeEvent
          extended by com.vaadin.terminal.gwt.client.ui.dd.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
protected VHtml5DragEvent()
           
 
Method Summary
 String getDataAsText(String type)
           
 String getEffectAllowed()
           
 VHtml5File getFile(int fileIndex)
           
 String getFileAsString(int index)
          Works on FF 3.6 and possibly with gears.
 int getFileCount()
           
 com.google.gwt.core.client.JsArrayString getTypes()
           
 void setDragEffect(String effect)
          Deprecated. As of Vaadin 6.8, replaced by setDropEffect(String).
 void setDropEffect(String effect)
           
 void setEffectAllowed(String effect)
           
 void setHtml5DataFlavor(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
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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:

setDragEffect

@Deprecated
public final void setDragEffect(String effect)
Deprecated. As of Vaadin 6.8, replaced by setDropEffect(String).


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)

setHtml5DataFlavor

public final void setHtml5DataFlavor(String flavor,
                                     String data)


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.