apollo.gui.detailviewers.sequencealigner
Class SeqFeatureTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by apollo.gui.detailviewers.sequencealigner.SeqFeatureTableModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<SeqFeatureI>, java.util.Collection<SeqFeatureI>, java.util.List<SeqFeatureI>, javax.swing.table.TableModel

public class SeqFeatureTableModel
extends javax.swing.table.AbstractTableModel
implements java.util.List<SeqFeatureI>

See Also:
Serialized Form

Nested Class Summary
static class SeqFeatureTableModel.ColumnTypes
           
 
Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
SeqFeatureTableModel(int size, java.util.List<SeqFeatureTableModel.ColumnTypes> cols)
           
SeqFeatureTableModel(java.util.List<SeqFeatureTableModel.ColumnTypes> cols)
           
 
Method Summary
 void add(int index, SeqFeatureI element)
           
 boolean add(SeqFeatureI o)
           
 boolean addAll(java.util.Collection<? extends SeqFeatureI> c)
           
 boolean addAll(int index, java.util.Collection<? extends SeqFeatureI> c)
           
 void clear()
           
 boolean contains(java.lang.Object o)
           
 boolean containsAll(java.util.Collection<?> c)
           
 SeqFeatureI get(int index)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 SeqFeatureTableModel.ColumnTypes getColumnType(int column)
           
 int getRowCount()
          For now the only row will be the name
 java.lang.Object getValueAt(int row, int column)
           
 int indexOf(java.lang.Object o)
           
 boolean isEmpty()
           
 java.util.Iterator<SeqFeatureI> iterator()
           
 int lastIndexOf(java.lang.Object o)
           
 java.util.ListIterator<SeqFeatureI> listIterator()
           
 java.util.ListIterator<SeqFeatureI> listIterator(int index)
           
 SeqFeatureI remove(int index)
           
 boolean remove(java.lang.Object o)
           
 boolean removeAll(java.util.Collection<?> c)
           
 boolean retainAll(java.util.Collection<?> c)
           
 SeqFeatureI set(int index, SeqFeatureI element)
           
 int size()
           
 java.util.List<SeqFeatureI> subList(int fromIndex, int toIndex)
           
 java.lang.Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

SeqFeatureTableModel

public SeqFeatureTableModel(java.util.List<SeqFeatureTableModel.ColumnTypes> cols)

SeqFeatureTableModel

public SeqFeatureTableModel(int size,
                            java.util.List<SeqFeatureTableModel.ColumnTypes> cols)
Method Detail

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getRowCount

public int getRowCount()
For now the only row will be the name

Specified by:
getRowCount in interface javax.swing.table.TableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Specified by:
getValueAt in interface javax.swing.table.TableModel

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnType

public SeqFeatureTableModel.ColumnTypes getColumnType(int column)

add

public boolean add(SeqFeatureI o)
Specified by:
add in interface java.util.Collection<SeqFeatureI>
Specified by:
add in interface java.util.List<SeqFeatureI>

add

public void add(int index,
                SeqFeatureI element)
Specified by:
add in interface java.util.List<SeqFeatureI>

addAll

public boolean addAll(java.util.Collection<? extends SeqFeatureI> c)
Specified by:
addAll in interface java.util.Collection<SeqFeatureI>
Specified by:
addAll in interface java.util.List<SeqFeatureI>

addAll

public boolean addAll(int index,
                      java.util.Collection<? extends SeqFeatureI> c)
Specified by:
addAll in interface java.util.List<SeqFeatureI>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<SeqFeatureI>
Specified by:
clear in interface java.util.List<SeqFeatureI>

contains

public boolean contains(java.lang.Object o)
Specified by:
contains in interface java.util.Collection<SeqFeatureI>
Specified by:
contains in interface java.util.List<SeqFeatureI>

containsAll

public boolean containsAll(java.util.Collection<?> c)
Specified by:
containsAll in interface java.util.Collection<SeqFeatureI>
Specified by:
containsAll in interface java.util.List<SeqFeatureI>

get

public SeqFeatureI get(int index)
Specified by:
get in interface java.util.List<SeqFeatureI>

indexOf

public int indexOf(java.lang.Object o)
Specified by:
indexOf in interface java.util.List<SeqFeatureI>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Collection<SeqFeatureI>
Specified by:
isEmpty in interface java.util.List<SeqFeatureI>

iterator

public java.util.Iterator<SeqFeatureI> iterator()
Specified by:
iterator in interface java.lang.Iterable<SeqFeatureI>
Specified by:
iterator in interface java.util.Collection<SeqFeatureI>
Specified by:
iterator in interface java.util.List<SeqFeatureI>

lastIndexOf

public int lastIndexOf(java.lang.Object o)
Specified by:
lastIndexOf in interface java.util.List<SeqFeatureI>

listIterator

public java.util.ListIterator<SeqFeatureI> listIterator()
Specified by:
listIterator in interface java.util.List<SeqFeatureI>

listIterator

public java.util.ListIterator<SeqFeatureI> listIterator(int index)
Specified by:
listIterator in interface java.util.List<SeqFeatureI>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<SeqFeatureI>
Specified by:
remove in interface java.util.List<SeqFeatureI>

remove

public SeqFeatureI remove(int index)
Specified by:
remove in interface java.util.List<SeqFeatureI>

removeAll

public boolean removeAll(java.util.Collection<?> c)
Specified by:
removeAll in interface java.util.Collection<SeqFeatureI>
Specified by:
removeAll in interface java.util.List<SeqFeatureI>

retainAll

public boolean retainAll(java.util.Collection<?> c)
Specified by:
retainAll in interface java.util.Collection<SeqFeatureI>
Specified by:
retainAll in interface java.util.List<SeqFeatureI>

set

public SeqFeatureI set(int index,
                       SeqFeatureI element)
Specified by:
set in interface java.util.List<SeqFeatureI>

size

public int size()
Specified by:
size in interface java.util.Collection<SeqFeatureI>
Specified by:
size in interface java.util.List<SeqFeatureI>

subList

public java.util.List<SeqFeatureI> subList(int fromIndex,
                                           int toIndex)
Specified by:
subList in interface java.util.List<SeqFeatureI>

toArray

public java.lang.Object[] toArray()
Specified by:
toArray in interface java.util.Collection<SeqFeatureI>
Specified by:
toArray in interface java.util.List<SeqFeatureI>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface java.util.Collection<SeqFeatureI>
Specified by:
toArray in interface java.util.List<SeqFeatureI>