Class SupportFrame

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

public abstract class SupportFrame
extends RobotlFrame
SupportFrames are used for the example programs and tutorial windows. list and table are created by the applet and passed into the constructor. Subclasses must set the label of the ok button in their constructor

Author:
Theo Van Dinter, Peter Sagerson
See Also:
TutorialFrame, ExamplesFrame, IndexEntry

Variable Index

 o applet
 o defaultText
 o done
 o entry
 o infobox
 o item
The item of the list currently selected.
 o list
 o ok
 o table

Constructor Index

 o SupportFrame(String, RobotlApplet, List, Hashtable, boolean)

Method Index

 o action(Event, Object)
Responds to the buttons and list.
 o handleEvent(Event)
Dispatches the LIST_SELECT event and passes the rest to super.handleEvent()
 o keyDown(Event, int)
Handles the return key and passes the rest to super.keyDown()
 o selectEntry(int)
Called on a LIST_SELECT event.
 o selectEntry(String)
Finds the entry named title and selects it.
 o useSelection()
Override this to handle the ok button, list double-clicking and the return key.

Variables

 o applet
 protected RobotlApplet applet
 o list
 protected List list
 o infobox
 protected TextArea infobox
 o ok
 protected Button ok
 o done
 protected Button done
 o table
 protected Hashtable table
 o item
 protected int item
The item of the list currently selected.

 o entry
 protected IndexEntry entry
 o defaultText
 private final String defaultText

Constructors

 o SupportFrame
 public SupportFrame(String title,
                     RobotlApplet inApplet,
                     List inList,
                     Hashtable inTable,
                     boolean visible)
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.

Methods

 o useSelection
 protected abstract void useSelection()
Override this to handle the ok button, list double-clicking and the return key.

 o selectEntry
 public void selectEntry(int n)
Called on a LIST_SELECT event.

 o selectEntry
 public void selectEntry(String title)
Finds the entry named title and selects it.

 o handleEvent
 public boolean handleEvent(Event evt)
Dispatches the LIST_SELECT event and passes the rest to super.handleEvent()

Overrides:
handleEvent in class RobotlFrame
 o keyDown
 public boolean keyDown(Event evt,
                        int key)
Handles the return key and passes the rest to super.keyDown()

Overrides:
keyDown in class Component
 o action
 public boolean action(Event evt,
                       Object what)
Responds to the buttons and list.

Overrides:
action in class RobotlFrame