public class SsrInputTableModel
extends javax.swing.table.AbstractTableModel
enumeration
of its columns.Modifier and Type | Class and Description |
---|---|
static class |
SsrInputTableModel.Column
An enumeration of the table model's columns.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Constructor and Description |
---|
SsrInputTableModel()
Creates a new SSR input table model with an empty list of SSR inputs.
|
SsrInputTableModel(java.util.List<SsrInput> records)
Creates a new SSR input table model from a list of SSR inputs.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class |
getColumnClass(int col)
Gets the class of the indicated column.
|
int |
getColumnCount()
Gets the total number of columns in this table model.
|
java.lang.String |
getColumnName(int col)
Gets the name of the indicated column.
|
SsrInput |
getRecord(int row)
Gets the data record for the indicated model row.
|
java.util.List<SsrInput> |
getRecords()
Gets a copy of this table model's SSR input records.
|
int |
getRowCount()
Gets the total number of rows in this table model.
|
java.lang.Object |
getValueAt(int row,
int col)
Gets the value for the cell at the indicated row and column.
|
void |
setRecords(java.util.List<SsrInput> records)
Replaces this table model's current list of records with a new list.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public static final java.lang.String ID
public SsrInputTableModel(java.util.List<SsrInput> records)
fireTableDataChanged()
method is invoked.
The list of records may be null, in which case the model is empty.
records
- the list of SSR input records for the new table model; may
be null.public SsrInputTableModel()
fireTableDataChanged()
method is invoked.public void setRecords(java.util.List<SsrInput> records)
This method invokes the model's fireTableDataChanged()
method.
records
- the new list of SSR inputs; may be null.public java.util.List<SsrInput> getRecords()
public int getRowCount()
public int getColumnCount()
SsrInputTableModel.Column
enumeration.public java.lang.Object getValueAt(int row, int col)
getColumnClass(int)
method.row
- the table model row index.col
- the table model column index.public java.lang.Class getColumnClass(int col)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
col
- the table model column index.public java.lang.String getColumnName(int col)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
col
- the table model column index.public SsrInput getRecord(int row)
row
- the model row.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona