public class UndocAlarmTableModel
extends javax.swing.table.AbstractTableModel
| Modifier and Type | Class and Description |
|---|---|
class |
UndocAlarmTableModel.AlarmData
No point to store a whole
Alarm data as in
this case we need only a few items. |
static class |
UndocAlarmTableModel.ColumnTitles
The titles of the columns
|
| Constructor and Description |
|---|
UndocAlarmTableModel(CernAlSysTabbedPane tabbedPane)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
Clear all the alarms from the table
|
void |
clearInactiveAlarms()
Remove all the inactive alarms from the table
|
void |
fireTableDataChanged()
Override to hide/show the tab depending on the number
of alarms in table
|
int |
getColumnCount() |
java.lang.String |
getColumnName(int col) |
int |
getNumOfActiveAlarms()
Getter
|
int |
getRowCount() |
UndocAlarmTableModel.AlarmData |
getRowEntry(int row)
Return the item at the given row
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex) |
void |
onAlarm(Alarm alarm)
Add a undocumented alarm in the model.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtpublic UndocAlarmTableModel(CernAlSysTabbedPane tabbedPane)
tabbedPane - The tabbed pane to hide/show the undocumented alarm tabpublic int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic void onAlarm(Alarm alarm)
alarm - The alarm to add to the table.AlarmSelectionListenerpublic UndocAlarmTableModel.AlarmData getRowEntry(int row)
row - The row of the item to getpublic void clearAll()
public void clearInactiveAlarms()
public int getNumOfActiveAlarms()
public void fireTableDataChanged()
fireTableDataChanged in class javax.swing.table.AbstractTableModel