Interface DropTarget

  • All Superinterfaces:
    ClientConnector, Component, com.vaadin.shared.Connector, java.io.Serializable, Sizeable
    All Known Implementing Classes:
    DragAndDropWrapper

    @Deprecated
    public interface DropTarget
    extends Component
    Deprecated.
    Replaced in 8.1 by DropTargetExtension.
    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
    • Method Detail

      • getDropHandler

        DropHandler getDropHandler()
        Deprecated.
        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)
        Deprecated.
        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)