We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.terminal.gwt.client.ui.dd.
Class VHtml5DragEvent
java.lang.Object
com.google.gwt.core.client.JavaScriptObject
com.google.gwt.dom.client.NativeEvent
com.vaadin.terminal.gwt.client.ui.dd.VHtml5DragEvent
- extends com.google.gwt.dom.client.NativeEvent
public class VHtml5DragEvent
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, 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)
- Parameters:
index
-- Returns:
Works on FF 3.6 and possibly with gears.
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)