Documentation of 'com.jstatcom.component.JHelpContextMgr' Java class
JHelpContextMgr
com.jstatcom.component

Class JHelpContextMgr



  • public final class JHelpContextMgr
    extends java.lang.Object
    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

      Nested Classes 
      Modifier and Type Class and Description
      static class  JHelpContextMgr.ContextID
      Inner class for storing mappings as XML elements.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      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
    • Method Detail

      • register

        public 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.
        Parameters:
        comp - the component to set the stored helpID for
        Throws:
        java.lang.IllegalArgumentException - if (comp == null)
      • compNames

        public java.util.Iterator<java.lang.String> compNames()
        Gets an itertor of all available keys.
        Returns:
        the names of the components that are currently mapped
      • getID

        public java.lang.String getID(java.lang.Object key)
        Gets the ID according to the component name.
        Parameters:
        key - the name of a component
        Returns:
        the mapped helpID

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.