src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java Fri Jan 18 02:47:34 2013
--- new/src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java Fri Jan 18 02:47:34 2013
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 1997, 2012, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 27,36 ****
--- 27,37 ----
import java.io.*;
import java.util.*;
import com.sun.javadoc.*;
+ import com.sun.tools.javac.jvm.Profile;
import com.sun.tools.doclets.formats.html.markup.*;
import com.sun.tools.doclets.internal.toolkit.*;
import com.sun.tools.doclets.internal.toolkit.util.*;
/**
*** 120,129 ****
--- 121,145 ----
}
/**
* {@inheritDoc}
*/
+ protected void addProfilesList(String profileSummary, String profilesTableSummary,
+ Content body) {
+ Content table = HtmlTree.TABLE(HtmlStyle.overviewSummary, 0, 3, 0, profilesTableSummary,
+ getTableCaption(profileSummary));
+ table.addContent(getSummaryTableHeader(profileTableHeader, "col"));
+ Content tbody = new HtmlTree(HtmlTag.TBODY);
+ addProfilesList(tbody);
+ table.addContent(tbody);
+ Content div = HtmlTree.DIV(HtmlStyle.contentContainer, table);
+ body.addContent(div);
+ }
+
+ /**
+ * {@inheritDoc}
+ */
protected void addPackagesList(PackageDoc[] packages, String text,
String tableSummary, Content body) {
Content table = HtmlTree.TABLE(HtmlStyle.overviewSummary, 0, 3, 0, tableSummary,
getTableCaption(text));
table.addContent(getSummaryTableHeader(packageTableHeader, "col"));
*** 133,142 ****
--- 149,183 ----
Content div = HtmlTree.DIV(HtmlStyle.contentContainer, table);
body.addContent(div);
}
/**
+ * Adds list of profiles in the index table. Generate link to each profile.
+ *
+ * @param tbody the documentation tree to which the list will be added
+ */
+ protected void addProfilesList(Content tbody) {
+ for (int i = 1; i < configuration.profiles.getProfileCount(); i++) {
+ String profileName = Profile.lookup(i).name;
+ Content profileLinkContent = getTargetProfileLink("classFrame",
+ new StringContent(profileName), profileName);
+ Content tdProfile = HtmlTree.TD(HtmlStyle.colFirst, profileLinkContent);
+ HtmlTree tdSummary = new HtmlTree(HtmlTag.TD);
+ tdSummary.addStyle(HtmlStyle.colLast);
+ tdSummary.addContent(getSpace());
+ HtmlTree tr = HtmlTree.TR(tdProfile);
+ tr.addContent(tdSummary);
+ if (i % 2 == 0) {
+ tr.addStyle(HtmlStyle.altColor);
+ } else {
+ tr.addStyle(HtmlStyle.rowColor);
+ }
+ tbody.addContent(tr);
+ }
+ }
+
+ /**
* Adds list of packages in the index table. Generate link to each package.
*
* @param packages Packages to which link is to be generated
* @param tbody the documentation tree to which the list will be added
*/
src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File