|
||||||||||
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.ModelTableModel
public class ModelTableModel
ModelTableModel. This is a TableModel that is used by ModelManager to list the models. It is maintained here so that it can be updated easily whenever the model list is rebuilt.
Field Summary | |
---|---|
private java.lang.String[] |
columnNames
|
private java.util.ArrayList |
models
Stores the Models that are in the table. |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ModelTableModel()
|
Method Summary | |
---|---|
void |
addRow(Model model)
Append a new row to the end of the table. |
void |
addRowAt(Model model,
int row)
Add new row to table. |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int col)
|
Model |
getRow(int row)
Returns the Model that represents the specified row in the table. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int row,
int col)
"ID", "Notes" |
void |
removeAllRows()
Removes all rows from the table. |
void |
removeRow(int row)
Removes the Model that represents the specified row in the table. |
void |
removeRows(int[] rows)
Removes the Models that represent the rows specified. |
void |
removeRows(int minRow,
int maxRow)
Removes the Models 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 models
private java.lang.String[] columnNames
Constructor Detail |
---|
public ModelTableModel()
Method Detail |
---|
public void addRow(Model model)
public void addRowAt(Model model, int row)
public Model 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 |