Interface SupplierHost


public interface SupplierHost
Host that enables transfers from registered suppliers.
The host provides special treatments to different kind of targets:
  • If the target is a gadget object, programmatic transfers will be possible.
  • If the target is a graphical component, it will be registered for drag operations.
Since:
4.2.405
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A supplier providing a specific type of commodity that further enables to request to take the supplied commodities out of the supplier's value (realizing a cut operation in two steps).
    static interface 
    A supplier providing a specific commodity type.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> void
    register(@NotNull TransferType<T> type, @NotNull SupplierHost.Supplier<T> supplier)
    Registers a supplier for the hosted gadget itself.
    <T> void
    register(@NotNull Object source, @NotNull TransferType<T> type, @NotNull SupplierHost.Supplier<T> supplier)
    Registers a supplier for the given component and type.
  • Method Details

    • register

      <T> void register(@NotNull @NotNull Object source, @NotNull @NotNull TransferType<T> type, @NotNull @NotNull SupplierHost.Supplier<T> supplier)
      Registers a supplier for the given component and type.
      Parameters:
      source - The source to register for.
      type - The type of transfer being registered.
      supplier - The supplier to be registered.
      Since:
      4.2.405
    • register

      <T> void register(@NotNull @NotNull TransferType<T> type, @NotNull @NotNull SupplierHost.Supplier<T> supplier)
      Registers a supplier for the hosted gadget itself.
      Parameters:
      type - The type of transfer being registered.
      supplier - The supplier to be registered.
      Since:
      5.0.100