Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg Class Reference

List of all members.

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

Detailed Description

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.

Author:
acaproni


Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::ReducedChainDlg CategoryClient  client,
Alarm  rootAlarm
[inline]
 

Constructor

Parameters:
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


Member Function Documentation

Override void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::actionPerformed ActionEvent  e  )  [inline]
 

See also:
java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)

void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::close  )  [inline]
 

Close the dialog and frees its resources

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.

Parameters:
al The alarm to get reduced nodes
parentNode The parent node of the tree

void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::initialize  )  [inline, private]
 

Initialize the GUI

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.

void alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::setRootAlarm Alarm  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.

Parameters:
rootAlarm The new alarm root of a reduction chain


Member Data Documentation

Alarm alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::alarm [private]
 

The rot alarm, whose children are displayed in the table

final CategoryClient alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::categoryClient [private]
 

The CategoryClient to get the children of the root alarm from the alarm service

final JButton alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::closeBtn = new JButton("Close") [private]
 

The button to close the dialog

final AlarmTableModel alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::model [private]
 

The model

final JButton alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::refreshBtn = new JButton("Refresh") [private]
 

The button to refresh the content of the table

final AlarmTable alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::table [private]
 

The table of alarms

final AlarmTree alma::acsplugins::alarmsystem::gui::reduced::ReducedChainDlg::tree = new AlarmTree() [private]
 

The tree of alarms


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:00:35 2009 for ACS Java API by doxygen 1.3.8