public class HiTList_Table_Model
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ID
The class identification
|
static java.lang.String |
NEARBY_OBSERVATIONS_COLUMN_NAME |
Constructor and Description |
---|
HiTList_Table_Model() |
HiTList_Table_Model(java.util.Vector Data,
java.util.Vector Column_Names)
Construct a new table model given a Vector of Vectors containing tabular
data and a second Vector of Strings containing the column names.
|
Modifier and Type | Method and Description |
---|---|
void |
Data(java.util.Vector Data,
java.util.Vector Column_Names)
Updates the model with new data.
|
int |
getColumnCount()
Returns the number of columns in the current table model.
|
java.lang.String |
getColumnName(int column_index) |
int |
getRowCount()
Returns the number of rows in the current model.
|
java.lang.Object |
getValueAt(int row_index,
int column_index)
Returns the value of the cell at the specified row and column index
|
boolean |
isCellEditable(int row_index,
int column_index)
Indicates if the specified cell is editable.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
public static final java.lang.String ID
public static final java.lang.String NEARBY_OBSERVATIONS_COLUMN_NAME
public HiTList_Table_Model(java.util.Vector Data, java.util.Vector Column_Names)
Data
- - the tabular data to be displayedColumn_Names
- - the column namespublic HiTList_Table_Model()
public void Data(java.util.Vector Data, java.util.Vector Column_Names)
Data
- Column_Names
- public int getColumnCount()
public int getRowCount()
public java.lang.Object getValueAt(int row_index, int column_index)
public java.lang.String getColumnName(int column_index)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row_index, int column_index)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona