synapsi.gui
Class PackageTableModel
java.lang.Object
|
+--javax.swing.table.AbstractTableModel
|
+--synapsi.gui.PackageTableModel
- public class PackageTableModel
- extends javax.swing.table.AbstractTableModel
Table model used in Client-table of NeuronServers main window
- See Also:
- Serialized Form
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary |
PackageTableModel(java.util.Vector newData)
Calls ancestors constructor |
Method Summary |
void |
deleteRow(int row)
Removes specified row from table |
void |
emptyRows()
|
int |
getColumnCount()
Tells, how many columns there are in the table |
java.lang.String |
getColumnName(int col)
Tells the name of requested column in table |
int |
getRowCount()
Tells, how many rows there are in the table |
java.lang.Object |
getValueAt(int row,
int column)
Returns the value of requested column in Object-format |
void |
insertRow(java.lang.Object[] row)
Add new row to table |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the value in specified cell of table |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
getColumnClass,
isCellEditable,
removeTableModelListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
PackageTableModel
public PackageTableModel(java.util.Vector newData)
- Calls ancestors constructor
getRowCount
public int getRowCount()
- Tells, how many rows there are in the table
- Overrides:
- getRowCount in class javax.swing.table.AbstractTableModel
- Returns:
- number of rows in table
getColumnCount
public int getColumnCount()
- Tells, how many columns there are in the table
- Overrides:
- getColumnCount in class javax.swing.table.AbstractTableModel
- Returns:
- number of columns in table
getColumnName
public java.lang.String getColumnName(int col)
- Tells the name of requested column in table
- Overrides:
- getColumnName in class javax.swing.table.AbstractTableModel
- Parameters:
col
- index of requested column- Returns:
- name of requested column
getValueAt
public java.lang.Object getValueAt(int row,
int column)
- Returns the value of requested column in Object-format
- Overrides:
- getValueAt in class javax.swing.table.AbstractTableModel
- Parameters:
row
- rownumber of requested itemcolumn
- column index of requested item- Returns:
- requested value as Object
setValueAt
public void setValueAt(java.lang.Object value,
int row,
int col)
- Sets the value in specified cell of table
- Overrides:
- setValueAt in class javax.swing.table.AbstractTableModel
- Parameters:
value
- value of new cell in Objectrow
- rownumber of modified cellcol
- column index of modified column
deleteRow
public void deleteRow(int row)
- Removes specified row from table
- Parameters:
row
- number of removed row
insertRow
public void insertRow(java.lang.Object[] row)
- Add new row to table
- Parameters:
row
- New row added to table
emptyRows
public void emptyRows()