Appendix C. The JavaHelp API
This appendix describes the classes in Version 1.1 of the Java
programming libraries (“packages”)
javax.help
and
javax.help.event
.
Classes in Package javax.help
BadIDException
This exception is thrown when creating an ID with invalid arguments
or using an ID that does not exist in the specified HelpSet. The
getID( )
method returns the offending ID.
public classBadIDException
extends IllegalArgumentException {// Constructors
publicBadIDException
(Stringmsg
, Mapmap
, Stringid
, HelpSeths
)// Instance Methods
public HelpSetgetHelpSet
( ) public StringgetID
( ) public MapgetMap
( ) }
CSH
This Context Sensitive Help (CSH) class provides many static
convenience routines that help retrofit existing components with
JavaHelp-specific properties. You can also create instances of its
three inner classes for simple help-event handling. The
CSH.DisplayHelpAfterTracking
class, in particular,
supports the field-level context sensitive help events.
public classCSH
{// Inner Classes
public static classDisplayHelpAfterTracking
implements ActionListener public static classDisplayHelpFromFocus
implements ActionListener public static classDisplayHelpFromSource
implements ActionListener// Constructors
publicCSH
( )// Static Methods
public static StringgetHelpIDString
(Componentcomp
) public static StringgetHelpIDString
(MenuItemcomp
) public static HelpSetgetHelpSet
(Componentcomp
) public static HelpSetgetHelpSet
(MenuItemcomp
) public static voidsetHelpIDString ...
Get Creating Effective JavaHelp now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.