AbstractPackageWriterpublic abstract class AbstractPackageWriter extends HtmlStandardWriter Abstract class to generate file for each package contents. Sub-classed to
generate specific formats Frame and Non-Frame Output by
{@link PackageIndexFrameWriter} and {@link PackageIndexFrameWriter}
respectively. |
Fields Summary |
---|
PackageDoc | packagedocThe package under consideration. |
Constructors Summary |
---|
public AbstractPackageWriter(String path, String filename, PackageDoc packagedoc)Create appropriate directory for the package and also initilise the
relative path from this generated file to the current or
the destination directory.
super(path, filename,
DirectoryManager.getRelativePath(packagedoc.name()));
this.packagedoc = packagedoc;
|
Methods Summary |
---|
protected abstract void | generateClassListing()
| protected void | generatePackageFile()Generate Individual Package File with Class/Interface/Exceptions and
Error Listing with the appropriate links. Calls the methods from the
sub-classes to generate the file contents.
String pkgName = packagedoc.name();
String heading = getText("doclet.Window_Package",
Standard.configuration().windowtitle,
pkgName);
printHeader(heading);
printPackageHeader(pkgName);
generateClassListing();
printPackageDescription();
printPackageFooter();
printBodyHtmlEnd();
| protected void | navLinkPackage()Highlight "Package" in the navigation bar, as this is the package page.
navCellRevStart();
fontStyle("NavBarFont1Rev");
boldText("doclet.Package");
fontEnd();
navCellEnd();
| protected abstract void | printPackageDescription()
| protected abstract void | printPackageFooter()
| protected abstract void | printPackageHeader(java.lang.String head)
|
|