com.sun.tools.doclets.formats.html
Class AllClassesFrameWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.PrintWriter
          extended by com.sun.tools.doclets.formats.html.markup.HtmlWriter
              extended by com.sun.tools.doclets.formats.html.markup.HtmlDocWriter
                  extended by com.sun.tools.doclets.formats.html.HtmlDocletWriter
                      extended by com.sun.tools.doclets.formats.html.AllClassesFrameWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class AllClassesFrameWriter
extends HtmlDocletWriter

Generate the file with list of all the classes in this run. This page will be used in the left-hand bottom frame, when "All Classes" link is clicked in the left-hand top frame. The name of the generated file is "allclasses-frame.html".


Field Summary
protected  IndexBuilder indexbuilder
          Index of all the classes.
static java.lang.String OUTPUT_FILE_NAME_FRAMES
          The name of the output file with frames
static java.lang.String OUTPUT_FILE_NAME_NOFRAMES
          The name of the output file without frames
 
Fields inherited from class com.sun.tools.doclets.formats.html.HtmlDocletWriter
configuration, displayLength, filename, path, relativePath, relativepathNoSlash
 
Fields inherited from class com.sun.tools.doclets.formats.html.markup.HtmlWriter
fileseparator, htmlFilename, winTitle
 
Fields inherited from class java.io.PrintWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
AllClassesFrameWriter(ConfigurationImpl configuration, java.lang.String filename, IndexBuilder indexbuilder)
          Construct AllClassesFrameWriter object.
 
Method Summary
static void generate(ConfigurationImpl configuration, IndexBuilder indexbuilder)
          Create AllClassesFrameWriter object.
protected  void generateAllClassesFile(boolean wantFrames)
          Print all the classes in table format in the file.
protected  void generateContents(java.util.List<Doc> classlist, boolean wantFrames)
          Given a list of classes, generate links for each class or interface.
protected  void printAllClasses(boolean wantFrames)
          Use the sorted index of all the classes and print all the classes.
protected  void printAllClassesTableFooter()
          Print Html closing table tag.
protected  void printAllClassesTableHeader()
          Print the heading "All Classes" and also print Html table tag.
 
Methods inherited from class com.sun.tools.doclets.formats.html.HtmlDocletWriter
anchor, commentTagsToString, configuration, frame, frameEnd, frameSet, frameSetEnd, getAnchor, getCrossClassLink, getCrossPackageLink, getDocLink, getDocLink, getLink, getPackageLink, getPackageLink, getPreQualifiedClassLink, getTagletWriterInstance, getTypeParameterLinks, isClassLinkable, isCoreClass, italicsClassName, navCellEnd, navCellRevStart, navCellStart, navDetail, navHideLists, navLinkClass, navLinkClassIndex, navLinkClassUse, navLinkContents, navLinkDeprecated, navLinkHelp, navLinkIndex, navLinkMainTree, navLinkNext, navLinkNext, navLinkPackage, navLinkPackage, navLinkPrevious, navLinkPrevious, navLinks, navLinkTree, navShowLists, navShowLists, navSummary, pathString, pathString, pathToClass, printBottom, printDocLink, printDocLink, printHtmlHeader, printIndexHeading, printInlineComment, printInlineComment, printInlineDeprecatedComment, printInlineDeprecatedComment, printLink, printNoFramesTargetHyperLink, printPackageLink, printPackageLink, printPreQualifiedClassLink, printPreQualifiedStrongClassLink, printQualifiedClassLink, printSrcLink, printStyleSheetProperties, printSummaryComment, printSummaryComment, printSummaryDeprecatedComment, printSummaryDeprecatedComment, printSummaryDetailLinks, printTags, printTagsInfoFooter, printTagsInfoHeader, printTargetPackageLink, printText, printText, printText, printTop, printUserHeaderFooter, removeNonInlineHtmlTags, replace, replaceDocRootDir, seeTagToString, strongText, strongText, strongText, summaryRow, summaryRowEnd, tableHeaderEnd, tableHeaderStart, tableHeaderStart, tableHeaderStart, tableHeaderStart, tableIndexDetail, tableIndexSummary, tableInheritedHeaderEnd, tableInheritedHeaderStart, tableUseInfoHeaderStart, tdIndex, writeAnnotationInfo, writeAnnotationInfo, writeAnnotationInfo
 
Methods inherited from class com.sun.tools.doclets.formats.html.markup.HtmlDocWriter
getHyperLink, getHyperLink, getHyperLink, getHyperLink, getPkgName, printBodyHtmlEnd, printFooter, printFrameFooter, printFramesetHeader, printFramesetHeader, printHyperLink, printHyperLink, printHyperLink, printHyperLink, printNbsps, printPkgName, spaces, today
 
Methods inherited from class com.sun.tools.doclets.formats.html.markup.HtmlWriter
address, addressEnd, aEnd, aName, anchor, anchor, blockquote, blockquoteEnd, body, bodyEnd, br, center, centerEnd, code, codeEnd, codeText, commentEnd, commentStart, dd, ddEnd, dl, dlEnd, dt, em, emEnd, font, fontEnd, fontNoNewLine, fontSizeStyle, fontStyle, getCode, getCodeEnd, getFontColor, getFontEnd, getStrong, getStrongEnd, getWindowTitleOnload, h1, h1, h1End, h2, h2, h2End, h3, h3, h3End, h4, h4, h4End, h5, h5End, head, headEnd, hr, hr, hr, html, htmlEnd, img, italic, italicEnd, italics, italicsText, li, li, link, menu, menuEnd, noFrames, noFramesEnd, noScript, noScriptEnd, p, pEnd, pre, preEnd, preNoNewLine, printWinTitleScript, script, scriptEnd, space, strong, strong, strongEnd, sup, supEnd, table, table, table, table, tableEnd, td, tdAlign, tdAlignRowspan, tdAlignVAlign, tdAlignVAlignRowspan, tdBgcolorStyle, tdColspan, tdColspanBgcolorStyle, tdEnd, tdNowrap, tdVAlign, tdVAlignClass, tdWidth, thAlign, thAlignColspan, thAlignNowrap, thEnd, title, title, titleEnd, tr, trAlignVAlign, trBgcolor, trBgcolorStyle, trEnd, ul, ulEnd
 
Methods inherited from class java.io.PrintWriter
append, append, append, checkError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OUTPUT_FILE_NAME_FRAMES

public static final java.lang.String OUTPUT_FILE_NAME_FRAMES
The name of the output file with frames

See Also:
Constant Field Values

OUTPUT_FILE_NAME_NOFRAMES

public static final java.lang.String OUTPUT_FILE_NAME_NOFRAMES
The name of the output file without frames

See Also:
Constant Field Values

indexbuilder

protected IndexBuilder indexbuilder
Index of all the classes.

Constructor Detail

AllClassesFrameWriter

public AllClassesFrameWriter(ConfigurationImpl configuration,
                             java.lang.String filename,
                             IndexBuilder indexbuilder)
                      throws java.io.IOException
Construct AllClassesFrameWriter object. Also initilises the indexbuilder variable in this class.

Throws:
java.io.IOException
DocletAbortException
Method Detail

generate

public static void generate(ConfigurationImpl configuration,
                            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.

Parameters:
indexbuilder - IndexBuilder object for all classes index.
Throws:
DocletAbortException

generateAllClassesFile

protected void generateAllClassesFile(boolean wantFrames)
                               throws java.io.IOException
Print all the classes in table format in the file.

Parameters:
wantFrames - True if we want frames.
Throws:
java.io.IOException

printAllClasses

protected void printAllClasses(boolean wantFrames)
Use the sorted index of all the classes and print all the classes.

Parameters:
wantFrames - True if we want frames.

generateContents

protected void generateContents(java.util.List<Doc> classlist,
                                boolean wantFrames)
Given a list of classes, generate links for each class or interface. If the class kind 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.

Parameters:
classlist - Sorted list of classes.
wantFrames - True if we want frames.

printAllClassesTableHeader

protected void printAllClassesTableHeader()
Print the heading "All Classes" and also print Html table tag.


printAllClassesTableFooter

protected void printAllClassesTableFooter()
Print Html closing table tag.