|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biolegato.gdesupport.canvas.list.SequenceListModel
public class SequenceListModel
A list model that is based on the sequence names in a sequence document.
| Constructor Summary | |
|---|---|
SequenceListModel(GDEModel data)
Creates a new instance of SequenceListModel. |
|
| Method Summary | |
|---|---|
void |
addListDataListener(javax.swing.event.ListDataListener l)
Adds a data listener to the list model |
java.lang.Object |
getElementAt(int index)
Returns the names of sequences based on their line number. |
int |
getSize()
Returns the number of sequences in the sequence document. |
void |
removeListDataListener(javax.swing.event.ListDataListener l)
Removes a data listener from the list model |
void |
sequenceAdded(GDEModel source,
int index,
Cell sequence)
Passes any sequence additions to the data listeners. |
void |
sequenceChanged(GDEModel source,
int index,
Cell sequence,
java.lang.String key)
Passes any sequence modifications to the data listeners. |
void |
sequenceRemoved(GDEModel source,
int index,
Cell sequence)
Passes any sequence deletions to the data listeners. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceListModel(GDEModel data)
data - the sequence document to obtain the list data from.| Method Detail |
|---|
public int getSize()
getSize in interface javax.swing.ListModelpublic java.lang.Object getElementAt(int index)
getElementAt in interface javax.swing.ListModelindex - the line number to obtain the name of.
public void addListDataListener(javax.swing.event.ListDataListener l)
addListDataListener in interface javax.swing.ListModell - the data listener to add.public void removeListDataListener(javax.swing.event.ListDataListener l)
removeListDataListener in interface javax.swing.ListModell - the data listener to remove.
public void sequenceChanged(GDEModel source,
int index,
Cell sequence,
java.lang.String key)
sequenceChanged in interface GDEModelListenersource - the source of the modification.index - the line number the modification occurred.sequence - the sequence that the modification occurred.key - the information within the sequence that has been changed.
public void sequenceAdded(GDEModel source,
int index,
Cell sequence)
sequenceAdded in interface GDEModelListenersource - the source of the additon.index - the line number the additon occurred.sequence - the sequence added.
public void sequenceRemoved(GDEModel source,
int index,
Cell sequence)
sequenceRemoved in interface GDEModelListenersource - the source of the deletion.index - the line number the deletion occurred.sequence - the sequence deleted.
|
BioLegato 0.7.3 GDE plugin | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||