client.gui
Class ClientsTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by client.gui.ClientsTableModel
All Implemented Interfaces:
OutgoingConnectionListener, java.io.Serializable, javax.swing.table.TableModel

public class ClientsTableModel
extends javax.swing.table.AbstractTableModel
implements OutgoingConnectionListener

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ClientsTableModel()
          Creates a new instance of ClientsTableModel
 
Method Summary
 void clientStateChanged(NormalClient nc)
           
 void connectedToClient(NormalClient nc)
           
 void disconnectedFrom(NormalClient nc)
           
 java.lang.Class<?> getColumnClass(int columnIndex)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int column)
           
 NormalClient getNormalClient(int index)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientsTableModel

public ClientsTableModel()
Creates a new instance of ClientsTableModel

Method Detail

getValueAt

public java.lang.Object getValueAt(int rowIndex,
                                   int columnIndex)
Specified by:
getValueAt in interface javax.swing.table.TableModel

getRowCount

public int getRowCount()
Specified by:
getRowCount in interface javax.swing.table.TableModel

getColumnCount

public int getColumnCount()
Specified by:
getColumnCount in interface javax.swing.table.TableModel

getColumnName

public java.lang.String getColumnName(int column)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getColumnClass

public java.lang.Class<?> getColumnClass(int columnIndex)
Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class javax.swing.table.AbstractTableModel

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.AbstractTableModel

getNormalClient

public NormalClient getNormalClient(int index)

clientStateChanged

public void clientStateChanged(NormalClient nc)
Specified by:
clientStateChanged in interface OutgoingConnectionListener

connectedToClient

public void connectedToClient(NormalClient nc)
Specified by:
connectedToClient in interface OutgoingConnectionListener

disconnectedFrom

public void disconnectedFrom(NormalClient nc)
Specified by:
disconnectedFrom in interface OutgoingConnectionListener