package ca.ucalgary.seahawk.gui;

/**
 * This interface should be implemented by any application component that
 * can produce data going to a MobyObjectTransferHandler for export.  The MOTH
 * will turn copied data into some text form, so for example a GUI widget 
 * (representing a piece of MOBY data)
 * implementing this interface can be manually dragged on to 
 * a text box for pasting as plain text (direct manipulation).
 */
public interface MobyContentProducer{
    /**
     * Callback routine used by MobyObjectTransferHandler once it has resolved the data to paste.
     * The incoming name is one of the key values provided in the return value from getAcceptableData().
     */
    public org.biomoby.shared.data.MobyContentInstance exportMobyContent();
}
