src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageIndexWriter.java
changeset 50167 cc705c956798
parent 49551 0d4786e42471
child 51797 3efead10e303
equal deleted inserted replaced
50166:1d683e243d8d 50167:cc705c956798
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 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
   111             Table table =  new Table(configuration.htmlVersion, HtmlStyle.overviewSummary)
   111             Table table =  new Table(configuration.htmlVersion, HtmlStyle.overviewSummary)
   112                     .setSummary(tableSummary)
   112                     .setSummary(tableSummary)
   113                     .setHeader(getPackageTableHeader())
   113                     .setHeader(getPackageTableHeader())
   114                     .setColumnStyles(HtmlStyle.colFirst, HtmlStyle.colLast)
   114                     .setColumnStyles(HtmlStyle.colFirst, HtmlStyle.colLast)
   115                     .setDefaultTab(resources.getText("doclet.All_Packages"))
   115                     .setDefaultTab(resources.getText("doclet.All_Packages"))
   116                     .setTabScriptVariable("groups")
   116                     .setTabScript(i -> "show(" + i + ");")
   117                     .setTabScript(i -> "showGroups(" + i + ");")
       
   118                     .setTabId(i -> (i == 0) ? "t0" : ("t" + (1 << (i - 1))));
   117                     .setTabId(i -> (i == 0) ? "t0" : ("t" + (1 << (i - 1))));
   119 
   118 
   120             // add the tabs in command-line order
   119             // add the tabs in command-line order
   121             for (String groupName : configuration.group.getGroupList()) {
   120             for (String groupName : configuration.group.getGroupList()) {
   122                 Set<PackageElement> groupPackages = groupPackageMap.get(groupName);
   121                 Set<PackageElement> groupPackages = groupPackageMap.get(groupName);