Interface BrowserNodeHandlerBuilder.DropHandler<N>

Type Parameters:
N - type of nodes.
Enclosing interface:
BrowserNodeHandlerBuilder<N>

public static interface BrowserNodeHandlerBuilder.DropHandler<N>
A drop handler receiving information on drop events.
Since:
4.2.426
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onDrop(@NotNull CommodityContainer commodities, N node)
    Method will be called on dropping related TransferType's over specified node.
  • Method Details

    • onDrop

      void onDrop(@NotNull @NotNull CommodityContainer commodities, N node) throws TransferException
      Method will be called on dropping related TransferType's over specified node. The transferable data can be received from specified CommodityContainer.
      Parameters:
      commodities - A map containing transfer type-mapped commodities.
      node - drop event target
      Throws:
      TransferException - If the transfer failed for any reason.
      Since:
      4.2.426