Version: 1.1.1

ca.ucalgary.seahawk.gui
Interface MobyObjectReceiver

All Known Implementing Classes:
MobyDataObjectWidget

public interface MobyObjectReceiver

This interface should be implemented by any application component that desires to receive incoming data from MobyObjectTransferHandler. The MOTH will turn pasted data into MOBY Objects, so for example a JPanel interface element implementing this interface could have data manually dropped on it to populate its Moby data (direct manipulation).


Method Summary
 void consumeMobyObject(String incomingName, MobyDataInstance incomingData)
          Callback routine used by MobyObjectTransferHandler once it has resolved the data to paste.
 Map<String,MobyPrimaryData> getAcceptableData()
          List of data that the object is willing to consume in consumeMobyObject() at the given moment.
 

Method Detail

consumeMobyObject

void consumeMobyObject(String incomingName,
                       MobyDataInstance incomingData)
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().


getAcceptableData

Map<String,MobyPrimaryData> getAcceptableData()
List of data that the object is willing to consume in consumeMobyObject() at the given moment. This could , for example a MobyDataObjectSet of MobyDataComposites of data type DNASequences, or a single MobyDataComposite of data type FASTA_AA.


Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010