public class CCD_Parameters_Table_Model
extends javax.swing.table.AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
COLUMN_NAMES
Column names.
|
static java.lang.Class[] |
COLUMN_TYPES
Column types.
|
static java.lang.String |
ID
Class identification name with source code version and date.
|
Constructor and Description |
---|
CCD_Parameters_Table_Model()
Creates an empty table model.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ccd_active(int ccd) |
void |
ccd_active(int ccd,
boolean active) |
java.lang.Class |
getColumnClass(int column_index)
Gets the specific superclass for all the cell values in the column.
|
int |
getColumnCount()
Gets the number of columns in the table model.
|
java.lang.String |
getColumnName(int column_index)
Gets the name of the column at column_index.
|
int |
getRowCount()
Gets the number of rows in the table model.
|
java.lang.Object |
getValueAt(int row_index,
int column_index)
Returns the value for the cell at column_index and
row_index.
|
boolean |
isCellEditable(int row_index,
int column_index)
Determines if a given table cell is editable.
|
void |
setValueAt(java.lang.Object value,
int row_index,
int column_index)
Sets the value of the table data cell.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
public static final java.lang.String ID
public static final java.lang.String[] COLUMN_NAMES
public static final java.lang.Class[] COLUMN_TYPES
public CCD_Parameters_Table_Model()
public boolean ccd_active(int ccd)
public void ccd_active(int ccd, boolean active)
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int row_index, int column_index)
row_index
- the row whose value is to be queried.column_index
- the column whose value is to be queried.public java.lang.Class getColumnClass(int column_index)
String
s. The remaining columns are Integer
s.getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
column_index
- the index of the column.public java.lang.String getColumnName(int column_index)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column_index
- the index of the column.public boolean isCellEditable(int row_index, int column_index)
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.AbstractTableModel
row_index
- the row of the cell in question.column_index
- the column of the cell in question.public void setValueAt(java.lang.Object value, int row_index, int column_index)
setValueAt
in interface javax.swing.table.TableModel
setValueAt
in class javax.swing.table.AbstractTableModel
value
- the new value for the cell.row_index
- the row of the cell in question.column_index
- the column of the cell in question.Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona