com.guiseframework.component.transfer
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
 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 Detail

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.


Copyright © 2005-2010 GlobalMentor, Inc. All Rights Reserved.