Inherits javax::swing::JPanel.
Public Member Functions | |
CernSysPanel (AlarmPanel owner, AlSysNotAvailPanel notAvaiPnl, UndocAlarmTableModel undocModel) | |
void | close () |
void | pause () throws Exception |
void | resume () throws Exception |
void | showMessage (String mesg, boolean red) |
void | showAlarmDetails (Alarm alarm) |
void | setModel (AlarmTableModel model) |
void | connect () |
void | disconnect () |
boolean | isConnecting () |
void | setServices (ORB orb, AcsLogger logger) |
void | start () throws Exception |
void | stop () throws Exception |
Public Attributes | |
final boolean | ACTIVATE_RDUCTION_RULES = true |
The panel shown while the CERN AS is in use and the alarm client is connected.
alma.acsplugins.alarmsystem.gui.CernSysPanel.CernSysPanel | ( | AlarmPanel | owner, | |
AlSysNotAvailPanel | notAvaiPnl, | |||
UndocAlarmTableModel | undocModel | |||
) |
Constructor
owner | The panel showing this container | |
notAvaiPnl | The panel when the AS is not available |
void alma.acsplugins.alarmsystem.gui.CernSysPanel.close | ( | ) |
Closes the panel
Referenced by alma.acsplugins.alarmsystem.gui.CernSysPanel.stop().
void alma.acsplugins.alarmsystem.gui.CernSysPanel.connect | ( | ) |
Connect
Try to connect to the alarm service until it becomes available
References alma.acsplugins.alarmsystem.gui.AlSysNotAvailPanel.addMessage(), alma.alarmsystem.clients.CategoryClient.connect(), alma.acsplugins.alarmsystem.gui.ConnectionListener.connected(), alma.acsplugins.alarmsystem.gui.ConnectionListener.connecting(), alma.acsplugins.alarmsystem.gui.ConnectionListener.disconnected(), and alma.acsplugins.alarmsystem.gui.AlarmPanel.showPanel().
void alma.acsplugins.alarmsystem.gui.CernSysPanel.disconnect | ( | ) |
Disconnect
References alma.alarmsystem.clients.CategoryClient.close(), and alma.acsplugins.alarmsystem.gui.ConnectionListener.disconnected().
boolean alma.acsplugins.alarmsystem.gui.CernSysPanel.isConnecting | ( | ) |
true
if an attempt to connect is running Referenced by alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.isConnecting().
void alma.acsplugins.alarmsystem.gui.CernSysPanel.pause | ( | ) | throws Exception |
void alma.acsplugins.alarmsystem.gui.CernSysPanel.resume | ( | ) | throws Exception |
void alma.acsplugins.alarmsystem.gui.CernSysPanel.setModel | ( | AlarmTableModel | model | ) |
void alma.acsplugins.alarmsystem.gui.CernSysPanel.setServices | ( | ORB | orb, | |
AcsLogger | logger | |||
) |
void alma.acsplugins.alarmsystem.gui.CernSysPanel.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. |
Referenced by alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.showAlarmDetails().
void alma.acsplugins.alarmsystem.gui.CernSysPanel.showMessage | ( | String | mesg, | |
boolean | red | |||
) |
Show a message in the status line
mesg | ||
red |
Referenced by alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.showMessage().
void alma.acsplugins.alarmsystem.gui.CernSysPanel.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.
Referenced by alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.start().
void alma.acsplugins.alarmsystem.gui.CernSysPanel.stop | ( | ) | throws Exception |
References alma.acsplugins.alarmsystem.gui.CernSysPanel.close().
Referenced by alma.acsplugins.alarmsystem.gui.CernAlSysTabbedPane.stop().
final boolean alma.acsplugins.alarmsystem.gui.CernSysPanel.ACTIVATE_RDUCTION_RULES = true |
The startup option for reduction rules