/** * Returns the dynamic HelpID for a object. The method passes the arguments * into all registered CSH manageres to obtain dynamic HelpID. If no manager * provides HelpID for the object, the static HelpID is returned or traverse * to the component's ancestors for help. * @exception IllegalArgumentException comp is neither <code>Component</code> nor * <code>MenuItem</code>. * @since 2.0 */ public static String getHelpIDString(Object comp, AWTEvent evt) { if (comp == null) { return null; } String helpID = _getHelpIDString(comp, evt); if (helpID == null) { helpID = _getHelpIDString(comp); } if (helpID == null) { helpID = getHelpIDString(getParent(comp), evt); } return helpID; }
return (getHelpSet(getParent(comp), evt));