|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.table.AbstractTableModel edu.upenn.crimson.TreeTableModel
public class TreeTableModel
TreeTableModel. This is a TableModel that is used by TreeManager to list the trees. It is maintained here so that it can be updated easily whenever the tree list is rebuilt.
Field Summary | |
---|---|
private java.lang.String[] |
columnNames
|
private java.util.ArrayList |
trees
Stores the Trees that are in the table. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
TreeTableModel()
|
Method Summary | |
---|---|
void |
addRow(Tree tree)
Append a new row to the end of the table. |
void |
addRowAt(Tree tree,
int row)
Add new row to table. |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
|
Tree |
getRow(int row)
Returns the Tree that represents the specified row in the table. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int col)
"ID", "Partitions", "Species", "maxTempDepth", "Tot Seq Length" |
void |
removeAllRows()
Removes all rows from the table. |
void |
removeRow(int row)
Removes the Tree that represents the specified row in the table. |
void |
removeRows(int[] rows)
Removes the Trees that represent the rows specified. |
void |
removeRows(int minRow,
int maxRow)
Removes the Trees that represent the specified row in the table. |
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 |
Field Detail |
---|
private java.util.ArrayList trees
private java.lang.String[] columnNames
Constructor Detail |
---|
public TreeTableModel()
Method Detail |
---|
public void addRow(Tree tree)
public void addRowAt(Tree tree, int row)
public Tree getRow(int row)
public void removeRow(int row)
public void removeRows(int[] rows)
public void removeRows(int minRow, int maxRow)
public void removeAllRows()
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public java.lang.Object getValueAt(int row, int col)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |