Inherits javax::swing::JPanel.
Public Member Functions | |
AlarmPanel () | |
AlarmPanel (JFrame frame) | |
void | start () throws Exception |
void | stop () throws Exception |
void | setServices (ORB orb, AcsLogger logger) |
boolean | isOMCPlugin () |
boolean | isConnecting () |
void | showMessage (String mesg, boolean red) |
void | showAlarmDetails (Alarm alarm) |
void | showPanel (final String panelName) |
Static Public Attributes | |
static final String | alSysNotAvailName = "CERN_N/A_pnl" |
static final String | cernSysName = "CERN_pnl" |
static final String | acsASName = "ACS_pnl" |
The panel showing alarms
The panel has a different content in the following situations:
The panel runs in stand alone and inside the OMC. Its interface is not the standard SubsystemPlugin but the more generic OmcPlugin. For that reason we can't use alma.acs.gui.util.panel.Frame.
alma.acsplugins.alarmsystem.gui.AlarmPanel.AlarmPanel | ( | ) |
Constructor
alma.acsplugins.alarmsystem.gui.AlarmPanel.AlarmPanel | ( | JFrame | frame | ) |
Constructor
frame | The window that owns this panel |
boolean alma.acsplugins.alarmsystem.gui.AlarmPanel.isConnecting | ( | ) |
true
if an attempt to connect is running References alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.isConnecting().
boolean alma.acsplugins.alarmsystem.gui.AlarmPanel.isOMCPlugin | ( | ) |
Return true if the panel is running inside OMC
void alma.acsplugins.alarmsystem.gui.AlarmPanel.setServices | ( | ORB | orb, | |
AcsLogger | logger | |||
) |
Set the services
orb | The ORB | |
logger | The logger |
Referenced by alma.acsplugins.alarmsystem.gui.AlarmPanelFrame.AlarmPanelFrame().
void alma.acsplugins.alarmsystem.gui.AlarmPanel.showAlarmDetails | ( | Alarm | alarm | ) |
Show the alarm in the details table
alarm | The alarm to show in the details panel; if null the details table is cleared. |
References alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.showAlarmDetails().
void alma.acsplugins.alarmsystem.gui.AlarmPanel.showMessage | ( | String | mesg, | |
boolean | red | |||
) |
Show a message in the status line
References alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.showMessage().
void alma.acsplugins.alarmsystem.gui.AlarmPanel.showPanel | ( | final String | panelName | ) |
Show the panel with the given name
panelName | The not null and not empty name of the panel to show |
IllegalArgumentException | panelName is not a valid panel name |
References alma.acsplugins.alarmsystem.gui.AlarmPanel.acsASName, alma.acsplugins.alarmsystem.gui.AlarmPanel.alSysNotAvailName, and alma.acsplugins.alarmsystem.gui.AlarmPanel.cernSysName.
Referenced by alma.acsplugins.alarmsystem.gui.CernSysPanel.connect().
void alma.acsplugins.alarmsystem.gui.AlarmPanel.start | ( | ) | throws Exception |
Connect the Client and listens to the categories.
The CategoryClient
is built only if its reference is null. Otherwise it means that the client is still trying to connect and the user restarted the plugin.
References alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.setServices(), and alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.start().
Referenced by alma.acsplugins.alarmsystem.gui.AlarmPanelFrame.AlarmPanelFrame().
void alma.acsplugins.alarmsystem.gui.AlarmPanel.stop | ( | ) | throws Exception |
References alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.stop().
final String alma.acsplugins.alarmsystem.gui.AlarmPanel.acsASName = "ACS_pnl" [static] |
The name (in the layout) of acsASPnl
Referenced by alma.acsplugins.alarmsystem.gui.AlarmPanel.showPanel().
final String alma.acsplugins.alarmsystem.gui.AlarmPanel.alSysNotAvailName = "CERN_N/A_pnl" [static] |
The name (in the layout) of alSysNotAvailPnl
Referenced by alma.acsplugins.alarmsystem.gui.AlarmPanel.showPanel().
final String alma.acsplugins.alarmsystem.gui.AlarmPanel.cernSysName = "CERN_pnl" [static] |
The name (in the layout) of cernSysPnl
Referenced by alma.acsplugins.alarmsystem.gui.AlarmPanel.showPanel().