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
-
applet
-
-
defaultText
-
-
done
-
-
entry
-
-
infobox
-
-
item
- The item of the list currently selected.
-
list
-
-
ok
-
-
table
-
-
SupportFrame(String, RobotlApplet, List, Hashtable, boolean)
-
-
action(Event, Object)
- Responds to the buttons and list.
-
handleEvent(Event)
- Dispatches the LIST_SELECT event and passes the rest to
super.handleEvent()
-
keyDown(Event, int)
- Handles the return key and passes the rest to
super.keyDown()
-
selectEntry(int)
- Called on a LIST_SELECT event.
-
selectEntry(String)
- Finds the entry named
title and selects it.
-
useSelection()
- Override this to handle the
ok button, list double-clicking
and the return key.
applet
protected RobotlApplet applet
list
protected List list
infobox
protected TextArea infobox
ok
protected Button ok
done
protected Button done
table
protected Hashtable table
item
protected int item
- The item of the list currently selected.
entry
protected IndexEntry entry
defaultText
private final String defaultText
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.
useSelection
protected abstract void useSelection()
- Override this to handle the
ok button, list double-clicking
and the return key.
selectEntry
public void selectEntry(int n)
- Called on a LIST_SELECT event.
selectEntry
public void selectEntry(String title)
- Finds the entry named
title and selects it.
handleEvent
public boolean handleEvent(Event evt)
- Dispatches the LIST_SELECT event and passes the rest to
super.handleEvent()
- Overrides:
- handleEvent in class RobotlFrame
keyDown
public boolean keyDown(Event evt,
int key)
- Handles the return key and passes the rest to
super.keyDown()
- Overrides:
- keyDown in class Component
action
public boolean action(Event evt,
Object what)
- Responds to the buttons and list.
- Overrides:
- action in class RobotlFrame