javax.help

Class CSH.DisplayHelpFromFocus

Enclosing Class:
CSH
Implemented Interfaces:
ActionListener

public static class CSH.DisplayHelpFromFocus
extends java.lang.Object
implements ActionListener

An ActionListener that displays the help of the object that currently has focus. This method is used to enable HelpKey action listening for components other than the RootPane. This listener determines if the object with the current focus has a helpID. If it does, the helpID is displayed, otherwise the helpID on the action's source is displayed (if one exists).
See Also:
HelpBroker.enableHelpKey

Constructor Summary

DisplayHelpFromFocus(HelpBroker hb)
DisplayHelpFromFocus(HelpSet hs, String presentation, String presentationName)
Create a DisplayHelpFromFocus actionListener for a given HelpSet.

Method Summary

void
actionPerformed(ActionEvent e)

Constructor Details

DisplayHelpFromFocus

public DisplayHelpFromFocus(HelpBroker hb)

DisplayHelpFromFocus

public DisplayHelpFromFocus(HelpSet hs,
                            String presentation,
                            String presentationName)
Create a DisplayHelpFromFocus actionListener for a given HelpSet. Display the results in specific Presentation of given PresentationName.
Parameters:
hs - A valid HelpSet.

Method Details

actionPerformed

public void actionPerformed(ActionEvent e)