Package jmri.util
Class HelpUtil
java.lang.Object
jmri.util.HelpUtil
Common utility methods for displaying JMRI help pages.
This class was created to contain common Java Help information but is now changed to use a web browser instead.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddHelpToComponent(Component component, String ref) static StringcreateStubFile(String helpKey, String locale) static voiddisplayHelpRef(String ref) static voidenableHelpOnButton(Component comp, String id) static ActiongetHelpAction(String name, Icon icon, String id) static JMenuAppend a help menu to the menu bar.static JMenumakeHelpMenu(String ref, boolean direct) static JMenuItemmakeHelpMenuItem(String ref) static voidopenWebPage(String url) static voidopenWindowsFile(File file) static booleanshowWebPage(String ref, String url)
-
Method Details
-
helpMenu
Append a help menu to the menu bar.- Parameters:
menuBar- the menu bar to add the help menu toref- context-sensitive help referencedirect- true if this call should complete the help menu by adding the general help- Returns:
- new Help menu, in case user wants to add more items or null if unable to create the help menu
-
makeHelpMenu
-
makeHelpMenuItem
-
addHelpToComponent
-
enableHelpOnButton
-
displayHelpRef
-
createStubFile
- Throws:
IOException
-
openWindowsFile
- Throws:
JmriException
-
showWebPage
-
openWebPage
- Throws:
JmriException
-
getHelpAction
-