Class TutorialFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----RobotlFrame
|
+----SupportFrame
|
+----TutorialFrame
- public class TutorialFrame
- extends SupportFrame
- implements ElJefe
SupportFrames are used for the example programs and tutorial windows.
When created, the function reads a specified index file from the server (in index file
format) and creates the text boxes and buttons.
- Author:
- Theo Van Dinter, Peter Sagerson
- See Also:
- IndexEntry, SupportFrame
-
moduleFrame
-
-
TutorialFrame(String, RobotlApplet, List, Hashtable, boolean)
-
-
atFirstModule()
- Returns true if the first item in the list is selected.
-
atLastModule()
- Returns true if the last item in the list is selected.
-
cleanup()
- Informs
supervisor that we're closing, cleans up the
window's resources and closes it.
-
killFrame(RobotlFrame)
- Removes the module window.
-
nextModule()
- Selects the module immediately after the current one and returns
it.
-
previousModule()
- Selects the module immediately before the current one and returns
it.
-
retrieveCode(String)
- A wrapper for
RobotlApplet.retrieveCode().
-
useCode(String)
- A wrapper for
RobotlApplet.setCode().
-
useSelection()
- Displays the selected module.
moduleFrame
ModuleFrame moduleFrame
TutorialFrame
public TutorialFrame(String title,
RobotlApplet inApplet,
List inList,
Hashtable inTable,
boolean browse)
- Parameters:
- title - the title of the window.
- inApplet - the
RobotlApplet to report to.
- inList - the
List the display.
- inTable - the table of entries associated with
inList.
useSelection
public void useSelection()
- Displays the selected module.
- Overrides:
- useSelection in class SupportFrame
atFirstModule
boolean atFirstModule()
- Returns true if the first item in the list is selected.
atLastModule
boolean atLastModule()
- Returns true if the last item in the list is selected.
nextModule
public IndexEntry nextModule()
- Selects the module immediately after the current one and returns
it. If the last one is already selected, it is returned instead.
previousModule
public IndexEntry previousModule()
- Selects the module immediately before the current one and returns
it. If the first one is already selected, it is returned instead.
retrieveCode
public String retrieveCode(String filename)
- A wrapper for
RobotlApplet.retrieveCode().
useCode
public void useCode(String filename)
- A wrapper for
RobotlApplet.setCode().
killFrame
public void killFrame(RobotlFrame frame)
- Removes the module window.
cleanup
public void cleanup()
- Informs
supervisor that we're closing, cleans up the
window's resources and closes it.
- Overrides:
- cleanup in class RobotlFrame