|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.common.help.HelpManager
public class HelpManager
This class fetches and presents online help text. Help is stored in text files that are located in a help directory. Help operates as a separate subsystem with a factory method to fetch manager instances. Help output defaults to System.out.
| Method Summary | |
|---|---|
protected boolean |
display(java.io.File helpFile)
Displays the requested help file if it is found. |
boolean |
displayTopic(java.lang.String name)
Display help for a topic. |
boolean |
displayTopicFromNames(java.lang.String[] names)
Display help for a topic. |
static HelpManager |
getInstance()
Return a help manager instance. |
static void |
initialize(java.io.File helpDir)
Initialize help. |
protected void |
loadAndWrite(java.io.File file)
Copy help file contents to the current output. |
void |
setWriter(java.io.Writer writer)
Set the print output writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void initialize(java.io.File helpDir)
throws HelpException
helpDir - Location of help files.
HelpException - Thrown if help directory is invalidpublic static HelpManager getInstance()
public void setWriter(java.io.Writer writer)
public boolean displayTopic(java.lang.String name)
name - Help topic name or null to get the default value
public boolean displayTopicFromNames(java.lang.String[] names)
names - An array of names used to construct the topic name
protected boolean display(java.io.File helpFile)
throws HelpException
helpFile - Requested help file.
HelpException
protected void loadAndWrite(java.io.File file)
throws HelpException
HelpException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||