The Physiologist's Friend Simulation API

ch.unizh.ini.friend.gui
Class FriendHelp

java.lang.Object
  extended by ch.unizh.ini.friend.gui.FriendHelp
All Implemented Interfaces:
ActionListener, EventListener

public class FriendHelp
extends Object
implements ActionListener

Shows help system. The actionPerformed(java.awt.event.ActionEvent) method is used when an instance of this class is registered with the gui's help contents menu item.

Since:
$Revision: 1.6 $
Author:
$Author: tobi $

Field Summary
 javax.help.HelpBroker hb
          the HelpBroker
static String HELPSET_URL
          relative URL of help set file
 javax.help.HelpSet hs
          the HelpSet
 
Constructor Summary
FriendHelp(JFrame gui)
          Creates a new instance of FirendHelp.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Shows the help system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hs

public javax.help.HelpSet hs
the HelpSet


hb

public javax.help.HelpBroker hb
the HelpBroker


HELPSET_URL

public static final String HELPSET_URL
relative URL of help set file

See Also:
Constant Field Values
Constructor Detail

FriendHelp

public FriendHelp(JFrame gui)
Creates a new instance of FirendHelp. Makaes and loads the HelpSet and makes the HelpBroker.

Parameters:
gui - the parent component. This is used to show the error message dialog when help is not found.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Shows the help system. This method uses CSH.DisplayHelpFromSource.actionPerformed(java.awt.event.ActionEvent) to show the help system in a JHelp window.

Specified by:
actionPerformed in interface ActionListener
Parameters:
e - the event

http://www.ini.unizh.ch/~tobi/friend