protected String getJsHelpMouseHandler(I_CmsWidgetDialog widgetDialog, String key, String value) {

        String jsShow;
        String jsHide;
        String keyHide;
        if (widgetDialog.useNewStyle()) {
            // Administration style
            jsShow = "sMH";
            jsHide = "hMH";
            keyHide = "'" + key + "'";
        } else {
            // Dialog style
            jsShow = "showHelpText";
            jsHide = "hideHelpText";
            keyHide = "";
        }
        StringBuffer result = new StringBuffer(128);
        result.append(" onmouseover=\"");
        result.append(jsShow);
        result.append("('");
        result.append(key);
        if (!widgetDialog.useNewStyle()) {
            result.append("', '");
            result.append(value);
        }
        result.append("');\" onmouseout=\"");
        result.append(jsHide);
        result.append("(");
        result.append(keyHide);
        result.append(");\"");

        return result.toString();
    }
protected String getJsHelpMouseHandler ( I_CmsWidgetDialog widgetDialog , String key , String value ) { String jsShow ; String jsHide ; String keyHide ; if ( widgetDialog . useNewStyle ( ) ) { jsShow = "sMH" ; jsHide = "hMH" ; keyHide = "'" + key + "'" ; } else { jsShow = "showHelpText" ; jsHide = "hideHelpText" ; keyHide = "" ; } StringBuffer result = new StringBuffer ( 128 ) ; result . append ( " onmouseover=\"" ) ; result . append ( jsShow ) ; result . append ( "('" ) ; result . append ( key ) ; if ( ! widgetDialog . useNewStyle ( ) ) { result . append ( "', '" ) ; result . append ( value ) ; } result . append ( "');\" onmouseout=\"" ) ; result . append ( jsHide ) ; result . append ( "(" ) ; result . append ( keyHide ) ; result . append ( ");\"" ) ; return result . toString ( ) ; }
Returns the HTML for the JavaScript mouse handlers that show / hide the help text.<p>

This is required since the handler differs between the "Dialog" and the "Administration" mode.<p>

@param widgetDialog the dialog where the widget is displayed on
@param key the key for the help bubble
@param value the localized help text, has to be an escaped String for JS usage, is only used in XML content editor

@return the HTML for the JavaScript mouse handlers that show / hide the help text