Methods Summary |
---|
public static void | generate(IndexBuilder indexbuilder)Create AllClassesFrameWriter object. Then use it to generate the
"allclasses-frame.html" file. Generate the file in the current or the
destination directory.
AllClassesFrameWriter allclassgen;
String filename = "allclasses-frame.html";
try {
allclassgen = new AllClassesFrameWriter(filename, indexbuilder);
allclassgen.generateAllClassesFile();
allclassgen.close();
} catch (IOException exc) {
Standard.configuration().standardmessage.
error("doclet.exception_encountered",
exc.toString(), filename);
throw new DocletAbortException();
}
|
protected void | generateAllClassesFile()Print all the classes in table format in the file.
String label = getText("doclet.All_Classes");
printHeader(label);
printAllClassesTableHeader();
printAllClasses();
printAllClassesTableFooter();
printBodyHtmlEnd();
|
protected void | generateContents(java.util.List classlist)Given a list of classes, generate links for each class or interface.
If the class lind is interface, print it in the italics font. Also all
links should target the right-hand frame. If clicked on any class name
in this page, appropriate class page should get opened in the right-hand
frame.
for (int i = 0; i < classlist.size(); i++) {
ClassDoc cd = (ClassDoc)(classlist.get(i));
if (!Util.isCoreClass(cd)) {
continue;
}
String label = italicsClassName(cd, false);
printTargetHyperLink(pathToClass(cd), "classFrame", label);
br();
}
|
protected void | printAllClasses()Use the sorted index of all the classes and print all the classes.
for (int i = 0; i < indexbuilder.elements().length; i++) {
Character unicode = (Character)((indexbuilder.elements())[i]);
generateContents(indexbuilder.getMemberList(unicode));
}
|
protected void | printAllClassesTableFooter()Print Html closing table tag.
fontEnd();
tdEnd();
trEnd();
tableEnd();
|
protected void | printAllClassesTableHeader()Print the heading "All Classes" and also print Html table tag.
fontSizeStyle("+1", "FrameHeadingFont");
boldText("doclet.All_Classes");
fontEnd();
br();
table();
tr();
tdNowrap();
fontStyle("FrameItemFont");
|