puzzled.actions
Class HelpAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--puzzled.actions.HelpAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable

public class HelpAction
extends javax.swing.AbstractAction

The HelpAction class is composed of a string and an icon, and is added to the toolbar and menu bar. It has the action performed method that is called when the menu item or button is clicked.

Version:
1.54
Author:
Frédéric Demers
See Also:
Serialized Form

Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
HelpAction(ProblemSolver parent_arg)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This action performed method will display an HTML help page found in the resources directory.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelpAction

public HelpAction(ProblemSolver parent_arg)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
This action performed method will display an HTML help page found in the resources directory. It also registers an event handler for the hyperlinks in the page. This method could be modified very easily to provide online help rather than local help.
Overrides:
actionPerformed in class javax.swing.AbstractAction