|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--synapsi.gui.ClientTableModel
Table model used in Client-table of NeuronServers main window
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Constructor Summary | |
ClientTableModel()
Calls ancestors constructor |
Method Summary | |
void |
deleteRow(int row)
Removes specified row from table |
void |
emptyRows()
Delete all rows from the tableModel |
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 |
setClientActive(java.lang.String clientIP,
boolean active)
Searches table model for specified client and sets it status to either active or inactive |
void |
setClientVector(java.util.Vector clientVector)
Effectually reinitializes models content by reading DataClients from Vector and converting them to visual data |
void |
setClientVersion(java.lang.String clientIP,
java.lang.String version)
Searches table model for specified client and sets it version to given String |
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 |
Constructor Detail |
public ClientTableModel()
Method Detail |
public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int col)
col
- index of requested columnpublic java.lang.Object getValueAt(int row, int column)
row
- rownumber of requested itemcolumn
- column index of requested itempublic void setValueAt(java.lang.Object value, int row, int col)
value
- value of new cell in Objectrow
- rownumber of modified cellcol
- column index of modified columnpublic void deleteRow(int row)
row
- number of removed rowpublic void insertRow(java.lang.Object[] row)
row
- New row added to tablepublic void emptyRows()
public void setClientVector(java.util.Vector clientVector)
clientVector
- Vector containing clients to be shownpublic void setClientActive(java.lang.String clientIP, boolean active)
clientIP
- ip of clientactive
- is client active or inactivepublic void setClientVersion(java.lang.String clientIP, java.lang.String version)
clientIP
- ip of clientversion
- new version of the client
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |