DragSourceExtension
and
DropTargetExtension
.@Deprecated 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
Deprecated.
|
class |
DragAndDropWrapper.WrapperTargetDetails
Deprecated.
|
class |
DragAndDropWrapper.WrapperTransferable
Deprecated.
Since 8.1, will be replaced by FileDropTargetExtension and
FileDropEvent,
https://github.com/vaadin/framework/issues/8891
|
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()
Deprecated.
|
DragAndDropWrapper(com.vaadin.ui.Component root)
Deprecated.
Wraps given component in a
DragAndDropWrapper . |
Modifier and Type | Method and Description |
---|---|
void |
changeVariables(Object source,
Map<String,Object> variables)
Deprecated.
|
com.vaadin.ui.Component |
getDragImageComponent()
Deprecated.
Gets the component that will be used as the drag image.
|
DragAndDropWrapper.DragStartMode |
getDragStartMode()
Deprecated.
|
com.vaadin.event.dd.DropHandler |
getDropHandler()
Deprecated.
|
protected com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperState |
getState()
Deprecated.
|
protected com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperState |
getState(boolean markAsDirty)
Deprecated.
|
com.vaadin.event.Transferable |
getTransferable(Map<String,Object> rawVariables)
Deprecated.
|
void |
paintContent(com.vaadin.server.PaintTarget target)
Deprecated.
|
void |
readDesign(org.jsoup.nodes.Element design,
com.vaadin.ui.declarative.DesignContext designContext)
Deprecated.
|
void |
setDragImageComponent(com.vaadin.ui.Component dragImageComponent)
Deprecated.
Sets the component that will be used as the drag image.
|
void |
setDragStartMode(DragAndDropWrapper.DragStartMode dragStartMode)
Deprecated.
|
void |
setDropHandler(com.vaadin.event.dd.DropHandler dropHandler)
Deprecated.
|
void |
setHTML5DataFlavor(String type,
Object value)
Deprecated.
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)
Deprecated.
|
void |
writeDesign(org.jsoup.nodes.Element design,
com.vaadin.ui.declarative.DesignContext designContext)
Deprecated.
|
getComponentCount, getCompositionRoot, iterator, setCompositionRoot
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
getHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefined
forEach, spliterator
@Deprecated public DragAndDropWrapper()
DragAndDropWrapper(Component)
instead.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()
public void setDragImageComponent(com.vaadin.ui.Component dragImageComponent)
DragAndDropWrapper.DragStartMode.COMPONENT_OTHER
dragImageComponent
- public com.vaadin.ui.Component getDragImageComponent()
DragAndDropWrapper.DragStartMode.COMPONENT_OTHER
null
if no component is set.public void readDesign(org.jsoup.nodes.Element design, com.vaadin.ui.declarative.DesignContext designContext)
readDesign
in interface com.vaadin.ui.Component
readDesign
in class com.vaadin.ui.AbstractComponent
public void writeDesign(org.jsoup.nodes.Element design, com.vaadin.ui.declarative.DesignContext designContext)
writeDesign
in interface com.vaadin.ui.Component
writeDesign
in class com.vaadin.ui.AbstractComponent
protected com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperState getState()
getState
in class com.vaadin.ui.CustomComponent
protected com.vaadin.shared.ui.draganddropwrapper.DragAndDropWrapperState getState(boolean markAsDirty)
getState
in class com.vaadin.ui.CustomComponent
Copyright © 2018 Magnolia International Ltd.. All rights reserved.