ikayaki.gui
Class ProgramSettingsPanel.EditSequencesTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by ikayaki.gui.ProgramSettingsPanel.EditSequencesTableModel
All Implemented Interfaces:
Serializable, TableModel
Enclosing class:
ProgramSettingsPanel

private class ProgramSettingsPanel.EditSequencesTableModel
extends AbstractTableModel


Field Summary
private  MeasurementSequence[] sequences
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ProgramSettingsPanel.EditSequencesTableModel()
           
 
Method Summary
 void deleteSequence(int rowIndex)
          Deletes the saved sequence at the speficied row index.
 int getColumnCount()
           
 int getRowCount()
           
 Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void setValueAt(Object aValue, int rowIndex, int columnIndex)
          Change the name of a saved sequence.
private  void updateSequences()
          Reads the saved sequences from the settings and fills the table with them.
 
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
 

Field Detail

sequences

private MeasurementSequence[] sequences
Constructor Detail

ProgramSettingsPanel.EditSequencesTableModel

public ProgramSettingsPanel.EditSequencesTableModel()
Method Detail

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.