
Public Member Functions | |
| AlarmTable (AlarmTableModel model) | |
| Component | prepareRenderer (TableCellRenderer renderer, int rowIndex, int vColIndex) |
| void | actionPerformed (ActionEvent e) |
| void | saveAlarm (Alarm alarm) |
| void | close () |
| void | showColumns (AlarmTableColumn[] cols) |
| void | addRemoveColumn (AlarmTableColumn col, boolean add) |
Static Public Attributes | |
| final JLabel | reductionRenderer |
| final JLabel | hasReducedNodesRenderer |
Private Member Functions | |
| void | initialize () |
| void | buildPopupMenu () |
| void | colorizeCell (Component c, Alarm alarm) |
| void | showReductionChain (Alarm alarm) |
Private Attributes | |
| AlarmTableModel | model |
| TableRowSorter< TableModel > | sorter |
| TableColumn[] | columns |
| AlarmTableMouseAdapter | mouseAdapter = new AlarmTableMouseAdapter() |
| ClipboardHelper | clipboard = new ClipboardHelper() |
| JPopupMenu | popupM = new JPopupMenu("Alarm") |
| JMenuItem | ackMI = new JMenuItem("Acknowledge") |
| JMenuItem | saveMI = new JMenuItem("Save...") |
| JMenuItem | clipMI = new JMenuItem("To clipboard") |
| JMenuItem | showReducedMI = new JMenuItem("Show reduction chain") |
| JLabel | emptyLbl = new JLabel() |
| ReducedChainDlg | reducedDlg = null |
|
|
Constructor
|
|
|
|
|
||||||||||||
|
Add/remove one column from the table
|
|
|
Build the popup menu |
|
|
Free all the resource |
|
||||||||||||
|
Set the background and the foreground of the component depending on the priority and the state of the passed alarm
|
|
|
Init the GUI |
|
||||||||||||||||
|
|
|
|
Save the alarm in a file
|
|
|
Set the visible columns in the table. The columns are displayed following their order in the array.
|
|
|
Show the dialog with all the nodes reduced by the passed alarm
|
|
|
The menu item to acknowledge an alarm |
|
|
The clipboard |
|
|
The menu item to svae the selected alarm into the clipboard |
|
|
The cols of the table |
|
|
The label returned as renderer when no flag is shown in the first column of the table |
|
|
Initial value: The renderer for a node that hides children because of a reduction rule is in place |
|
|
The model of the table |
|
|
The alarm adapter that recives events from the mouse |
|
|
The popup menu shown when the user presses the right mouse button over a row |
|
|
The dialog showing the table with the alarms involved in a reduction chain |
|
|
Initial value: The renderer for the reduced alarm entries i.e. the entries normally hidden |
|
|
The menu item to save |
|
|
The menu to show the reduction chain of an alarm |
|
|
The sorter for sorting the rows of the table |
1.3.8