Class ModuleFrame

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

public class ModuleFrame
extends RobotlFrame
implements ElJefe
Represents a window that displays one module of the tutorial.


Variable Index

 o codeFrame
The window used for displaying code.
 o done
One of the five buttons.
 o load
One of the five buttons.
 o module
The module being displayed.
 o next
One of the five buttons.
 o previous
One of the five buttons.
 o text
The text box that displays the module.
 o tutorial
The TutorialFrame that created this object.
 o view
One of the five buttons.
 o viewDone
The done button in the "View code" window.

Constructor Index

 o ModuleFrame(TutorialFrame, IndexEntry)
Initializes all of the fields and shows the window.

Method Index

 o action(Event, Object)
Passes actions to supervisor.
 o cleanup()
Tells codeFrame to go away, if it exists.
 o displayCode()
Displays the code for this module.
 o killFrame(RobotlFrame)
 o setNewModule(IndexEntry)
Sets module to newModule, sets the text in the text box and disables or enables next and previous.

Variables

 o tutorial
 TutorialFrame tutorial
The TutorialFrame that created this object.

 o module
 IndexEntry module
The module being displayed.

 o next
 Button next
One of the five buttons.

 o previous
 Button previous
One of the five buttons.

 o view
 Button view
One of the five buttons.

 o load
 Button load
One of the five buttons.

 o done
 Button done
One of the five buttons.

 o viewDone
 Button viewDone
The done button in the "View code" window.

 o text
 TextArea text
The text box that displays the module.

 o codeFrame
 RobotlFrame codeFrame
The window used for displaying code.

Constructors

 o ModuleFrame
 ModuleFrame(TutorialFrame inTutorial,
             IndexEntry inModule)
Initializes all of the fields and shows the window.

Methods

 o setNewModule
 public void setNewModule(IndexEntry newModule)
Sets module to newModule, sets the text in the text box and disables or enables next and previous.

 o displayCode
 void displayCode()
Displays the code for this module.

 o killFrame
 public void killFrame(RobotlFrame frame)
 o cleanup
 public void cleanup()
Tells codeFrame to go away, if it exists.

Overrides:
cleanup in class RobotlFrame
 o action
 public boolean action(Event evt,
                       Object what)
Passes actions to supervisor.

Overrides:
action in class RobotlFrame