rcUserInterface
Class rcPrstMonitor

java.lang.Object
  |
  +--java.awt.event.WindowAdapter
        |
        +--rcUserInterface.rcPrstMonitor

public class rcPrstMonitor
extends java.awt.event.WindowAdapter
implements dtMonitor

Class to give a snapshot of all components of a process stage. It is invoked when pressing a process stage button on the top level gui rcGui. It is implements a dtMonitor, which means that is can be loaded dynamically, creates the desired windows, which it subsequently updates in periodic intervals.

For example for the DCM stage it could look like this:

Internally it has a rcPuButtonGridPanel, a special instance of the dtButtonGridPanel from the package dtools.

Version:
Dec 20, 1999
Author:
C.Witzig

Field Summary
(package private)  boolean bDebug
          Prints info to System.out if true.
(package private)  boolean bWindowAttached
          True if we have a window attached.
private  rcCmd theCommand
          The run control command to retrieve the info from the run control server
private  javax.swing.JFrame theFrame
          Parent frame
private  rcPuButtonGridPanel thePanel
          The button grid panel, where we display the process units.
private  java.lang.String theStageName
          Name of the stage that is displayed here.
 
Constructor Summary
rcPrstMonitor()
           
 
Method Summary
 boolean active()
          Retrurns true as long as the window is open and we have to display the information.
 int create(java.lang.String[] theArgs)
          Creates the window.
static void main(java.lang.String[] theArgs)
          Main method for debugging in standalone mode.
 void update()
          Update method.
 void windowClosing(java.awt.event.WindowEvent ev)
          Callback for a closing window.
 
Methods inherited from class java.awt.event.WindowAdapter
windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

theStageName

private java.lang.String theStageName
Name of the stage that is displayed here.

theCommand

private rcCmd theCommand
The run control command to retrieve the info from the run control server

theFrame

private javax.swing.JFrame theFrame
Parent frame

thePanel

private rcPuButtonGridPanel thePanel
The button grid panel, where we display the process units.

bDebug

boolean bDebug
Prints info to System.out if true.

bWindowAttached

boolean bWindowAttached
True if we have a window attached.
Constructor Detail

rcPrstMonitor

public rcPrstMonitor()
Method Detail

windowClosing

public void windowClosing(java.awt.event.WindowEvent ev)
Callback for a closing window. (rcPrstMonitor extends WindowAdapter).
Overrides:
windowClosing in class java.awt.event.WindowAdapter

active

public boolean active()
Retrurns true as long as the window is open and we have to display the information.
Specified by:
active in interface dtMonitor

create

public int create(java.lang.String[] theArgs)
Creates the window. Note that this has to be different from the constructor as the class can be loaded dynamically.
Specified by:
create in interface dtMonitor

update

public void update()
Update method. Retrieves the information from the run control server and displays it in the button grid panel by calling setLabel method of the dtButtonGridPanel.
Specified by:
update in interface dtMonitor

main

public static void main(java.lang.String[] theArgs)
Main method for debugging in standalone mode.