| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.util.HelpCtx
Provides help for any window or other feature in the system.
 It is designed to be JavaHelp-compatible and to use the same tactics when
 assigning help to JComponent instances.
| Field Summary | |
static HelpCtx | 
DEFAULT_HELP
Default help page.  | 
| Constructor Summary | |
HelpCtx(Class clazz)
Create a help context by class.  | 
|
HelpCtx(String helpID)
Create a help context by tag.  | 
|
HelpCtx(URL helpCtx)
Deprecated. Does not work nicely with JavaHelp.  | 
|
| Method Summary | |
 boolean | 
equals(Object o)
 | 
static HelpCtx | 
findHelp(Component comp)
Find the help ID for a component.  | 
 URL | 
getHelp()
Get a URL to the help page, if applicable.  | 
 String | 
getHelpID()
Get the ID of the help page, if applicable.  | 
 int | 
hashCode()
 | 
static void | 
setHelpIDString(JComponent comp,
                String helpID)
Set the help ID for a component.  | 
 String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
public static final HelpCtx DEFAULT_HELP
org.openide.util.HelpCtx.DEFAULT_HELP.| Constructor Detail | 
public HelpCtx(URL helpCtx)
helpCtx - URL to point help topublic HelpCtx(String helpID)
helpID - the JavaHelp ID of the helppublic HelpCtx(Class clazz)
clazz - the class to take the name from| Method Detail | 
public URL getHelp()
null if the target was specified by IDpublic String getHelpID()
null if specified by URLpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objectpublic String toString()
toString in class Object
public static void setHelpIDString(JComponent comp,
                                   String helpID)
comp - the visual component to associate help tohelpID - help ID, or null if the help ID should be removedpublic static HelpCtx findHelp(Component comp)
TopComponent.getHelpCtx() is called.
 If the component has help attached by setHelpIDString(javax.swing.JComponent, java.lang.String), it returns that.
 Otherwise it checks the parent component recursively.comp - the component to find help fornull)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||