net.clackrouter.ethereal
Class EtherealTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
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
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
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 |
columnNames
public static final java.lang.String[] columnNames
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