

Classes | |
| class | AlarmDetailTableModel |
Public Types | |
| enum | RowTitles { COMPONENT = ("Component"), TIMESTAMP = ("Source timestamp "), CAUSE = ("Cause"), PRIORITY = ("Priority"), DESCRIPTION = ("Description"), ACTION = ("Action"), CONSEQUENCE = ("Consequence"), STATUS = ("Status"), HOST = ("Host"), URL = ("Help page:"), RESPONSIBLE = ("Contact"), EMAIL = ("Email"), GSM = ("GSM"), CODE = ("Code"), FAMILY = ("Family"), TRIPLET = ("Triplet"), ID = ("ID") } |
Public Member Functions | |
| AlarmDetailTable () | |
| String | getColumnName (int column) |
| void | showAlarmDetails (Alarm alarm) |
Private Member Functions | |
| void | initialize () |
| int | setTitleColumnSize (Vector< String > strings) |
Private Attributes | |
| final AlarmDetailTableModel | model = new AlarmDetailTableModel() |
| Alarm | alarm = null |
| Vector< String > | propertyNames = null |
| final JLabel | renderer = new JLabel() |
The table with the details of an alarm
The table has two columns, one with the name of the field and the second with its value. The number of rows can change because the alarm might have user properties.
The tiltes of the rows that appear on the left side of the table. Note: to change the order of the row, change the declaration order of the items of this enumerated.
| alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::AlarmDetailTable | ( | ) | [inline] |
Constructor
References initialize(), and model.
| String alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::getColumnName | ( | int | column | ) | [inline] |
| void alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::initialize | ( | ) | [inline, private] |
| int alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::setTitleColumnSize | ( | Vector< String > | strings | ) | [inline, private] |
Calculate the width of the first column to be at least wide enough to contain the titles in RowTitles.
The width of the column is the greatest between the width needed to show the title or the passed width
| sz | A vector of string (can be null) |
Referenced by initialize(), and showAlarmDetails().
| void alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::showAlarmDetails | ( | Alarm | alarm | ) | [inline] |
Set the content of the view with the details of the passed alarm.
| alarm | The alarm to which display the details; if null the table will be cleared |
References cern::laser::client::data::Alarm::getStatus(), cern::laser::client::data::Status::getUserProperties(), model, propertyNames, and setTitleColumnSize().
Referenced by alma::acsplugins::alarmsystem::gui::CernSysPanel::showAlarmDetails().
Alarm alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::alarm = null [private] |
The alarm to which this table shows the details.
If null tha table is cleared.
Referenced by alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::AlarmDetailTableModel::getRowCount(), and alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::AlarmDetailTableModel::getValueAt().
final AlarmDetailTableModel alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::model = new AlarmDetailTableModel() [private] |
The model of the table.
Referenced by AlarmDetailTable(), and showAlarmDetails().
Vector<String> alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::propertyNames = null [private] |
The name of the user properties are stored in a Vector that is easier to manipulate from the point of view of the table model.
It is null if the alarm contains no properties i.e. it is null ir its size is greater then 0.
Referenced by alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::AlarmDetailTableModel::getValueAt(), and showAlarmDetails().
final JLabel alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::renderer = new JLabel() [private] |
The renderer for the table value
1.6.2