

Public Member Functions | |
| ReducedChainDlg (CategoryClient client, AlarmTableEntry rootAlarm, CernSysPanel panel) | |
| void | close () |
| void | actionPerformed (ActionEvent e) |
| void | setRootAlarm (AlarmTableEntry rootAlarm) |
Private Member Functions | |
| void | initialize () |
| void | refreshContent () |
| void | getAlarmChain (Alarm al, DefaultMutableTreeNode parentNode) |
Private Attributes | |
| final JButton | closeBtn = new JButton("Close") |
| final JButton | refreshBtn = new JButton("Refresh") |
| final AlarmTable | table |
| final AlarmTree | tree = new AlarmTree() |
| final AlarmTableModel | model |
| final CernSysPanel | panel |
| final CategoryClient | categoryClient |
| AlarmTableEntry | alarm |
The dialog showing all the alarms involved in a reduction.
The dialog has a table, one row for each alarm. The alarms shown in this dialog are a snapshot of those involved in a reduction.
| alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::ReducedChainDlg | ( | CategoryClient | client, | |
| AlarmTableEntry | rootAlarm, | |||
| CernSysPanel | panel | |||
| ) | [inline] |
Constructor
| client | The CategoryClient to get the children of the alarm to show in the table | |
| rootAlarm | The root alarm whose children appear in the table | |
| panel | The alarm panel |
References alarm, categoryClient, initialize(), model, refreshContent(), and table.
| void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::actionPerformed | ( | ActionEvent | e | ) | [inline] |
References close(), closeBtn, refreshBtn, and refreshContent().
| void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::close | ( | ) | [inline] |
Close the dialog and frees its resources
Referenced by actionPerformed(), and alma::acsplugins::alarmsystem::gui::table::AlarmTable::close().
| void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::getAlarmChain | ( | Alarm | al, | |
| DefaultMutableTreeNode | parentNode | |||
| ) | [inline, private] |
Get the chain of reduction of the given alarm.
Implementation note: this method is recursive and therefore could lead to an out of memory if the chain is very deep.
| al | The alarm to get reduced nodes | |
| parentNode | The parent node of the tree |
References alma::acsplugins::alarmsystem::gui::tree::AlarmTree::add(), alarm, categoryClient, alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getAlarmId(), cern::laser::client::data::Alarm::getAlarmId(), alma::alarmsystem::clients::CategoryClient::getChildren(), cern::laser::client::data::Alarm::isNodeParent(), model, alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::onAlarm(), table, and tree.
Referenced by refreshContent().
| void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::initialize | ( | ) | [inline, private] |
Initialize the GUI
References alma::acsplugins::alarmsystem::gui::table::AlarmTable::addRemoveColumn(), closeBtn, refreshBtn, table, and tree.
Referenced by ReducedChainDlg().
| void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::refreshContent | ( | ) | [inline, private] |
Refresh the content of the table and the tree by getting the children of the root alarm from the CategoryClient.
References alarm, alma::acsplugins::alarmsystem::gui::tree::AlarmTree::clear(), alma::acsplugins::alarmsystem::gui::table::AlarmTableModel::clear(), getAlarmChain(), alma::acsplugins::alarmsystem::gui::table::AlarmTableEntry::getAlarmId(), model, refreshBtn, and tree.
Referenced by actionPerformed(), ReducedChainDlg(), and setRootAlarm().
| void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::setRootAlarm | ( | AlarmTableEntry | rootAlarm | ) | [inline] |
Set a new alarm as root of the displayed chain of a reduction.
By setting a new root alarm, the content of the dialog is replaced by a new chain of reduction having the passed alarm as root.
| rootAlarm | The new alarm root of a reduction chain |
References alarm, and refreshContent().
Referenced by alma::acsplugins::alarmsystem::gui::table::AlarmTable::showReductionChain().
The rot alarm, whose children are displayed in the table
Referenced by getAlarmChain(), ReducedChainDlg(), refreshContent(), and setRootAlarm().
final CategoryClient alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::categoryClient [private] |
The CategoryClient to get the children of the root alarm from the alarm service
Referenced by getAlarmChain(), and ReducedChainDlg().
final JButton alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::closeBtn = new JButton("Close") [private] |
The button to close the dialog
Referenced by actionPerformed(), and initialize().
The model
Referenced by getAlarmChain(), ReducedChainDlg(), and refreshContent().
The panel showing this table
final JButton alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::refreshBtn = new JButton("Refresh") [private] |
The button to refresh the content of the table
Referenced by actionPerformed(), initialize(), and refreshContent().
The table of alarms
Referenced by getAlarmChain(), initialize(), and ReducedChainDlg().
final AlarmTree alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::tree = new AlarmTree() [private] |
The tree of alarms
Referenced by getAlarmChain(), initialize(), and refreshContent().
1.6.2