All Packages Class Hierarchy This Package Previous Next Index
Class JObserve.GUI.HelpBox
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Dialog
|
+----JObserve.GUI.ObserveBox
|
+----JObserve.GUI.HelpBox
- public class HelpBox
- extends ObserveBox
Online help display for JObserve
Uses modless dialog.
This widget parses a text file looking for help information.
A line starting with $topic$ contains a topic
A line starting with $subtopic$ contains a subtopic
Any other lines are help text for the previous subtopic or topic
if the topic has no subtopics.
-
iceBrowser
- The html browser
-
isActive
- Flag indicating if display is active
-
myBox
- The one true HelpBox
-
subtopicList
- AWT List to show subtopics
-
topicList
- AWT List to show main topics
-
HelpBox(Frame, String, String, String, String)
- Make Help Box.
-
clearSelect()
- Clear navigation selections
-
loadHelpFile(String)
- Load HelpFile.
-
main(String[])
-
main program for testing
-
makeHelpBox(Frame, String, String, String, String)
- Make Help Box, if it exists simple change display.
-
showHelp(String, String)
- Select Help information displayed
If topic is different from current get new sub topics from file
and ignore subtopic displaying the first found in the new topic.
isActive
public static boolean isActive
- Flag indicating if display is active
myBox
public static HelpBox myBox
- The one true HelpBox
topicList
public List topicList
- AWT List to show main topics
subtopicList
public List subtopicList
- AWT List to show subtopics
iceBrowser
public Browser iceBrowser
- The html browser
HelpBox
public HelpBox(Frame parent,
String file,
String html,
String topic,
String subtopic)
- Make Help Box.
- Parameters:
-
Frame
- Frame on which to hang the dialog
-
String
- file name for help file, null means none
-
String
- html base directory
-
String
- topic to display, null means none
-
String
- subtopic to display, null means none
makeHelpBox
public static HelpBox makeHelpBox(Frame parent,
String file,
String html,
String topic,
String subtopic)
- Make Help Box, if it exists simple change display.
- Parameters:
-
Frame
- Frame on which to hang the dialog
-
String
- file name for help file, null means none
-
String
- html base directory
-
String
- topic to display, null means none
-
String
- subtopic to display, null means none
clearSelect
public void clearSelect()
- Clear navigation selections
showHelp
public void showHelp(String topic,
String subtopic)
- Select Help information displayed
If topic is different from current get new sub topics from file
and ignore subtopic displaying the first found in the new topic.
If the topic if the same display the new subtopic.
- Parameters:
-
String
- Topic, null if no topic.
-
String
- Subtopic, null if no subtopic
loadHelpFile
public void loadHelpFile(String file)
- Load HelpFile.
Extracts topics from the help file
Topic lines start with a $topic$
Selects first topic and subtopic.
- Parameters:
-
String -
name of file to display
main
public static void main(String args[])
- main program for testing
All Packages Class Hierarchy This Package Previous Next Index