edu.uiuc.cs.net.DPRPManager
Class HelpAction

java.lang.Object
  |
  +--edu.uiuc.cs.net.DPRPManager.HelpAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

class HelpAction
extends java.lang.Object
implements java.awt.event.ActionListener

This class is instantiated at menu-object-creation time, and invoked upon user input. For each invocation, a dialog box is thrown up, displaying the appropriate help file.


Field Summary
private  GUI_DPRPClient curClient
          A reference to the gui client, to invoke the dialog creation method.
private  java.lang.String fname
          The name of the help file to display.
private  java.lang.String windowTitle
          The title to be displayed in the dialog.
 
Constructor Summary
HelpAction(java.lang.String f, java.lang.String t, GUI_DPRPClient gpc)
          Constructor for this action.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Invoked whenever this action is triggered by the user (usually via a mouse click).
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

fname

private java.lang.String fname
The name of the help file to display.

windowTitle

private java.lang.String windowTitle
The title to be displayed in the dialog.

curClient

private GUI_DPRPClient curClient
A reference to the gui client, to invoke the dialog creation method.
Constructor Detail

HelpAction

public HelpAction(java.lang.String f,
                  java.lang.String t,
                  GUI_DPRPClient gpc)
Constructor for this action.
Parameters:
f - A string, representing the name of an HTML help file.
t - A string, representing the title of the new dialog.
gpc - A reference to the current client, for dialog creation.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Invoked whenever this action is triggered by the user (usually via a mouse click). This will cause a new dialog box to be thrown up, displaying the help text relevent to this action.
Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - An ActionEvent instance, that contains something, I guess...