Class HelpViewer

java.lang.Object
   |
   +----HelpViewer

abstract class HelpViewer
extends Object
The abstract super class of all help text viewer classes. It gets its texts from a HelpTexts instance that is passed to the constructor of this class. This way, the texts that are displayed are independent of the way they are displayed, so the same texts can be used in several HelpViewers specialized in several contexts.

Version:
$Revision: 1.2 $
See Also:
HelpTexts

Variable Index

 o texts
The HelpTexts instance this HelpViewer uses to manage its texts.

Constructor Index

 o HelpViewer(HelpTexts)
Constructs a new HelpViewer that uses the texts from the specified HelpTexts object.

Method Index

 o view(String)
Displays the help text corresponding to a specified subject.

Variables

 o texts
 protected HelpTexts texts
The HelpTexts instance this HelpViewer uses to manage its texts. It is set by the constructor.

See Also:
HelpViewer, HelpTexts

Constructors

 o HelpViewer
 HelpViewer(HelpTexts texts)
Constructs a new HelpViewer that uses the texts from the specified HelpTexts object.

Parameters:
texts - the HelpTexts instance to get texts from.
See Also:
HelpTexts

Methods

 o view
 abstract void view(String subject)
Displays the help text corresponding to a specified subject. This method must be overridden by subclasses.