src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ModuleIndexWriter.java
changeset 50167 cc705c956798
parent 49551 0d4786e42471
child 51797 3efead10e303
equal deleted inserted replaced
50166:1d683e243d8d 50167:cc705c956798
     1 /*
     1 /*
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   129             Table table =  new Table(configuration.htmlVersion, HtmlStyle.overviewSummary)
   129             Table table =  new Table(configuration.htmlVersion, HtmlStyle.overviewSummary)
   130                     .setSummary(tableSummary)
   130                     .setSummary(tableSummary)
   131                     .setHeader(header)
   131                     .setHeader(header)
   132                     .setColumnStyles(HtmlStyle.colFirst, HtmlStyle.colLast)
   132                     .setColumnStyles(HtmlStyle.colFirst, HtmlStyle.colLast)
   133                     .setDefaultTab(resources.getText("doclet.All_Modules"))
   133                     .setDefaultTab(resources.getText("doclet.All_Modules"))
   134                     .setTabScriptVariable("groups")
   134                     .setTabScript(i -> "show(" + i + ");")
   135                     .setTabScript(i -> "showGroups(" + i + ");")
       
   136                     .setTabId(i -> (i == 0) ? "t0" : ("t" + (1 << (i - 1))));
   135                     .setTabId(i -> (i == 0) ? "t0" : ("t" + (1 << (i - 1))));
   137 
   136 
   138             // add the tabs in command-line order
   137             // add the tabs in command-line order
   139             for (String groupName : configuration.group.getGroupList()) {
   138             for (String groupName : configuration.group.getGroupList()) {
   140                 Set<ModuleElement> groupModules = groupModuleMap.get(groupName);
   139                 Set<ModuleElement> groupModules = groupModuleMap.get(groupName);