net.clackrouter.ethereal
Class EtherealTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by net.clackrouter.ethereal.EtherealTableModel
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.event.ListSelectionListener, javax.swing.event.TreeSelectionListener, javax.swing.table.TableModel

public class EtherealTableModel
extends javax.swing.table.AbstractTableModel
implements javax.swing.event.ListSelectionListener, javax.swing.event.TreeSelectionListener

See Also:
Serialized Form

Field Summary
static java.lang.String[] columnNames
           
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Method Summary
 void addPacket(VNSPacket packet, long cur_time)
           
 void addPacket(VNSPacket packet, java.lang.String iface_name, long cur_time)
          This will take in any generic VNSPacket and cast it to the proper packet and call makeStringArray on it
 java.lang.Class<?> getColumnClass(int column)
           
 int getColumnCount()
           
 java.lang.String getColumnName(int i)
           
 int getRowCount()
           
 java.lang.Object getValueAt(int rowIndex, int columnIndex)
           
 void setSorter(TableSorter s)
           
 void valueChanged(javax.swing.event.ListSelectionEvent e)
           
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
           
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

columnNames

public static final java.lang.String[] columnNames
Method Detail

getColumnName

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

setSorter

public void setSorter(TableSorter s)

addPacket

public void addPacket(VNSPacket packet,
                      long cur_time)

addPacket

public void addPacket(VNSPacket packet,
                      java.lang.String iface_name,
                      long cur_time)
This will take in any generic VNSPacket and cast it to the proper packet and call makeStringArray on it


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

getColumnClass

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

getValueAt

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

valueChanged

public void valueChanged(javax.swing.event.ListSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.ListSelectionListener

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener