src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/PackageIndexWriter.java
equal
deleted
inserted
replaced
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); |