com.vaadin.terminal.gwt.client.ui.draganddropwrapper
Class VDragAndDropWrapper

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.SimplePanel
                  extended by com.vaadin.terminal.gwt.client.ui.customcomponent.VCustomComponent
                      extended by com.vaadin.terminal.gwt.client.ui.draganddropwrapper.VDragAndDropWrapper
All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.AcceptsOneWidget, com.google.gwt.user.client.ui.HasOneWidget, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, VHasDropHandler, Iterable<com.google.gwt.user.client.ui.Widget>
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
           
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasWidgets
com.google.gwt.user.client.ui.HasWidgets.ForIsWidget
 
Field Summary
protected  String[] acceptedTypes
           
protected static int COMPONENT
           
static String DRAG_START_MODE
           
protected static String DRAGGABLE
           
protected  int dragStartMode
           
protected  HorizontalDropLocation horizontalDropLocation
           
protected static int HTML5
           
static String HTML5_DATA_FLAVORS
           
protected static int NONE
           
protected  VerticalDropLocation verticalDropLocation
           
protected static int WRAPPER
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
VDragAndDropWrapper()
           
 
Method Summary
protected  void deEmphasis(boolean doLayout)
           
protected  void emphasis(VDragEvent drag)
           
protected  com.google.gwt.user.client.Element getDragStartElement()
           
 VDropHandler getDropHandler()
           
protected  void hookHtml5DragStart(com.google.gwt.user.client.Element el)
           
protected  void hookHtml5Events(com.google.gwt.user.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)
           
protected  void initDragStartMode()
           
 boolean updateDropDetails(VDragEvent drag)
           
 
Methods inherited from class com.google.gwt.user.client.ui.SimplePanel
add, getContainerElement, getWidget, iterator, remove, setWidget, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, orphan, remove
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
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, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DRAG_START_MODE

public static final String DRAG_START_MODE
See Also:
Constant Field Values

HTML5_DATA_FLAVORS

public static final String HTML5_DATA_FLAVORS
See Also:
Constant Field Values

DRAGGABLE

protected static final String DRAGGABLE
See Also:
Constant Field Values

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

dragStartMode

protected int dragStartMode

acceptedTypes

protected String[] acceptedTypes

verticalDropLocation

protected VerticalDropLocation verticalDropLocation

horizontalDropLocation

protected HorizontalDropLocation horizontalDropLocation
Constructor Detail

VDragAndDropWrapper

public VDragAndDropWrapper()
Method Detail

initDragStartMode

protected void initDragStartMode()

getDragStartElement

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

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

hookHtml5DragStart

protected void hookHtml5DragStart(com.google.gwt.user.client.Element el)

hookHtml5Events

protected void hookHtml5Events(com.google.gwt.user.client.Element el)
Prototype code, memory leak risk.

Parameters:
el -

updateDropDetails

public boolean updateDropDetails(VDragEvent drag)

deEmphasis

protected void deEmphasis(boolean doLayout)

emphasis

protected void emphasis(VDragEvent drag)


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