com.vaadin.client.ui
Class VDragAndDropWrapper

java.lang.Object
  extended by SimplePanel
      extended by com.vaadin.client.ui.VCustomComponent
          extended by com.vaadin.client.ui.VDragAndDropWrapper
All Implemented Interfaces:
VHasDropHandler
Direct Known Subclasses:
VDragAndDropWrapperIE

public class VDragAndDropWrapper
extends VCustomComponent
implements VHasDropHandler

Must have features pending: drop details: locations + sizes in document hierarchy up to wrapper


Nested Class Summary
 class VDragAndDropWrapper.CustomDropHandler
           
 
Field Summary
protected  java.lang.String[] acceptedTypes
           
 ApplicationConnection client
          For internal use only.
protected static int COMPONENT
           
protected static int COMPONENT_OTHER
           
protected static java.lang.String DRAGGABLE
           
 int dragStartMode
          For internal use only.
 VAbstractDropHandler dropHandler
          For internal use only.
 java.util.List<java.lang.Integer> fileIds
          For internal use only.
 java.util.Map<java.lang.String,java.lang.String> fileIdToReceiver
          For internal use only.
 java.util.List<VHtml5File> files
          For internal use only.
 boolean hasTooltip
          For internal use only.
protected  com.vaadin.shared.ui.dd.HorizontalDropLocation horizontalDropLocation
           
protected static int HTML5
           
 ValueMap html5DataFlavors
          For internal use only.
protected static int NONE
           
protected  com.vaadin.shared.ui.dd.VerticalDropLocation verticalDropLocation
           
protected static int WRAPPER
           
 
Constructor Summary
VDragAndDropWrapper()
           
 
Method Summary
protected  void deEmphasis(boolean doLayout)
           
protected  void emphasis(VDragEvent drag)
           
 ComponentConnector getConnector()
           
 Widget getDragImageWidget()
           
protected  com.google.gwt.user.client.Element getDragStartElement()
           
 VDropHandler getDropHandler()
           
protected  void hookHtml5DragStart(com.google.gwt.user.client.Element el)
          Deprecated. As of 7.2, call or override hookHtml5DragStart(Element) instead
protected  void hookHtml5DragStart(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(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(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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DRAGGABLE

protected static final java.lang.String DRAGGABLE
See Also:
Constant Field Values

hasTooltip

public boolean hasTooltip
For internal use only. May be removed or replaced in the future.


NONE

protected static final int NONE
See Also:
Constant Field Values

COMPONENT

protected static final int COMPONENT
See Also:
Constant Field Values

WRAPPER

protected static final int WRAPPER
See Also:
Constant Field Values

HTML5

protected static final int HTML5
See Also:
Constant Field Values

COMPONENT_OTHER

protected static final int COMPONENT_OTHER
See Also:
Constant Field Values

dragStartMode

public int dragStartMode
For internal use only. May be removed or replaced in the future.


client

public ApplicationConnection client
For internal use only. May be removed or replaced in the future.


dropHandler

public VAbstractDropHandler dropHandler
For internal use only. May be removed or replaced in the future.


fileIdToReceiver

public java.util.Map<java.lang.String,java.lang.String> fileIdToReceiver
For internal use only. May be removed or replaced in the future.


html5DataFlavors

public ValueMap html5DataFlavors
For internal use only. May be removed or replaced in the future.


acceptedTypes

protected java.lang.String[] acceptedTypes

fileIds

public java.util.List<java.lang.Integer> fileIds
For internal use only. May be removed or replaced in the future.


files

public java.util.List<VHtml5File> files
For internal use only. May be removed or replaced in the future.


verticalDropLocation

protected com.vaadin.shared.ui.dd.VerticalDropLocation verticalDropLocation

horizontalDropLocation

protected com.vaadin.shared.ui.dd.HorizontalDropLocation horizontalDropLocation
Constructor Detail

VDragAndDropWrapper

public VDragAndDropWrapper()
Method Detail

initDragStartMode

public void initDragStartMode()
For internal use only. May be removed or replaced in the future.


getDragStartElement

protected com.google.gwt.user.client.Element getDragStartElement()

startNextUpload

public void startNextUpload()
For internal use only. May be removed or replaced in the future.


html5DragStart

public boolean html5DragStart(VHtml5DragEvent event)

html5DragEnter

public boolean html5DragEnter(VHtml5DragEvent event)

html5DragLeave

public boolean html5DragLeave(VHtml5DragEvent event)

html5DragOver

public boolean html5DragOver(VHtml5DragEvent event)

html5DragDrop

public boolean html5DragDrop(VHtml5DragEvent event)

getDropHandler

public VDropHandler getDropHandler()
Specified by:
getDropHandler in interface VHasDropHandler

getConnector

public ComponentConnector getConnector()

hookHtml5DragStart

@Deprecated
protected void hookHtml5DragStart(com.google.gwt.user.client.Element el)
Deprecated. As of 7.2, call or override hookHtml5DragStart(Element) instead


hookHtml5DragStart

protected void hookHtml5DragStart(Element el)
Since:
7.2

hookHtml5Events

@Deprecated
protected void hookHtml5Events(com.google.gwt.user.client.Element el)
Deprecated. As of 7.2, call or override hookHtml5Events(Element) instead

Prototype code, memory leak risk.

Parameters:
el -

hookHtml5Events

protected void hookHtml5Events(Element el)
Prototype code, memory leak risk.

Parameters:
el -
Since:
7.2

updateDropDetails

public boolean updateDropDetails(VDragEvent drag)

deEmphasis

protected void deEmphasis(boolean doLayout)

emphasis

protected void emphasis(VDragEvent drag)

setDragAndDropWidget

public void setDragAndDropWidget(Widget widget)
Set the widget that will be used as the drag image when using DragStartMode COMPONENT_OTHER .

Parameters:
widget -

getDragImageWidget

public Widget getDragImageWidget()
Returns:
the widget used as drag image. Returns null if no widget is set.


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