Class Help
java.lang.Object
org.netbeans.api.javahelp.Help
An implementation of the JavaHelp system.
Get the concrete instance using lookup.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
Add a change listener for when help sets change.abstract Boolean
Test whether a given ID is valid in some known helpset.abstract void
Remove a change listener.void
showHelp
(org.openide.util.HelpCtx ctx) Shows help.abstract void
showHelp
(org.openide.util.HelpCtx ctx, boolean showmaster) Shows help.
-
Constructor Details
-
Help
protected Help()constructor for subclasses
-
-
Method Details
-
isValidID
Test whether a given ID is valid in some known helpset. In lazy mode, should be a fast operation; if in doubt say you do not know.- Parameters:
id
- the ID to check for validityforce
- if false, do not do too much work (be lazy) and if necessary return null; if true, must return non-null (meaning the call may block loading helpsets)- Returns:
- whether it is valid, if this is known; else may be null (only permitted when force is false)
-
showHelp
public void showHelp(org.openide.util.HelpCtx ctx) Shows help.Note that for basic usage it may suffice to call
HelpCtx.display()
, avoiding any direct dependency on this module.- Parameters:
ctx
- help context
-
showHelp
public abstract void showHelp(org.openide.util.HelpCtx ctx, boolean showmaster) Shows help.- Parameters:
ctx
- help contextshowmaster
- whether to force the master helpset to be shown (full navigators) even though the supplied ID only applies to one subhelpset
-
addChangeListener
Add a change listener for when help sets change.- Parameters:
l
- the listener to add
-
removeChangeListener
Remove a change listener.- Parameters:
l
- the listener to remove
-