hirondelle.stocks.help
Class HelpAction
Object
AbstractAction
HelpAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public final class HelpAction
- extends AbstractAction
Display the help system for the application.
Display one of table of contents, index, or search tab, according
to argument passed to the constructor. This implementation uses
Sun's JavaHelp tool.
This action activates the Help key (often F1) for this application.
When the help key is pressed, the help system's table of contents is displayed.
This action is unusual in that it corresponds to more than one menu item
(Contents, Index, and Search).
Note: the displayed JavaHelp screen is not centered; it is left as is,
since the JavaHelp GUI is often cut off at the bottom anyway, and centering would
make this problem worse.
- See Also:
- Serialized Form
|
Nested Class Summary |
static class |
HelpAction.View
Enumeration for the style of presentation of the the Help system. |
HelpAction
public HelpAction(JFrame aFrame,
String aText,
int aMnemonicKeyEvent,
Icon aIcon,
HelpAction.View aView)
- Constructor.
- Parameters:
aFrame - parent window to which the help window is attachedaText - name of the menu item for this help actionaMnemonicKeyEvent - mnemonic for aTextaIcon - possibly-null graphic to be displayed alongside the text, or
in a toolbaraView - determines which help window is to be displayed: Contents, Index,
or Search
actionPerformed
public void actionPerformed(ActionEvent event)
Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53