src/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.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/AbstractPackageIndexWriter.java Fri Jan 18 02:47:17 2013
--- new/src/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java Fri Jan 18 02:47:16 2013
*** 1,7 ****
--- 1,7 ----
/*
! * Copyright (c) 1998, 2012, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 1998, 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
*** 148,158 ****
--- 148,171 ----
*/
protected void addIndexContents(PackageDoc[] packages, String text,
String tableSummary, Content body) {
if (packages.length > 0) {
Arrays.sort(packages);
! addAllClassesLink(body);
! HtmlTree div = new HtmlTree(HtmlTag.DIV);
+ div.addStyle(HtmlStyle.indexHeader);
+ addAllClassesLink(div);
+ if (configuration.showProfiles) {
+ addAllProfilesLink(div);
+ }
+ body.addContent(div);
+ if (configuration.showProfiles) {
+ String profileSummary = configuration.getText("doclet.Profiles");
+ String profilesTableSummary = configuration.getText("doclet.Member_Table_Summary",
+ configuration.getText("doclet.Profile_Summary"),
+ configuration.getText("doclet.profiles"));
+ addProfilesList(profileSummary, profilesTableSummary, body);
+ }
addPackagesList(packages, text, tableSummary, body);
}
}
/**
*** 180,191 ****
--- 193,223 ----
Content li = HtmlTree.LI(HtmlStyle.navBarCell1Rev, overviewLabel);
return li;
}
/**
- * Do nothing. This will be overridden in PackageIndexFrameWriter.
+ *
+ * @param div the document tree to which the all classes link will be added
+ */
+ protected void addAllClassesLink(Content div) {
+ }
+
+ /**
+ * Do nothing. This will be overridden.
+ *
+ * @param div the document tree to which the all profiles link will be added
+ */
+ protected void addAllProfilesLink(Content div) {
+ }
+
+ /**
+ * Do nothing. This will be overridden.
*
! * @param body the document tree to which the all classes link will be added
! * @param profileSummary the profile summary heading
+ * @param profilesTableSummary the profiles table summary information
+ * @param body the content tree to which the profiles list will be added
*/
! protected void addAllClassesLink(Content body) {
! protected void addProfilesList(String profileSummary, String profilesTableSummary,
+ Content body) {
}
}
src/share/classes/com/sun/tools/doclets/formats/html/AbstractPackageIndexWriter.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File