public class VDragAndDropWrapper extends VCustomComponent implements VHasDropHandler
Modifier and Type | Class and Description |
---|---|
class |
VDragAndDropWrapper.CustomDropHandler |
static interface |
VDragAndDropWrapper.UploadHandler
Internal client side interface used by the connector and the widget for
the drag and drop wrapper to signal the completion of an HTML5 file
upload.
|
Modifier and Type | Field and Description |
---|---|
protected String[] |
acceptedTypes |
ApplicationConnection |
client
For internal use only.
|
protected static int |
COMPONENT |
protected static int |
COMPONENT_OTHER |
protected static String |
DRAGGABLE |
int |
dragStartMode
For internal use only.
|
VAbstractDropHandler |
dropHandler
For internal use only.
|
List<Integer> |
fileIds
For internal use only.
|
Map<String,String> |
fileIdToReceiver
For internal use only.
|
List<VHtml5File> |
files
For internal use only.
|
boolean |
hasTooltip
For internal use only.
|
protected HorizontalDropLocation |
horizontalDropLocation |
protected static int |
HTML5 |
ValueMap |
html5DataFlavors
For internal use only.
|
protected static int |
NONE |
VDragAndDropWrapper.UploadHandler |
uploadHandler
For internal use only.
|
protected VerticalDropLocation |
verticalDropLocation |
protected static int |
WRAPPER |
Constructor and Description |
---|
VDragAndDropWrapper() |
Modifier and Type | Method and Description |
---|---|
protected void |
deEmphasis(boolean doLayout) |
protected void |
emphasis(VDragEvent drag) |
ComponentConnector |
getConnector() |
com.google.gwt.user.client.ui.Widget |
getDragImageWidget() |
protected com.google.gwt.user.client.Element |
getDragStartElement() |
VDropHandler |
getDropHandler()
Returns the drop handler for this widget.
|
protected void |
hookHtml5DragStart(com.google.gwt.user.client.Element el)
Deprecated.
As of 7.2, call or override
hookHtml5DragStart(Element) instead |
protected void |
hookHtml5DragStart(com.google.gwt.dom.client.Element el) |
protected void |
hookHtml5Events(com.google.gwt.user.client.Element el)
Deprecated.
As of 7.2, call or override
hookHtml5Events(Element)
instead |
protected void |
hookHtml5Events(com.google.gwt.dom.client.Element el)
Prototype code, memory leak risk.
|
boolean |
html5DragDrop(VHtml5DragEvent event) |
boolean |
html5DragEnter(VHtml5DragEvent event) |
boolean |
html5DragLeave(VHtml5DragEvent event) |
boolean |
html5DragOver(VHtml5DragEvent event) |
boolean |
html5DragStart(VHtml5DragEvent event) |
void |
initDragStartMode()
For internal use only.
|
void |
setDragAndDropWidget(com.google.gwt.user.client.ui.Widget widget)
Set the widget that will be used as the drag image when using
DragStartMode
COMPONENT_OTHER . |
void |
startNextUpload()
For internal use only.
|
boolean |
updateDropDetails(VDragEvent drag) |
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
add, adopt, clear, doAttachChildren, doDetachChildren, orphan, remove
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected static final String DRAGGABLE
public boolean hasTooltip
protected static final int NONE
protected static final int COMPONENT
protected static final int WRAPPER
protected static final int HTML5
protected static final int COMPONENT_OTHER
public int dragStartMode
public ApplicationConnection client
public VAbstractDropHandler dropHandler
public VDragAndDropWrapper.UploadHandler uploadHandler
public Map<String,String> fileIdToReceiver
public ValueMap html5DataFlavors
protected String[] acceptedTypes
public List<Integer> fileIds
public List<VHtml5File> files
protected VerticalDropLocation verticalDropLocation
protected HorizontalDropLocation horizontalDropLocation
public void initDragStartMode()
protected com.google.gwt.user.client.Element getDragStartElement()
public void startNextUpload()
public boolean html5DragStart(VHtml5DragEvent event)
public boolean html5DragEnter(VHtml5DragEvent event)
public boolean html5DragLeave(VHtml5DragEvent event)
public boolean html5DragOver(VHtml5DragEvent event)
public boolean html5DragDrop(VHtml5DragEvent event)
public VDropHandler getDropHandler()
VHasDropHandler
getDropHandler
in interface VHasDropHandler
public ComponentConnector getConnector()
@Deprecated protected void hookHtml5DragStart(com.google.gwt.user.client.Element el)
hookHtml5DragStart(Element)
insteadprotected void hookHtml5DragStart(com.google.gwt.dom.client.Element el)
@Deprecated protected void hookHtml5Events(com.google.gwt.user.client.Element el)
hookHtml5Events(Element)
insteadel
- protected void hookHtml5Events(com.google.gwt.dom.client.Element el)
el
- public boolean updateDropDetails(VDragEvent drag)
protected void deEmphasis(boolean doLayout)
protected void emphasis(VDragEvent drag)
public void setDragAndDropWidget(com.google.gwt.user.client.ui.Widget widget)
COMPONENT_OTHER
.widget
- public com.google.gwt.user.client.ui.Widget getDragImageWidget()
null
if no
widget is set.Copyright © 2022 Vaadin Ltd. All rights reserved.