Public Member Functions | |
ReducedChainDlg (CategoryClient client, Alarm rootAlarm) | |
void | close () |
Override void | actionPerformed (ActionEvent e) |
void | setRootAlarm (Alarm 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 CategoryClient | categoryClient |
Alarm | alarm |
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.
|
Constructor
|
|
|
|
Close the dialog and frees its resources |
|
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.
|
|
Initialize the GUI |
|
Refresh the content of the table and the tree by getting the children of the root alarm from the CategoryClient. |
|
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.
|
|
The rot alarm, whose children are displayed in the table |
|
The CategoryClient to get the children of the root alarm from the alarm service |
|
The button to close the dialog |
|
The model |
|
The button to refresh the content of the table |
|
The table of alarms |
|
The tree of alarms |