public abstract class StandardPirolTableModel
extends javax.swing.table.AbstractTableModel
| Modifier and Type | Field and Description | 
|---|---|
protected java.lang.String[] | 
colNames
array that holds information on the names for the table columns 
 | 
protected java.util.Vector | 
rows
each element of this vector represents a single row of the table. 
 | 
| Constructor and Description | 
|---|
StandardPirolTableModel(java.lang.String[] colNames)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addRow(java.lang.Object[] newRow)
simple method to add a row to the table. 
 | 
void | 
clearTable()
deletes all data from the table (also imforms the GUI) 
 | 
int | 
findColumn(java.lang.String columnName)  | 
java.lang.String[] | 
getColNames()  | 
abstract java.lang.Class | 
getColumnClass(int columnIndex)  | 
int | 
getColumnCount()  | 
java.lang.String | 
getColumnName(int column)  | 
int | 
getRowCount()  | 
java.lang.Object | 
getValueAt(int rowIndex,
          int columnIndex)  | 
abstract boolean | 
isCellEditable(int rowIndex,
              int columnIndex)  | 
protected void | 
setColNames(java.lang.String[] colNames)
Setting new column names will flush the table, if the new array has not the same length as the old one! 
 | 
void | 
setValueAt(java.lang.Object aValue,
          int rowIndex,
          int columnIndex)  | 
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprotected java.util.Vector rows
protected java.lang.String[] colNames
public StandardPirolTableModel(java.lang.String[] colNames)
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic void clearTable()
public int findColumn(java.lang.String columnName)
findColumn in class javax.swing.table.AbstractTableModelcolumnName - name of column to get the index forpublic void setValueAt(java.lang.Object aValue,
              int rowIndex,
              int columnIndex)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelpublic java.lang.Object getValueAt(int rowIndex,
                          int columnIndex)
public abstract boolean isCellEditable(int rowIndex,
                     int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic abstract java.lang.Class getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelpublic void addRow(java.lang.Object[] newRow)
newRow - public java.lang.String[] getColNames()
protected void setColNames(java.lang.String[] colNames)
colNames - array containing new column names