alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable Class Reference

Inheritance diagram for alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable:
Inheritance graph
[legend]
Collaboration diagram for alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable:
Collaboration graph
[legend]

List of all members.

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()

Detailed Description

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.

Author:
acaproni

Member Enumeration Documentation

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.

Author:
acaproni
Enumerator:
COMPONENT 
TIMESTAMP 
CAUSE 
PRIORITY 
DESCRIPTION 
ACTION 
CONSEQUENCE 
STATUS 
HOST 
URL 
RESPONSIBLE 
EMAIL 
GSM 
CODE 
FAMILY 
TRIPLET 
ID 

Constructor & Destructor Documentation

alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::AlarmDetailTable (  )  [inline]

Constructor

References initialize(), and model.


Member Function Documentation

String alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::getColumnName ( int  column  )  [inline]
void alma::acsplugins::alarmsystem::gui::detail::AlarmDetailTable::initialize (  )  [inline, private]

Init the GUI

References setTitleColumnSize().

Referenced by AlarmDetailTable().

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

Parameters:
sz A vector of string (can be null)
Returns:
The width of the first column

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.

Parameters:
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().


Member Data Documentation

The model of the table.

Referenced by AlarmDetailTable(), and showAlarmDetails().

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().

The renderer for the table value


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2