Public Member Functions | Static Public Attributes

alma.acsplugins.alarmsystem.gui.AlarmPanel Class Reference

Inherits javax::swing::JPanel.

List of all members.

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"

Detailed Description

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.


Constructor & Destructor Documentation

alma.acsplugins.alarmsystem.gui.AlarmPanel.AlarmPanel (  ) 

Constructor

alma.acsplugins.alarmsystem.gui.AlarmPanel.AlarmPanel ( JFrame  frame  ) 

Constructor

Parameters:
frame The window that owns this panel

Member Function Documentation

boolean alma.acsplugins.alarmsystem.gui.AlarmPanel.isConnecting (  ) 
Returns:
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

See also:
alma.acs.gui.util.panel.IPanel
void alma.acsplugins.alarmsystem.gui.AlarmPanel.setServices ( ORB  orb,
AcsLogger  logger 
)

Set the services

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

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

See also:
StatusLine

References alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.showMessage().

void alma.acsplugins.alarmsystem.gui.AlarmPanel.showPanel ( final String  panelName  ) 

Show the panel with the given name

Parameters:
panelName The not null and not empty name of the panel to show
Exceptions:
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.

See also:
SubsystemPlugin

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
See also:
SubsystemPlugin

References alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.stop().


Member Data Documentation

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


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties