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 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 |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
| 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 |
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
VDragAndDropWrapper
public VDragAndDropWrapper()
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)
Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.