BioLegato 0.7.3 GDE plugin

org.biolegato.gdesupport.canvas.data
Interface DatasetListener


public interface DatasetListener

The listener class for sequence document objects.

This interface is used to receive document changes within a Dataset file. All Dataset listeners will receive notification when sequences are added to, changed within or removed from the Dataset. Notification for sequence modification will be sent if the sequence is inside the Dataset structure regardless of whether the modification originated from the containing Dataset class.

Author:
Graham Alvare, Brian Fristensky

Method Summary
 void sequenceAdded(Dataset source, int index, Cell sequence)
          This method is called when a sequence is added to a Dataset.
 void sequenceChanged(Dataset source, int index, Cell sequence, java.lang.String key)
          This method is called when a field in a sequence is modified.
 void sequenceRemoved(Dataset source, int index, Cell sequence)
          This method is called when a sequence is removed from the Dataset class.
 

Method Detail

sequenceAdded

void sequenceAdded(Dataset source,
                   int index,
                   Cell sequence)
This method is called when a sequence is added to a Dataset.

Parameters:
source - the source of the sequence insertion event.
index - the location (line number) where the sequence was added within the SeDatasettructure.
sequence - the sequence object added to the SeqDatasetructure.

sequenceChanged

void sequenceChanged(Dataset source,
                     int index,
                     Cell sequence,
                     java.lang.String key)
This method is called when a field in a sequence is modified. The field may either be modified by the Dataset class or by an external class so long as the sequence is contained within the Dataset class.

Parameters:
source - the source of the sequence alteration message.
index - the location (line number) of the sequence which was modified.
sequence - the modified sequence object.
key - the field key of the sequence object which was modified.

sequenceRemoved

void sequenceRemoved(Dataset source,
                     int index,
                     Cell sequence)
This method is called when a sequence is removed from the Dataset class.

Parameters:
source - the source of the sequence removal message.
index - the location (line number) where the sequence was removed from.
sequence - the sequence removed from the SeqDataset

BioLegato 0.7.3 GDE plugin

Copyright © 2008-2010 University of Manitoba.