Interface ImportStrategy<C extends Component>

Type Parameters:
C - The type of component supported by this export strategy.

public interface ImportStrategy<C extends Component>
A strategy for importing data into a component.
Author:
Garret Wilson
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canImportTransfer(C component, Transferable<?> transferable)
    Determines whether this strategy can import the given transferable object.
    boolean
    importTransfer(C component, Transferable<?> transferable)
    Imports the given data into the given component.
  • Method Details

    • canImportTransfer

      boolean canImportTransfer(C component, Transferable<?> transferable)
      Determines whether this strategy can import the given transferable object.
      Parameters:
      component - The component into which the object will be transferred.
      transferable - The object to be transferred.
      Returns:
      true if the given object can be imported.
    • importTransfer

      boolean importTransfer(C component, Transferable<?> transferable)
      Imports the given data into the given component.
      Parameters:
      component - The component into which the object will be transferred.
      transferable - The object to be transferred.
      Returns:
      true if the given object was imported.