DropTargetExtensionConnector@Deprecated public class VHtml5DragEvent extends com.google.gwt.dom.client.NativeEvent
| Modifier | Constructor and Description |
|---|---|
protected |
VHtml5DragEvent()
Deprecated.
Singleton.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDataAsText(String type)
Deprecated.
Returns the data for the given type as text.
|
String |
getEffectAllowed()
Deprecated.
Returns whether drop effect is allowed or not.
|
VHtml5File |
getFile(int fileIndex)
Deprecated.
Returns the file indicated by the given index.
|
String |
getFileAsString(int index)
Deprecated.
this method is no longer used internally
|
int |
getFileCount()
Deprecated.
Returns the transfer file count.
|
com.google.gwt.core.client.JsArrayString |
getTypes()
Deprecated.
Returns type values, or
["Text","Url","Html"] if types are not
supported. |
boolean |
isFile(int fileIndex)
Deprecated.
Detects if dropped element is a file.
|
void |
setDropEffect(String effect)
Deprecated.
Sets the drop effect value.
|
void |
setEffectAllowed(String effect)
Deprecated.
Sets whether drop effect is allowed or not.
|
void |
setHtml5DataFlavor(String flavor,
String data)
Deprecated.
Adds a data String with the given flavor identifier.
|
getAltKey, getButton, getChangedTouches, getCharCode, getClientX, getClientY, getCtrlKey, getCurrentEventTarget, getDataTransfer, getEventTarget, getKeyCode, getMetaKey, getMouseWheelVelocityY, getRelatedEventTarget, getRotation, getScale, getScreenX, getScreenY, getShiftKey, getString, getTargetTouches, getTouches, getType, preventDefault, stopPropagationpublic final com.google.gwt.core.client.JsArrayString getTypes()
["Text","Url","Html"] if types are not
supported.public final String getDataAsText(String type)
type - the type whose data to retrieve@Deprecated public final String getFileAsString(int index)
index - the index of the file to getpublic final void setDropEffect(String effect)
effect - the drop effectpublic final String getEffectAllowed()
true id drop effect is allowed, false otherwisepublic final void setEffectAllowed(String effect)
effect - true id drop effect should be allowed, false
otherwisepublic final int getFileCount()
public final VHtml5File getFile(int fileIndex)
fileIndex - the index of the filepublic final boolean isFile(int fileIndex)
true on Safari even if the dropped element is
a folder.fileIndex - the index of the element to checktrue if the dropped element is a file, false
otherwiseCopyright © 2023 Vaadin Ltd. All rights reserved.