|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jstatcom.component.JHelpContextMgr
public final class JHelpContextMgr
Manages the mapping between IDs for context sensitive help topics and the
respective components. The mapping is stored in an XML file
help_context.xml. Components that should use context
sensitive help must register with the JHelpContextMgr. This
class is used to maintain all help IDs in a single place that can be edited
without changing the code. Components are identified via their classname.
| Nested Class Summary | |
|---|---|
static class |
JHelpContextMgr.ContextID
Inner class for storing mappings as XML elements. |
| Field Summary | |
|---|---|
static java.lang.String |
helpIDFile
|
static javolution.xml.XmlFormat<JHelpContextMgr> |
JHelpContextMgr_XML
XML format field for (de)serialization. |
| Method Summary | |
|---|---|
java.util.Iterator<java.lang.String> |
compNames()
Gets an itertor of all available keys. |
java.lang.String |
getID(java.lang.Object key)
Gets the ID according to the component name. |
static void |
register(java.awt.Component comp)
Retrieves the helpID from the stored map for comp
according to the classname of that Component and sets the
helpID for context sensitive help. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String helpIDFile
public static final javolution.xml.XmlFormat<JHelpContextMgr> JHelpContextMgr_XML
| Method Detail |
|---|
public static void register(java.awt.Component comp)
comp
according to the classname of that Component and sets the
helpID for context sensitive help.
comp - the component to set the stored helpID for
java.lang.IllegalArgumentException - if (comp == null)public java.util.Iterator<java.lang.String> compNames()
public java.lang.String getID(java.lang.Object key)
key - the name of a component
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||