Interface DragAndDropHandler<D>

    • Method Detail

      • supports

        boolean supports​(D dataObject,
                         Display<?> display)
        Gets whether this handler supports dropping the given data object onto the specified display.
      • supportsData

        boolean supportsData​(DragAndDropData data)
        Gets whether this handler supports dropping the given DragAndDropData onto a compatible display.
      • supportsObject

        boolean supportsObject​(Object object)
        Gets whether this handler supports dropping the given object onto a compatible display.
      • supportsObject

        boolean supportsObject​(Object object,
                               Display<?> display)
        Gets whether this handler supports dropping the given object onto the specified display.
      • supportsDisplay

        boolean supportsDisplay​(Display<?> display)
        Gets whether this handler supports dropping an assumed-to-be-compatible data object onto the given Display.
      • convertObject

        D convertObject​(Object object)
        Converts the given object to the type of data object supported by this handler.
        Throws:
        IllegalArgumentException - if the handler does not support the given object.
      • drop

        boolean drop​(D dataObject,
                     Display<?> display)
        Performs a drop operation with the given data object in the specified Display.
        Throws:
        IllegalArgumentException - if the handler is not compatible with the given data/display combination.
      • dropObject

        boolean dropObject​(Object object,
                           Display<?> display)
        Performs a drop operation with the given data in the specified Display.
        Throws:
        IllegalArgumentException - if the handler is not compatible with the given data/display combination.
      • supports

        default boolean supports​(D dataObject)
        Gets whether this handler supports dropping the given data object onto a compatible display.
        Specified by:
        supports in interface Typed<D>