|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.help.HelpSys
public class HelpSys
This utility class supports the java help system.
It contains exclusively static methods and can hold aHelpBroker singleton from which this class
receives its functionallity.
This class can be used in all components which have a context sensitive help.
| Constructor Summary | |
|---|---|
HelpSys()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HelpSys()
| Method Detail |
|---|
public static void add(javax.help.HelpSet helpSet)
helpSet - the help set to be addedpublic static javax.help.HelpBroker getHelpBroker()
nullpublic 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 applied
true if the help was enabled, otherwise false.
IllegalArgumentException - if the given component is null
IllegalArgumentException - 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 applied
true if the help key was enabled, otherwise false.
IllegalArgumentException - if the given component is null
IllegalArgumentException - 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 applied
true 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||