Package org.graffiti.help
Class HelpContext
java.lang.Object
org.graffiti.help.HelpContext
public class HelpContext extends Object
Represents the help context of an algorithm or a gui element in the editor.
- Version:
- $Revision: 1.6 $
- Author:
- flierl
-
Constructor Summary
Constructors Constructor Description HelpContext(Class<?> clazz)Constructs a new help context from the given class.HelpContext(String helpID)Constructs a new help context from the given helpID.HelpContext(URL helpURL)Constructs a new help context from the given URL. -
Method Summary
Modifier and Type Method Description HelpContextfindHelp(JComponent comp)Returns a help context for the given gui component.StringgetHelpID()Returns the java help id of this help context.URLgetHelpURL()Returns the url of this help context.StringtoString()Returns a human readable string of this help context.
-
Constructor Details
-
HelpContext
Constructs a new help context from the given URL.- Parameters:
helpURL- the URL to create a help context from.
-
HelpContext
Constructs a new help context from the given helpID.- Parameters:
helpID- the javahelp help id.
-
HelpContext
Constructs a new help context from the given class.- Parameters:
clazz- the class to construct a help context from.
-
-
Method Details
-
getHelpID
Returns the java help id of this help context.- Returns:
- the java help id of thie help context.
-
getHelpURL
Returns the url of this help context.- Returns:
- the url of this help context.
-
findHelp
Returns a help context for the given gui component.- Parameters:
comp- the component to search the help context for.- Returns:
- DOCUMENT ME!
-
toString
Returns a human readable string of this help context. This method is for debugging purposes only.
-