Interface DropTarget

    • Method Detail

      • getDropHandler

        DropHandler getDropHandler()
        Returns:
        the drop hanler that will receive the dragged data or null if drops are not currently accepted
      • translateDropTargetDetails

        TargetDetails translateDropTargetDetails​(Map<String,​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)