Interface DropHandler<DRAGGED,​TARGET>

  • Type Parameters:
    DRAGGED - dragged objects type.
    TARGET - target object type.
    All Known Implementing Classes:
    DropCompositeHandler

    public interface DropHandler<DRAGGED,​TARGET>
    Handler responsible for dropping operations.
    • Method Detail

      • handleDrop

        java.util.List<DropOperationData<DRAGGED,​TARGET,​java.lang.Object>> handleDrop​(java.util.List<DRAGGED> dragged,
                                                                                                  TARGET target,
                                                                                                  DragAndDropContext context)
        Handles drop operation.
        Parameters:
        dragged - dragged objects.
        target - target object on which dragged objects are dropped.
        context - context of drag and drop operation.
      • findSupportedTypes

        java.util.List<java.lang.String> findSupportedTypes()
        Returns list of droppable types handled. Types are taken literally when followed by "!" or are expanded to subtypes in other cases.
        Returns:
        list of types.