1.1 --- a/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java Wed Aug 14 18:58:39 2013 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java Wed Aug 14 21:44:51 2013 -0700 1.3 @@ -123,15 +123,20 @@ 1.4 /** 1.5 * {@inheritDoc} 1.6 */ 1.7 - protected void addProfilesList(Content profileSummary, String profilesTableSummary, 1.8 - Content body) { 1.9 - Content table = HtmlTree.TABLE(HtmlStyle.overviewSummary, 0, 3, 0, profilesTableSummary, 1.10 - getTableCaption(profileSummary)); 1.11 - table.addContent(getSummaryTableHeader(profileTableHeader, "col")); 1.12 - Content tbody = new HtmlTree(HtmlTag.TBODY); 1.13 - addProfilesList(tbody); 1.14 - table.addContent(tbody); 1.15 - Content div = HtmlTree.DIV(HtmlStyle.contentContainer, table); 1.16 + protected void addProfilesList(Content profileSummary, Content body) { 1.17 + Content h2 = HtmlTree.HEADING(HtmlTag.H2, profileSummary); 1.18 + Content profilesDiv = HtmlTree.DIV(h2); 1.19 + Content ul = new HtmlTree(HtmlTag.UL); 1.20 + String profileName; 1.21 + for (int i = 1; i < configuration.profiles.getProfileCount(); i++) { 1.22 + profileName = Profile.lookup(i).name; 1.23 + Content profileLinkContent = getTargetProfileLink("classFrame", 1.24 + new StringContent(profileName), profileName); 1.25 + Content li = HtmlTree.LI(profileLinkContent); 1.26 + ul.addContent(li); 1.27 + } 1.28 + profilesDiv.addContent(ul); 1.29 + Content div = HtmlTree.DIV(HtmlStyle.contentContainer, profilesDiv); 1.30 body.addContent(div); 1.31 } 1.32 1.33 @@ -151,31 +156,6 @@ 1.34 } 1.35 1.36 /** 1.37 - * Adds list of profiles in the index table. Generate link to each profile. 1.38 - * 1.39 - * @param tbody the documentation tree to which the list will be added 1.40 - */ 1.41 - protected void addProfilesList(Content tbody) { 1.42 - for (int i = 1; i < configuration.profiles.getProfileCount(); i++) { 1.43 - String profileName = Profile.lookup(i).name; 1.44 - Content profileLinkContent = getTargetProfileLink("classFrame", 1.45 - new StringContent(profileName), profileName); 1.46 - Content tdProfile = HtmlTree.TD(HtmlStyle.colFirst, profileLinkContent); 1.47 - HtmlTree tdSummary = new HtmlTree(HtmlTag.TD); 1.48 - tdSummary.addStyle(HtmlStyle.colLast); 1.49 - tdSummary.addContent(getSpace()); 1.50 - HtmlTree tr = HtmlTree.TR(tdProfile); 1.51 - tr.addContent(tdSummary); 1.52 - if (i % 2 == 0) { 1.53 - tr.addStyle(HtmlStyle.altColor); 1.54 - } else { 1.55 - tr.addStyle(HtmlStyle.rowColor); 1.56 - } 1.57 - tbody.addContent(tr); 1.58 - } 1.59 - } 1.60 - 1.61 - /** 1.62 * Adds list of packages in the index table. Generate link to each package. 1.63 * 1.64 * @param packages Packages to which link is to be generated