All Examples  This Package

Class examples.rmi.stock.StockApplet

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----examples.rmi.stock.StockApplet

public class StockApplet
extends Applet
implements StockNotify, Serializable
This applet is part of the WebLogic RMI Stock examples package. The StockApplet exports a remote object, and contacts the StockWatch server to register interest in receiving stock updates. The applet displays the updates in a graph format.

The classes in this package have been adapted to work with WebLogic RMI from WebLogic.


Constructor Index

 o StockApplet()

Method Index

 o destroy()
Cleans up when applet is destroyed.
 o init()
Initializes the applet.
 o paint(Graphics)
Repaints the panel.
 o update(Date, Stock[])
Displays stock updates for a particular time.

Constructors

 o StockApplet
 public StockApplet()

Methods

 o update
 public void update(Date date,
                    Stock stock[])
Displays stock updates for a particular time.

Parameters:
date - Time of the stock update
stocks - Array of the stocks for which the object has registered interest.
 o init
 public void init()
Overrides:
init in class Applet
 o destroy
 public void destroy()
Cleans up when applet is destroyed. The applet cancels all requests for stock updates.

Overrides:
destroy in class Applet
 o paint
 public void paint(Graphics g)
Repaints the panel.

Parameters:
g - Graphics object
Overrides:
paint in class Container

All Examples  This Package