pop.gui
Class AbstractStep.StepTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--pop.gui.AbstractStep.StepTableModel
Enclosing class:
AbstractStep

protected class AbstractStep.StepTableModel
extends javax.swing.table.AbstractTableModel

Adequate table model for most of the subclasses; mostly taken from TableEditDemo.java, http://java.sun.com/docs/books/tutorial.

See Also:
Serialized Form

Field Summary
protected  java.lang.String[] columnNames
           
protected  java.lang.Object[][] data
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
protected AbstractStep.StepTableModel(java.lang.Object[][] data, java.lang.String[] headers)
           
 
Method Summary
 java.lang.Class getColumnClass(int c)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int col)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int row, int col)
           
 boolean isCellEditable(int row, int col)
           
 void setValueAt(java.lang.Object value, int row, int col)
           
protected  void update_all_values()
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected java.lang.Object[][] data

columnNames

protected java.lang.String[] columnNames
Constructor Detail

AbstractStep.StepTableModel

protected AbstractStep.StepTableModel(java.lang.Object[][] data,
                                      java.lang.String[] headers)
Method Detail

getColumnCount

public int getColumnCount()
Overrides:
getColumnCount in class javax.swing.table.AbstractTableModel

getRowCount

public int getRowCount()
Overrides:
getRowCount in class javax.swing.table.AbstractTableModel

getColumnName

public java.lang.String getColumnName(int col)
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Overrides:
getValueAt in class javax.swing.table.AbstractTableModel

getColumnClass

public java.lang.Class getColumnClass(int c)
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

update_all_values

protected void update_all_values()

setValueAt

public void setValueAt(java.lang.Object value,
                       int row,
                       int col)
Overrides:
setValueAt in class javax.swing.table.AbstractTableModel