public class DragAndDropWrapper
extends com.vaadin.ui.CustomComponent
implements com.vaadin.event.dd.DropTarget, com.vaadin.event.dd.DragSource, com.vaadin.ui.LegacyComponent
Modifier and Type | Class and Description |
---|---|
static class |
DragAndDropWrapper.DragStartMode |
class |
DragAndDropWrapper.WrapperTargetDetails |
class |
DragAndDropWrapper.WrapperTransferable |
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
Constructor and Description |
---|
DragAndDropWrapper(com.vaadin.ui.Component root)
Wraps given component in a
DragAndDropWrapper . |
Modifier and Type | Method and Description |
---|---|
void |
changeVariables(Object source,
Map<String,Object> variables) |
DragAndDropWrapper.DragStartMode |
getDragStartMode() |
com.vaadin.event.dd.DropHandler |
getDropHandler() |
com.vaadin.event.Transferable |
getTransferable(Map<String,Object> rawVariables) |
void |
paintContent(com.vaadin.server.PaintTarget target) |
void |
setDragStartMode(DragAndDropWrapper.DragStartMode dragStartMode) |
void |
setDropHandler(com.vaadin.event.dd.DropHandler dropHandler) |
void |
setHTML5DataFlavor(String type,
Object value)
Sets data flavors available in the DragAndDropWrapper is used to start an
HTML5 style drags.
|
com.vaadin.event.dd.TargetDetails |
translateDropTargetDetails(Map<String,Object> clientVariables) |
getComponentCount, getCompositionRoot, iterator, setCompositionRoot
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getState, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isReadOnly, isVisible, removeListener, removeStyleName, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setReadOnly, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public DragAndDropWrapper(com.vaadin.ui.Component root)
DragAndDropWrapper
.root
- the component to be wrappedpublic void setHTML5DataFlavor(String type, Object value)
type
- the string identifier of the drag "payload". E.g. "Text" or
"text/html"value
- the valuepublic void changeVariables(Object source, Map<String,Object> variables)
changeVariables
in interface com.vaadin.server.VariableOwner
public void paintContent(com.vaadin.server.PaintTarget target) throws com.vaadin.server.PaintException
paintContent
in interface com.vaadin.ui.LegacyComponent
com.vaadin.server.PaintException
public com.vaadin.event.dd.DropHandler getDropHandler()
getDropHandler
in interface com.vaadin.event.dd.DropTarget
public void setDropHandler(com.vaadin.event.dd.DropHandler dropHandler)
public com.vaadin.event.dd.TargetDetails translateDropTargetDetails(Map<String,Object> clientVariables)
translateDropTargetDetails
in interface com.vaadin.event.dd.DropTarget
public com.vaadin.event.Transferable getTransferable(Map<String,Object> rawVariables)
getTransferable
in interface com.vaadin.event.dd.DragSource
public void setDragStartMode(DragAndDropWrapper.DragStartMode dragStartMode)
public DragAndDropWrapper.DragStartMode getDragStartMode()
Copyright © 2015 Magnolia International Ltd.. All rights reserved.