public class AlarmsSentTableModel
extends javax.swing.table.AbstractTableModel
implements java.awt.event.ActionListener
The table is update once every 2 seconds by the swing timer thread.
| Constructor and Description |
|---|
AlarmsSentTableModel()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Refresh the content of the table i.e.
|
void |
alarmSent(SenderPanelUtils.Triplet triplet,
boolean active)
Put the received triplets in the queue waiting to be flushed by the next timer event
|
java.util.Collection<SenderPanelUtils.Triplet> |
getAlarms() |
int |
getColumnCount() |
int |
getRowCount() |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
start()
Start the thread
|
void |
stop()
Stop the thread
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModelpublic void alarmSent(SenderPanelUtils.Triplet triplet, boolean active)
triplet - The triplet of the alarmactive - The state of the alarmpublic java.util.Collection<SenderPanelUtils.Triplet> getAlarms()
public void start()
public void stop()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListener