ikayaki.gui
Class ProgramSettingsPanel.EditSequencesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
ikayaki.gui.ProgramSettingsPanel.EditSequencesTableModel
- All Implemented Interfaces:
- Serializable, TableModel
- Enclosing class:
- ProgramSettingsPanel
private class ProgramSettingsPanel.EditSequencesTableModel
- extends AbstractTableModel
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sequences
private MeasurementSequence[] sequences
ProgramSettingsPanel.EditSequencesTableModel
public ProgramSettingsPanel.EditSequencesTableModel()
updateSequences
private void updateSequences()
- Reads the saved sequences from the settings and fills the table with them. Restores the selected
MeasurementSequence if the table contents has changed.
getRowCount
public int getRowCount()
getColumnCount
public int getColumnCount()
isCellEditable
public boolean isCellEditable(int rowIndex,
int columnIndex)
- Specified by:
isCellEditable
in interface TableModel
- Overrides:
isCellEditable
in class AbstractTableModel
getValueAt
public Object getValueAt(int rowIndex,
int columnIndex)
setValueAt
public void setValueAt(Object aValue,
int rowIndex,
int columnIndex)
- Change the name of a saved sequence.
- Specified by:
setValueAt
in interface TableModel
- Overrides:
setValueAt
in class AbstractTableModel
- Parameters:
aValue
- a new name for the sequence.rowIndex
- columnIndex
-
deleteSequence
public void deleteSequence(int rowIndex)
- Deletes the saved sequence at the speficied row index.