code: public void generateTableTabTypesScript(Map<String,Integer> typeMap,
              Set<? extends TableTabTypes> tabTypes, String elementName) {
          String sep = "";
          StringBuilder vars = new StringBuilder("var ");
          vars.append(elementName)
                  .append(" = {");
          for (Map.Entry<String,Integer> entry : typeMap.entrySet()) {
              vars.append(sep);
              sep = ",";
              vars.append("\"")
                      .append(entry.getKey())
                      .append("\":")
                      .append(entry.getValue());
          }
          vars.append("};").append(DocletConstants.NL);
          sep = "";
          vars.append("var tabs = {");
          for (TableTabTypes entry : tabTypes) {
              vars.append(sep);
              sep = ",";
              vars.append(entry.tableTabs().value())
                      .append(":")
                      .append("[")
                      .append("\"")
                      .append(entry.tableTabs().tabId())
                      .append("\"")
                      .append(sep)
                      .append("\"")
                      .append(configuration.getText(entry.tableTabs().resourceKey()))
                      .append("\"]");
          }
          vars.append("};")
                  .append(DocletConstants.NL);
          addStyles(HtmlStyle.altColor, vars);
          addStyles(HtmlStyle.rowColor, vars);
          addStyles(HtmlStyle.tableTab, vars);
          addStyles(HtmlStyle.activeTableTab, vars);
          script.addContent(new RawHtml(vars));
      }
docs: Generated javascript variables for the document.
  
  @param typeMap map comprising of method and type relationship
  @param tabTypes set comprising of all table tab types for this class
  @param elementName packages or methods table for which tabs need to be displayed