com.vaadin.terminal.gwt.client.ui.


Class VDragAndDropWrapper

java.lang.Object
  com.google.gwt.user.client.ui.UIObject
      com.google.gwt.user.client.ui.Widget
          com.google.gwt.user.client.ui.Panel
              com.google.gwt.user.client.ui.SimplePanel
                  com.vaadin.terminal.gwt.client.ui.VCustomComponent
                      com.vaadin.terminal.gwt.client.ui.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.HasWidgets, com.google.gwt.user.client.ui.HasWidgets.ForIsWidget, com.google.gwt.user.client.ui.IsWidget, Container, Paintable, 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  boolean enabled
           
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 handleVaadinRelatedSizeChange(RenderInformation.Size originalSize)
           
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()
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 boolean updateDropDetails(VDragEvent drag)
           
 void updateFromUIDL(UIDL uidl, ApplicationConnection client)
           
 
Methods inherited from class com.vaadin.terminal.gwt.client.ui.VCustomComponent
getAllocatedSpace, hasChildComponent, isDynamicHeight, isDynamicWidth, replaceChildComponent, requestLayout, setHeight, setWidth, updateCaption
 
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, 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, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, 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

enabled

protected boolean enabled

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

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)

Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Widget

updateFromUIDL

public void updateFromUIDL(UIDL uidl,
                           ApplicationConnection client)

Specified by:
updateFromUIDL in interface Paintable
Overrides:
updateFromUIDL in class VCustomComponent

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)

handleVaadinRelatedSizeChange

protected void handleVaadinRelatedSizeChange(RenderInformation.Size originalSize)