Interface IDropDelegate


  • public interface IDropDelegate
    A handler of drop events.
    • Method Detail

      • isDropSupported

        boolean isDropSupported​(Collection<TransferObject<?>> transferObjects,
                                DropEvent event)
        Checks whether this drop delegate supports drop of the specified selection.
        Parameters:
        transferObjects - the collection of the objects to be dropped, cannot be null
        event - the drop target event, cannot be null
        Returns:
        true if drop supported, false otherwise
      • process

        void process​(Collection<TransferObject<?>> transferObjects,
                     DropEvent event)
        Processes specified drop event.
        Parameters:
        transferObjects - the collection of the objects to be dropped, cannot be null
        event - the drop target event, cannot be null
      • isDropAsSibling

        boolean isDropAsSibling​(Collection<TransferObject<?>> transferObjects,
                                DropEvent event)
        Checks whether the selection will be dropped as a sibling of a target form element or as its child. It can be used to set feedback position in DropTargetListener#dragOver(DropEvent).
        Parameters:
        transferObjects - the collection of the objects to be dropped, cannot be null
        event - the drop target event, cannot be null
        Returns:
        true if selection will be inserted as a sibling, false if as child
      • isCopyAction

        boolean isCopyAction()
        Checks the type of action that being processed.
        Returns:
        true if the copy action being processed for the selection, otherwise false