Class RobotlFrame

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Frame
                                   |
                                   +----RobotlFrame

public class RobotlFrame
extends Frame
All windows in the applet are instances or RobotlFrame or a descendent. When the user hits the close box of a RobotlFrame, the window closes and its resources are released.

Author:
Peter Sagerson, petersag@wpi.edu

Variable Index

 o supervisor
The object that created this window.

Constructor Index

 o RobotlFrame(String, ElJefe)

Method Index

 o action(Event, Object)
Passes actions to supervisor.
 o cleanup()
Informs supervisor that we're closing, cleans up the window's resources and closes it.
 o handleEvent(Event)
Catches Event.WINDOW_DESTROY and calls cleanup().

Variables

 o supervisor
 private ElJefe supervisor
The object that created this window.

Constructors

 o RobotlFrame
 public RobotlFrame(String title,
                    ElJefe inSuperv)

Methods

 o action
 public boolean action(Event evt,
                       Object what)
Passes actions to supervisor.

Overrides:
action in class Component
 o handleEvent
 public boolean handleEvent(Event evt)
Catches Event.WINDOW_DESTROY and calls cleanup().

Overrides:
handleEvent in class Component
 o cleanup
 public void cleanup()
Informs supervisor that we're closing, cleans up the window's resources and closes it.