All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.manager.RApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----javax.swing.JApplet
                                           |
                                           +----com.sgi.sysadm.manager.RApplet

public abstract class RApplet
extends JApplet
RApplet is an abstract base class for sysadm-based Applets. A sysadm-based Applet presents a user interface element on a web page that when activated launches a sysadm application (typically a subclass of RApp such as TaskManager) in an independent frame.

A subclass of RApplet calls its activate method when the user makes a gesture such as clicking the mouse. The first time activate is called, it attempts to establish a connection with the server from which the Applet was downloaded, and if successful calls the launchFrame method with the resulting HostContext. Subsequent calls to activate bring the RFrame created by launchFrame to the front of the window stacking order.

If a call to HostContext.exit is made, then the connection with the server will be dropped. A subsequent call to activate will result in an attempt to establish a new connection and if successful launchFrame will be called again.

HostContext.exit will be called when the last application window is closed.

See Also:
HostContext, RApp, RFrame

Variable Index

 o DIALOG_TITLE
The property RApplet.dialogTitle is a String that is used as the title on dialogs displayed by this applet.

Constructor Index

 o RApplet(String, String)
Construct an RApplet.

Method Index

 o activate()
Called when the user activates (typically by clicking the mouse) the Applet.
 o isConnected()
Query whether this RApplet is connected to the server.
 o launchFrame(HostContext)
Called by RApplet after a connection has been established.

Variables

 o DIALOG_TITLE
 public static final String DIALOG_TITLE
The property RApplet.dialogTitle is a String that is used as the title on dialogs displayed by this applet.

Constructors

 o RApplet
 public RApplet(String appClassName,
                String productName)
Construct an RApplet. Initializes internal resources using appClassName and productName, and interacts with HostContext to provide proper handling for Help buttons.

Parameters:
appClassName - The package-qualified name of the application class. ResourceStack.BUNDLE_SUFFIX will be appended to this name to generate the application ResourceBundle name.
productName - A String containing the CLASSPATH relative name of the product containing the package properties file. May be null. The value of this

Methods

 o activate
 public void activate()
Called when the user activates (typically by clicking the mouse) the Applet. The first time activate is called, it attempts to establish a connection with server from which the web page was downloaded. If successfull, launchFrame will be called.

Subsequent calls to activate will result in the frame returned by launchFrame being brought to the front of the window stacking order (via a call to toFront).

If HostContext.exit is called, then the connection with the server will be dropped and subsequent calls to activate will start the process over again.

See Also:
toFront
 o isConnected
 public boolean isConnected()
Query whether this RApplet is connected to the server. A connection is established by calling activate.

Returns:
true if RApplet is connected, false otherwise.
 o launchFrame
 protected abstract RFrame launchFrame(HostContext hc)
Called by RApplet after a connection has been established. The subclass should create and display the frame that the application runs in. If the RFrame returned by launchFrame is closed and then activate is called, launchFrame will be called again.

Parameters:
hc - HostContext for server connection.
Returns:
RFrame in which application will run.

All Packages  Class Hierarchy  This Package  Previous  Next  Index