public class HelpSys extends Object
HelpBroker
singleton from which this class
receives its functionallity.
This class can be used in all components which have a context sensitive help.Constructor and Description |
---|
HelpSys() |
Modifier and Type | Method and Description |
---|---|
static void |
add(javax.help.HelpSet helpSet)
Adds the given help set to the current helpset.
|
static void |
dispose()
Disposes the application help system.
|
static boolean |
enableHelp(Component component,
String helpId)
Enables help for a component.
|
static boolean |
enableHelpKey(Component component,
String helpId)
Enables the Help key on a component.
|
static boolean |
enableHelpOnButton(Component component,
String helpId)
Enables help for a component.
|
static javax.help.HelpBroker |
getHelpBroker()
Gets the held help broker
|
static javax.help.HelpSet |
getHelpSet()
Gets the help set from the held help broker
|
static boolean |
isInitialized() |
static boolean |
isValidID(String id) |
static void |
showTheme(String helpId)
If the help system is initialised this method shows the given help theme.
|
public static void add(javax.help.HelpSet helpSet)
helpSet
- the help set to be addedpublic static javax.help.HelpBroker getHelpBroker()
null
public static javax.help.HelpSet getHelpSet()
null
public static boolean enableHelp(Component component, String helpId)
component
- the component to which the help id should appliedhelpId
- the help id to be appliedtrue
if the help was enabled, otherwise false.IllegalArgumentException
- if the given component is nullIllegalArgumentException
- if the given help id is nullHelpBroker.enableHelp(Component, String, HelpSet)
public static boolean enableHelpKey(Component component, String helpId)
component
- the component to which the help id should appliedhelpId
- the help id to be appliedtrue
if the help key was enabled, otherwise false.IllegalArgumentException
- if the given component is nullIllegalArgumentException
- if the given help id is nullHelpBroker.enableHelpKey(Component, String, HelpSet)
public static boolean enableHelpOnButton(Component component, String helpId)
component
- the component to which the help id should appliedhelpId
- the help id to be appliedtrue
if the help was enabled, otherwise false.IllegalArgumentException
- if the component is not a javax.swing.AbstractButton or a java.awt.Button or the
given component is nullHelpBroker.enableHelpOnButton(Component, String, HelpSet)
public static boolean isValidID(String id)
public static void showTheme(String helpId)
helpId
- the help themepublic static boolean isInitialized()
public static void dispose()
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.