com.vaadin.event.dd
Interface DropTarget
- All Superinterfaces:
- ClientConnector, Component, com.vaadin.shared.Connector, java.io.Serializable, Sizeable
- All Known Implementing Classes:
- Calendar, DragAndDropWrapper, Table, Tree, TreeTable
public interface DropTarget
- extends Component
DropTarget is an interface for components supporting drop operations. A
component that wants to receive drop events should implement this interface
and provide a DropHandler
which will handle the actual drop event.
- Since:
- 6.3
Methods inherited from interface com.vaadin.ui.Component |
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 |
Methods inherited from interface com.vaadin.server.ClientConnector |
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler |
Methods inherited from interface com.vaadin.shared.Connector |
getConnectorId |
getDropHandler
DropHandler getDropHandler()
- Returns:
- the drop hanler that will receive the dragged data or null if
drops are not currently accepted
translateDropTargetDetails
TargetDetails translateDropTargetDetails(java.util.Map<java.lang.String,java.lang.Object> clientVariables)
- Called before the
DragAndDropEvent
is passed to
DropHandler
. Implementation may for example translate the drop
target details provided by the client side (drop target) to meaningful
server side values. If null is returned the terminal implementation will
automatically create a TargetDetails
with raw client side data.
- Parameters:
clientVariables
- data passed from the DropTargets client side counterpart.
- Returns:
- A DropTargetDetails object with the translated data or null to
use a default implementation.
- See Also:
DragSource.getTransferable(Map)
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.