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.
-
codeFrame
- The window used for displaying code.
-
done
- One of the five buttons.
-
load
- One of the five buttons.
-
module
- The module being displayed.
-
next
- One of the five buttons.
-
previous
- One of the five buttons.
-
text
- The text box that displays the module.
-
tutorial
- The
TutorialFrame that created this object.
-
view
- One of the five buttons.
-
viewDone
- The done button in the "View code" window.
-
ModuleFrame(TutorialFrame, IndexEntry)
- Initializes all of the fields and shows the window.
-
action(Event, Object)
- Passes actions to
supervisor.
-
cleanup()
- Tells
codeFrame to go away, if it exists.
-
displayCode()
- Displays the code for this module.
-
killFrame(RobotlFrame)
-
-
setNewModule(IndexEntry)
- Sets
module to newModule, sets the
text in the text box and disables or enables next
and previous.
tutorial
TutorialFrame tutorial
- The
TutorialFrame that created this object.
module
IndexEntry module
- The module being displayed.
next
Button next
- One of the five buttons.
previous
Button previous
- One of the five buttons.
view
Button view
- One of the five buttons.
load
Button load
- One of the five buttons.
done
Button done
- One of the five buttons.
viewDone
Button viewDone
- The done button in the "View code" window.
text
TextArea text
- The text box that displays the module.
codeFrame
RobotlFrame codeFrame
- The window used for displaying code.
ModuleFrame
ModuleFrame(TutorialFrame inTutorial,
IndexEntry inModule)
- Initializes all of the fields and shows the window.
setNewModule
public void setNewModule(IndexEntry newModule)
- Sets
module to newModule, sets the
text in the text box and disables or enables next
and previous.
displayCode
void displayCode()
- Displays the code for this module.
killFrame
public void killFrame(RobotlFrame frame)
cleanup
public void cleanup()
- Tells
codeFrame to go away, if it exists.
- Overrides:
- cleanup in class RobotlFrame
action
public boolean action(Event evt,
Object what)
- Passes actions to
supervisor.
- Overrides:
- action in class RobotlFrame