Java Doc for HtmlDocletWriter.java in  » 6.0-JDK-Modules-com.sun » tools » com » sun » tools » doclets » formats » html » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules com.sun » tools » com.sun.tools.doclets.formats.html 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.io.Writer
      java.io.PrintWriter
         com.sun.tools.doclets.formats.html.markup.HtmlWriter
            com.sun.tools.doclets.formats.html.markup.HtmlDocWriter
               com.sun.tools.doclets.formats.html.HtmlDocletWriter

All known Subclasses:   com.sun.tools.doclets.formats.html.AbstractIndexWriter,  com.sun.tools.doclets.formats.html.AllClassesFrameWriter,  com.sun.tools.doclets.formats.html.HelpWriter,  com.sun.tools.doclets.formats.html.PackageWriterImpl,  com.sun.tools.doclets.formats.html.AbstractPackageIndexWriter,  com.sun.tools.doclets.formats.html.FrameOutputWriter,  com.sun.tools.doclets.formats.html.AbstractTreeWriter,  com.sun.tools.doclets.formats.html.PackageFrameWriter,  com.sun.tools.doclets.formats.html.ConstantsSummaryWriterImpl,  com.sun.tools.doclets.formats.html.SubWriterHolderWriter,  com.sun.tools.doclets.formats.html.StylesheetWriter,
HtmlDocletWriter
public class HtmlDocletWriter extends HtmlDocWriter (Code)
Class for the Html Format Code Generation specific to JavaDoc. This Class contains methods related to the Html Code Generation which are used extensively while generating the entire documentation.
since:
   1.2
author:
   Atul M Dambalkar
author:
   Robert Field


Field Summary
public  ConfigurationImplconfiguration
     The global configuration information for this run.
public  intdisplayLength
     The display length used for indentation while generating the class page.
public  Stringfilename
     Name of the file getting generated.
public  Stringpath
     Platform-dependent directory path from the current or the destination directory to the file getting generated.
public  StringrelativePath
     Relative path from the file getting generated to the destination directory.
public  StringrelativepathNoSlash
     Same as relativepath, but normalized to never be empty or end with a slash.

Constructor Summary
public  HtmlDocletWriter(ConfigurationImpl configuration, String filename)
     Constructor to construct the HtmlStandardWriter object.
public  HtmlDocletWriter(ConfigurationImpl configuration, String path, String filename, String relativePath)
     Constructor to construct the HtmlStandardWriter object.

Method Summary
public  voidanchor(ExecutableMemberDoc emd)
    
public  voidboldText(String key)
    
public  voidboldText(String key, String a1)
    
public  voidboldText(String key, String a1, String a2)
    
public  StringcommentTagsToString(Tag holderTag, Doc doc, Tag[] tags, boolean isFirstSentence)
     Converts inline tags and text to text strings, expanding the inline tags along the way.
public  Configurationconfiguration()
     Return the configuation for this doclet.
public  voidframe(String arg)
     Print Html tag <FRAME=arg>.
public  voidframeEnd()
     Print Html closing tag </FRAME>.
public  voidframeSet(String arg)
     Print Html tag <FRAMESET=arg>.
public  voidframeSetEnd()
     Print Html closing tag </FRAMESET>.
public  StringgetAnchor(ExecutableMemberDoc emd)
    
public  StringgetCrossClassLink(String qualifiedClassName, String refMemName, String label, boolean bold, String style, boolean code)
     Return a class cross link to external class documentation. The name must be fully qualified to determine which package the class is in.
public  StringgetCrossPackageLink(String pkgName)
    
public  StringgetDocLink(int context, MemberDoc doc, String label, boolean bold)
     Return the link for the given member.
Parameters:
  context - the id of the context where the link will be printed.
Parameters:
  doc - the member being linked to.
Parameters:
  label - the label for the link.
Parameters:
  bold - true if the link should be bold.
public  StringgetDocLink(int context, ClassDoc classDoc, MemberDoc doc, String label, boolean bold)
     Return the link for the given member.
Parameters:
  context - the id of the context where the link will be printed.
Parameters:
  classDoc - the classDoc that we should link to.
public  StringgetLink(LinkInfoImpl linkInfo)
     Return the link to the given class.
Parameters:
  linkInfo - the information about the link.
public  StringgetPackageLink(PackageDoc pkg, String label, boolean isBold)
     Return the link to the given package.
Parameters:
  pkg - the package to link to.
Parameters:
  label - the label for the link.
Parameters:
  isBold - true if the label should be bold.
public  StringgetPackageLink(PackageDoc pkg, String label, boolean isBold, String style)
     Return the link to the given package.
Parameters:
  pkg - the package to link to.
Parameters:
  label - the label for the link.
Parameters:
  isBold - true if the label should be bold.
Parameters:
  style - the font of the package link label.
public  StringgetPreQualifiedClassLink(int context, ClassDoc cd, boolean isBold)
     Retrieve the class link with the package portion of the label in plain text.
public  TagletWritergetTagletWriterInstance(boolean isFirstSentence)
     Returns a TagletWriter that knows how to write HTML.
public  StringgetTypeParameterLinks(LinkInfoImpl linkInfo)
     Return the type parameters for the given class.
Parameters:
  linkInfo - the information about the link.
public  booleanisClassLinkable(ClassDoc cd)
    
public  booleanisCoreClass(ClassDoc cd)
     According to the Java Language Specifications, all the outer classes and static nested classes are core classes.
public  StringitalicsClassName(ClassDoc cd, boolean qual)
    
protected  voidnavCellEnd()
     Closing tag for navigation bar cell.
protected  voidnavCellRevStart()
     Description for a cell in the navigation bar, but with reverse high-light effect.
protected  voidnavCellStart()
     Description for a cell in the navigation bar.
protected  voidnavDetail()
     Print the word "Detail" in the navigation bar.
protected  voidnavHideLists(String link)
     Print "NO FRAMES" link, to switch to the non-frame version of the output.
protected  voidnavLinkClass()
     Print the word "Class" in the navigation bar cell, to indicate that class link is not available.
protected  voidnavLinkClassIndex()
     Print link for generated index.
protected  voidnavLinkClassUse()
     Print the word "Use" in the navigation bar cell, to indicate that link is not available.
protected  voidnavLinkContents()
     Print link to the "overview-summary.html" page.
protected  voidnavLinkDeprecated()
     Print "Deprecated" API link in the navigation bar.
protected  voidnavLinkHelp()
     Print help file link.
protected  voidnavLinkIndex()
     Print link for generated class index.
protected  voidnavLinkMainTree(String label)
     Print "Tree" link to the "overview-tree.html" file.
protected  voidnavLinkNext()
     Print the word "NEXT" to indicate that no link is available.
public  voidnavLinkNext(String next)
     Print link for next file.
protected  voidnavLinkPackage(PackageDoc pkg)
     Print link to the "package-summary.html" page for the package passed.
protected  voidnavLinkPackage()
     Print the word "Package" in the navigation bar cell, to indicate that link is not available here.
protected  voidnavLinkPrevious()
     Print the word "PREV" to indicate that no link is available.
public  voidnavLinkPrevious(String prev)
     Print link for previous file.
protected  voidnavLinkTree()
     Print "Tree" link in the navigation bar.
protected  voidnavLinks(boolean header)
     Print the navigation bar for the Html page at the top and and the bottom.
protected  voidnavShowLists(String link)
     Print "FRAMES" link, to switch to the frame version of the output.
protected  voidnavShowLists()
     Print "FRAMES" link, to switch to the frame version of the output.
protected  voidnavSummary()
     Print the word "Summary" in the navigation bar.
protected  StringpathString(ClassDoc cd, String name)
     Return the path to the class page for a classdoc.
protected  StringpathString(PackageDoc pd, String name)
     Return path to the given file name in the given package.
protected  StringpathToClass(ClassDoc cd)
     Return path to the class page for a classdoc.
public  voidprintBottom()
     Print the user specified bottom.
public  voidprintDocLink(int context, MemberDoc doc, String label, boolean bold)
     Print the link for the given member.
public  voidprintDocLink(int context, ClassDoc classDoc, MemberDoc doc, String label, boolean bold)
     Print the link for the given member.
Parameters:
  context - the id of the context where the link will be printed.
Parameters:
  classDoc - the classDoc that we should link to.
public  voidprintHtmlHeader(String title, String[] metakeywords, boolean includeScript)
     Print the html file header.
public  voidprintIndexHeading(String str)
     Print the heading in Html <H2> format.
public  voidprintInlineComment(Doc doc, Tag tag)
    
public  voidprintInlineComment(Doc doc)
    
public  voidprintInlineDeprecatedComment(Doc doc, Tag tag)
    
public  voidprintInlineDeprecatedComment(Doc doc)
    
public  voidprintLink(LinkInfoImpl linkInfo)
     Print the link to the given class.
public  voidprintNoFramesTargetHyperLink(String link, String where, String target, String label, boolean bold)
     Print Html Hyper Link, with target frame.
public  voidprintPackageLink(PackageDoc pkg, String label, boolean isBold)
     Print the link to the given package.
public  voidprintPackageLink(PackageDoc pkg, String label, boolean isBold, String style)
     Print the link to the given package.
public  voidprintPreQualifiedBoldClassLink(int context, ClassDoc cd)
     Print Class link, with only class name as the bold link and prefixing plain package name.
public  voidprintPreQualifiedClassLink(int context, ClassDoc cd)
     Print Class link, with only class name as the link and prefixing plain package name.
public  voidprintQualifiedClassLink(int context, ClassDoc cd)
    
public  voidprintSrcLink(ProgramElementDoc d, String label)
    
public  voidprintStyleSheetProperties()
    
public  voidprintSummaryComment(Doc doc)
    
public  voidprintSummaryComment(Doc doc, Tag[] firstSentenceTags)
    
public  voidprintSummaryDeprecatedComment(Doc doc)
    
public  voidprintSummaryDeprecatedComment(Doc doc, Tag tag)
    
protected  voidprintSummaryDetailLinks()
     Do nothing.
protected  voidprintTags(Doc doc)
    
protected  voidprintTagsInfoFooter()
    
protected  voidprintTagsInfoHeader()
    
public  voidprintTargetPackageLink(PackageDoc pd, String target, String label)
     Print Package link, with target frame.
public  voidprintText(String key)
    
public  voidprintText(String key, String a1)
    
public  voidprintText(String key, String a1, String a2)
    
public  voidprintTop()
     Print the user specified top.
public  voidprintUserHeaderFooter(boolean header)
     Print user specified header and the footer.
public  StringremoveNonInlineHtmlTags(String text)
    
public  Stringreplace(String text, String tobe, String by)
    
public  StringreplaceDocRootDir(String htmlstr)
     Replace {@docRoot} tag used in options that accept HTML text, such as -header, -footer, -top and -bottom, and when converting a relative HREF where commentTagsToString inserts a {@docRoot} where one was missing.
public  StringseeTagToString(SeeTag see)
    
public  voidsummaryRow(int width)
     Print the summary table row cell attribute width.
public  voidsummaryRowEnd()
     Print the summary table row cell end tag.
public  voidtableHeaderEnd()
     Print table header end tags for font, column and row.
public  voidtableHeaderStart(String color, int span)
     Prine table header information about color, column span and the font.
public  voidtableHeaderStart(String color)
     Print table header with the background color with default column span 2.
public  voidtableHeaderStart(int span)
     Print table header with the column span, with the default color #CCCCFF.
public  voidtableHeaderStart()
     Print table header with default column span 2 and default color #CCCCFF.
public  voidtableIndexDetail()
     Same as HtmlDocletWriter.tableIndexSummary() .
public  voidtableIndexSummary()
     Print the Html table tag for the index summary tables.
public  voidtableInheritedHeaderEnd()
     Print table header end tags in inherited tables for column and row.
public  voidtableInheritedHeaderStart(String color)
     Print table header for the inherited members summary tables.
public  voidtableUseInfoHeaderStart(String color)
     Print "Use" table header.
public  voidtdIndex()
     Print Html tag for table elements.
public  voidwriteAnnotationInfo(PackageDoc packageDoc)
     Write the annotatation types for the given packageDoc.
public  voidwriteAnnotationInfo(ProgramElementDoc doc)
     Write the annotatation types for the given doc.
public  booleanwriteAnnotationInfo(int indent, Doc doc, Parameter param)
     Write the annotatation types for the given doc and parameter.

Field Detail
configuration
public ConfigurationImpl configuration(Code)
The global configuration information for this run.



displayLength
public int displayLength(Code)
The display length used for indentation while generating the class page.



filename
public String filename(Code)
Name of the file getting generated. If the file getting generated is "java/lang/Object.html", then the filename is "Object.html".



path
public String path(Code)
Platform-dependent directory path from the current or the destination directory to the file getting generated. Used when creating the file. For example, if the file getting generated is "java/lang/Object.html", then the path string is "java/lang".



relativePath
public String relativePath(Code)
Relative path from the file getting generated to the destination directory. For example, if the file getting generated is "java/lang/Object.html", then the relative path string is "../../". This string can be empty if the file getting generated is in the destination directory.



relativepathNoSlash
public String relativepathNoSlash(Code)
Same as relativepath, but normalized to never be empty or end with a slash.




Constructor Detail
HtmlDocletWriter
public HtmlDocletWriter(ConfigurationImpl configuration, String filename) throws IOException(Code)
Constructor to construct the HtmlStandardWriter object.
Parameters:
  filename - File to be generated.



HtmlDocletWriter
public HtmlDocletWriter(ConfigurationImpl configuration, String path, String filename, String relativePath) throws IOException(Code)
Constructor to construct the HtmlStandardWriter object.
Parameters:
  path - Platform-dependent HtmlDocletWriter.path used whencreating file.
Parameters:
  filename - Name of file to be generated.
Parameters:
  relativePath - Value for the variable HtmlDocletWriter.relativePath.




Method Detail
anchor
public void anchor(ExecutableMemberDoc emd)(Code)



boldText
public void boldText(String key)(Code)



boldText
public void boldText(String key, String a1)(Code)



boldText
public void boldText(String key, String a1, String a2)(Code)



commentTagsToString
public String commentTagsToString(Tag holderTag, Doc doc, Tag[] tags, boolean isFirstSentence)(Code)
Converts inline tags and text to text strings, expanding the inline tags along the way. Called wherever text can contain an inline tag, such as in comments or in free-form text arguments to non-inline tags.
Parameters:
  holderTag - specific tag where comment resides
Parameters:
  doc - specific doc where comment resides
Parameters:
  tags - array of text tags and inline tags (often alternating)present in the text of interest for this doc
Parameters:
  isFirstSentence - true if text is first sentence



configuration
public Configuration configuration()(Code)
Return the configuation for this doclet. the configuration for this doclet.



frame
public void frame(String arg)(Code)
Print Html tag <FRAME=arg>.
Parameters:
  arg - Argument for the tag.



frameEnd
public void frameEnd()(Code)
Print Html closing tag </FRAME>.



frameSet
public void frameSet(String arg)(Code)
Print Html tag <FRAMESET=arg>.
Parameters:
  arg - Argument for the tag.



frameSetEnd
public void frameSetEnd()(Code)
Print Html closing tag </FRAMESET>.



getAnchor
public String getAnchor(ExecutableMemberDoc emd)(Code)



getCrossClassLink
public String getCrossClassLink(String qualifiedClassName, String refMemName, String label, boolean bold, String style, boolean code)(Code)
Return a class cross link to external class documentation. The name must be fully qualified to determine which package the class is in. The -link option does not allow users to link to external classes in the "default" package.
Parameters:
  qualifiedClassName - the qualified name of the external class.
Parameters:
  refMemName - the name of the member being referenced. This shouldbe null or empty string if no member is being referenced.
Parameters:
  label - the label for the external link.
Parameters:
  bold - true if the link should be bold.
Parameters:
  style - the style of the link.
Parameters:
  code - true if the label should be code font.



getCrossPackageLink
public String getCrossPackageLink(String pkgName)(Code)



getDocLink
public String getDocLink(int context, MemberDoc doc, String label, boolean bold)(Code)
Return the link for the given member.
Parameters:
  context - the id of the context where the link will be printed.
Parameters:
  doc - the member being linked to.
Parameters:
  label - the label for the link.
Parameters:
  bold - true if the link should be bold. the link for the given member.



getDocLink
public String getDocLink(int context, ClassDoc classDoc, MemberDoc doc, String label, boolean bold)(Code)
Return the link for the given member.
Parameters:
  context - the id of the context where the link will be printed.
Parameters:
  classDoc - the classDoc that we should link to. This is not necessarily equal to doc.containingClass(). We may beinheriting comments.
Parameters:
  doc - the member being linked to.
Parameters:
  label - the label for the link.
Parameters:
  bold - true if the link should be bold. the link for the given member.



getLink
public String getLink(LinkInfoImpl linkInfo)(Code)
Return the link to the given class.
Parameters:
  linkInfo - the information about the link. the link for the given class.



getPackageLink
public String getPackageLink(PackageDoc pkg, String label, boolean isBold)(Code)
Return the link to the given package.
Parameters:
  pkg - the package to link to.
Parameters:
  label - the label for the link.
Parameters:
  isBold - true if the label should be bold. the link to the given package.



getPackageLink
public String getPackageLink(PackageDoc pkg, String label, boolean isBold, String style)(Code)
Return the link to the given package.
Parameters:
  pkg - the package to link to.
Parameters:
  label - the label for the link.
Parameters:
  isBold - true if the label should be bold.
Parameters:
  style - the font of the package link label. the link to the given package.



getPreQualifiedClassLink
public String getPreQualifiedClassLink(int context, ClassDoc cd, boolean isBold)(Code)
Retrieve the class link with the package portion of the label in plain text. If the qualifier is excluded, it willnot be included in the link label.
Parameters:
  cd - the class to link to.
Parameters:
  isBold - true if the link should be bold. the link with the package portion of the label in plain text.



getTagletWriterInstance
public TagletWriter getTagletWriterInstance(boolean isFirstSentence)(Code)
Returns a TagletWriter that knows how to write HTML. a TagletWriter that knows how to write HTML.



getTypeParameterLinks
public String getTypeParameterLinks(LinkInfoImpl linkInfo)(Code)
Return the type parameters for the given class.
Parameters:
  linkInfo - the information about the link. the type for the given class.



isClassLinkable
public boolean isClassLinkable(ClassDoc cd)(Code)



isCoreClass
public boolean isCoreClass(ClassDoc cd)(Code)
According to the Java Language Specifications, all the outer classes and static nested classes are core classes.



italicsClassName
public String italicsClassName(ClassDoc cd, boolean qual)(Code)



navCellEnd
protected void navCellEnd()(Code)
Closing tag for navigation bar cell.



navCellRevStart
protected void navCellRevStart()(Code)
Description for a cell in the navigation bar, but with reverse high-light effect.



navCellStart
protected void navCellStart()(Code)
Description for a cell in the navigation bar.



navDetail
protected void navDetail()(Code)
Print the word "Detail" in the navigation bar. No link is available.



navHideLists
protected void navHideLists(String link)(Code)
Print "NO FRAMES" link, to switch to the non-frame version of the output.
Parameters:
  link - File to be linked.



navLinkClass
protected void navLinkClass()(Code)
Print the word "Class" in the navigation bar cell, to indicate that class link is not available.



navLinkClassIndex
protected void navLinkClassIndex()(Code)
Print link for generated index. If the user has used "-splitindex" command line option, then link to file "index-files/index-1.html" is generated otherwise link to file "index-all.html" is generated.



navLinkClassUse
protected void navLinkClassUse()(Code)
Print the word "Use" in the navigation bar cell, to indicate that link is not available.



navLinkContents
protected void navLinkContents()(Code)
Print link to the "overview-summary.html" page.



navLinkDeprecated
protected void navLinkDeprecated()(Code)
Print "Deprecated" API link in the navigation bar.



navLinkHelp
protected void navLinkHelp()(Code)
Print help file link. If user has provided a help file, then generate a link to the user given file, which is already copied to current or destination directory.



navLinkIndex
protected void navLinkIndex()(Code)
Print link for generated class index.



navLinkMainTree
protected void navLinkMainTree(String label)(Code)
Print "Tree" link to the "overview-tree.html" file.



navLinkNext
protected void navLinkNext()(Code)
Print the word "NEXT" to indicate that no link is available. Override this method to customize next link.



navLinkNext
public void navLinkNext(String next)(Code)
Print link for next file. If next is null, just print the label without linking it anywhere.
Parameters:
  next - File name for the next link.



navLinkPackage
protected void navLinkPackage(PackageDoc pkg)(Code)
Print link to the "package-summary.html" page for the package passed.
Parameters:
  pkg - Package to which link will be generated.



navLinkPackage
protected void navLinkPackage()(Code)
Print the word "Package" in the navigation bar cell, to indicate that link is not available here.



navLinkPrevious
protected void navLinkPrevious()(Code)
Print the word "PREV" to indicate that no link is available. Override this method to customize prev link.



navLinkPrevious
public void navLinkPrevious(String prev)(Code)
Print link for previous file.
Parameters:
  prev - File name for the prev link.



navLinkTree
protected void navLinkTree()(Code)
Print "Tree" link in the navigation bar. If there is only one package specified on the command line, then the "Tree" link will be to the only "package-tree.html" file otherwise it will be to the "overview-tree.html" file.



navLinks
protected void navLinks(boolean header)(Code)
Print the navigation bar for the Html page at the top and and the bottom.
Parameters:
  header - If true print navigation bar at the top of the page elseprint the nevigation bar at the bottom.



navShowLists
protected void navShowLists(String link)(Code)
Print "FRAMES" link, to switch to the frame version of the output.
Parameters:
  link - File to be linked, "index.html".



navShowLists
protected void navShowLists()(Code)
Print "FRAMES" link, to switch to the frame version of the output.



navSummary
protected void navSummary()(Code)
Print the word "Summary" in the navigation bar. No link is available.



pathString
protected String pathString(ClassDoc cd, String name)(Code)
Return the path to the class page for a classdoc. Works same as HtmlDocletWriter.pathToClass(ClassDoc) .
Parameters:
  cd - Class to which the path is requested.
Parameters:
  name - Name of the file(doesn't include path).



pathString
protected String pathString(PackageDoc pd, String name)(Code)
Return path to the given file name in the given package. So if the name passed is "Object.html" and the name of the package is "java.lang", and if the relative path is "../.." then returned string will be "../../java/lang/Object.html"
Parameters:
  pd - Package in which the file name is assumed to be.
Parameters:
  name - File name, to which path string is.



pathToClass
protected String pathToClass(ClassDoc cd)(Code)
Return path to the class page for a classdoc. For example, the class name is "java.lang.Object" and if the current file getting generated is "java/io/File.html", then the path string to the class, returned is "../../java/lang.Object.html".
Parameters:
  cd - Class to which the path is requested.



printBottom
public void printBottom()(Code)
Print the user specified bottom.



printDocLink
public void printDocLink(int context, MemberDoc doc, String label, boolean bold)(Code)
Print the link for the given member.
Parameters:
  context - the id of the context where the link will be printed.
Parameters:
  doc - the member being linked to.
Parameters:
  label - the label for the link.
Parameters:
  bold - true if the link should be bold.



printDocLink
public void printDocLink(int context, ClassDoc classDoc, MemberDoc doc, String label, boolean bold)(Code)
Print the link for the given member.
Parameters:
  context - the id of the context where the link will be printed.
Parameters:
  classDoc - the classDoc that we should link to. This is not necessarily equal to doc.containingClass(). We may beinheriting comments.
Parameters:
  doc - the member being linked to.
Parameters:
  label - the label for the link.
Parameters:
  bold - true if the link should be bold.



printHtmlHeader
public void printHtmlHeader(String title, String[] metakeywords, boolean includeScript)(Code)
Print the html file header. Also print Html page title and stylesheet default properties.
Parameters:
  title - String window title to go in the <TITLE> tag
Parameters:
  metakeywords - Array of String keywords for META tag. Each elementof the array is assigned to a separate META tag.Pass in null for no array.
Parameters:
  includeScript - boolean true if printing windowtitle script.False for files that appear in the left-hand frames.



printIndexHeading
public void printIndexHeading(String str)(Code)
Print the heading in Html <H2> format.
Parameters:
  str - The Header string.



printInlineComment
public void printInlineComment(Doc doc, Tag tag)(Code)



printInlineComment
public void printInlineComment(Doc doc)(Code)



printInlineDeprecatedComment
public void printInlineDeprecatedComment(Doc doc, Tag tag)(Code)



printInlineDeprecatedComment
public void printInlineDeprecatedComment(Doc doc)(Code)



printLink
public void printLink(LinkInfoImpl linkInfo)(Code)
Print the link to the given class.



printNoFramesTargetHyperLink
public void printNoFramesTargetHyperLink(String link, String where, String target, String label, boolean bold)(Code)
Print Html Hyper Link, with target frame. This link will only appear if page is not in a frame.
Parameters:
  link - String name of the file.
Parameters:
  where - Position in the file
Parameters:
  target - Name of the target frame.
Parameters:
  label - Tag for the link.
Parameters:
  bold - Whether the label should be bold or not?



printPackageLink
public void printPackageLink(PackageDoc pkg, String label, boolean isBold)(Code)
Print the link to the given package.
Parameters:
  pkg - the package to link to.
Parameters:
  label - the label for the link.
Parameters:
  isBold - true if the label should be bold.



printPackageLink
public void printPackageLink(PackageDoc pkg, String label, boolean isBold, String style)(Code)
Print the link to the given package.
Parameters:
  pkg - the package to link to.
Parameters:
  label - the label for the link.
Parameters:
  isBold - true if the label should be bold.
Parameters:
  style - the font of the package link label.



printPreQualifiedBoldClassLink
public void printPreQualifiedBoldClassLink(int context, ClassDoc cd)(Code)
Print Class link, with only class name as the bold link and prefixing plain package name.



printPreQualifiedClassLink
public void printPreQualifiedClassLink(int context, ClassDoc cd)(Code)
Print Class link, with only class name as the link and prefixing plain package name.



printQualifiedClassLink
public void printQualifiedClassLink(int context, ClassDoc cd)(Code)



printSrcLink
public void printSrcLink(ProgramElementDoc d, String label)(Code)



printStyleSheetProperties
public void printStyleSheetProperties()(Code)



printSummaryComment
public void printSummaryComment(Doc doc)(Code)



printSummaryComment
public void printSummaryComment(Doc doc, Tag[] firstSentenceTags)(Code)



printSummaryDeprecatedComment
public void printSummaryDeprecatedComment(Doc doc)(Code)



printSummaryDeprecatedComment
public void printSummaryDeprecatedComment(Doc doc, Tag tag)(Code)



printSummaryDetailLinks
protected void printSummaryDetailLinks()(Code)
Do nothing. This is the default method.



printTags
protected void printTags(Doc doc)(Code)



printTagsInfoFooter
protected void printTagsInfoFooter()(Code)



printTagsInfoHeader
protected void printTagsInfoHeader()(Code)



printTargetPackageLink
public void printTargetPackageLink(PackageDoc pd, String target, String label)(Code)
Print Package link, with target frame.
Parameters:
  pd - The link will be to the "package-summary.html" page for thispackage.
Parameters:
  target - Name of the target frame.
Parameters:
  label - Tag for the link.



printText
public void printText(String key)(Code)



printText
public void printText(String key, String a1)(Code)



printText
public void printText(String key, String a1, String a2)(Code)



printTop
public void printTop()(Code)
Print the user specified top.



printUserHeaderFooter
public void printUserHeaderFooter(boolean header)(Code)
Print user specified header and the footer.
Parameters:
  header - if true print the user provided header else print theuser provided footer.



removeNonInlineHtmlTags
public String removeNonInlineHtmlTags(String text)(Code)



replace
public String replace(String text, String tobe, String by)(Code)



replaceDocRootDir
public String replaceDocRootDir(String htmlstr)(Code)
Replace {@docRoot} tag used in options that accept HTML text, such as -header, -footer, -top and -bottom, and when converting a relative HREF where commentTagsToString inserts a {@docRoot} where one was missing. (Also see DocRootTaglet for {@docRoot} tags in doc comments.)

Replace {@docRoot} tag in htmlstr with the relative path to the destination directory from the directory where the file is being written, looping to handle all such tags in htmlstr.

For example, for "-d docs" and -header containing {@docRoot}, when the HTML page for source file p/C1.java is being generated, the {@docRoot} tag would be inserted into the header as "../", the relative path from docs/p/ to docs/ (the document root).

Note: This doc comment was written with '&#064;' representing '@' to prevent the inline tag from being interpreted.




seeTagToString
public String seeTagToString(SeeTag see)(Code)



summaryRow
public void summaryRow(int width)(Code)
Print the summary table row cell attribute width.
Parameters:
  width - Width of the table cell.



summaryRowEnd
public void summaryRowEnd()(Code)
Print the summary table row cell end tag.



tableHeaderEnd
public void tableHeaderEnd()(Code)
Print table header end tags for font, column and row.



tableHeaderStart
public void tableHeaderStart(String color, int span)(Code)
Prine table header information about color, column span and the font.
Parameters:
  color - Background color.
Parameters:
  span - Column span.



tableHeaderStart
public void tableHeaderStart(String color)(Code)
Print table header with the background color with default column span 2.
Parameters:
  color - Background color.



tableHeaderStart
public void tableHeaderStart(int span)(Code)
Print table header with the column span, with the default color #CCCCFF.
Parameters:
  span - Column span.



tableHeaderStart
public void tableHeaderStart()(Code)
Print table header with default column span 2 and default color #CCCCFF.



tableIndexDetail
public void tableIndexDetail()(Code)
Same as HtmlDocletWriter.tableIndexSummary() .



tableIndexSummary
public void tableIndexSummary()(Code)
Print the Html table tag for the index summary tables. The table tag printed is <TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">



tableInheritedHeaderEnd
public void tableInheritedHeaderEnd()(Code)
Print table header end tags in inherited tables for column and row.



tableInheritedHeaderStart
public void tableInheritedHeaderStart(String color)(Code)
Print table header for the inherited members summary tables. Print the background color information.
Parameters:
  color - Background color.



tableUseInfoHeaderStart
public void tableUseInfoHeaderStart(String color)(Code)
Print "Use" table header. Print the background color and the column span.
Parameters:
  color - Background color.



tdIndex
public void tdIndex()(Code)
Print Html tag for table elements. The tag printed is <TD ALIGN="right" VALIGN="top" WIDTH="1%">.



writeAnnotationInfo
public void writeAnnotationInfo(PackageDoc packageDoc)(Code)
Write the annotatation types for the given packageDoc.
Parameters:
  packageDoc - the package to write annotations for.



writeAnnotationInfo
public void writeAnnotationInfo(ProgramElementDoc doc)(Code)
Write the annotatation types for the given doc.
Parameters:
  doc - the doc to write annotations for.



writeAnnotationInfo
public boolean writeAnnotationInfo(int indent, Doc doc, Parameter param)(Code)
Write the annotatation types for the given doc and parameter.
Parameters:
  indent - the number of spaced to indent the parameters.
Parameters:
  doc - the doc to write annotations for.
Parameters:
  param - the parameter to write annotations for.



Methods inherited from com.sun.tools.doclets.formats.html.markup.HtmlDocWriter
abstract public Configuration configuration()(Code)(Java Doc)
public String getHyperLink(String link, String where, String label, boolean bold)(Code)(Java Doc)
public String getHyperLink(String link, String where, String label, boolean bold, String stylename)(Code)(Java Doc)
public String getHyperLink(String link, String where, String label, boolean bold, String stylename, String title, String target)(Code)(Java Doc)
public String getHyperLink(String link, String label)(Code)(Java Doc)
public String getPkgName(ClassDoc cd)(Code)(Java Doc)
public void printBodyHtmlEnd()(Code)(Java Doc)
public void printFooter()(Code)(Java Doc)
public void printFrameFooter()(Code)(Java Doc)
public void printFramesetHeader(String title)(Code)(Java Doc)
public void printFramesetHeader(String title, boolean noTimeStamp)(Code)(Java Doc)
public void printHyperLink(String link, String where, String label, boolean bold)(Code)(Java Doc)
public void printHyperLink(String link, String where, String label)(Code)(Java Doc)
public void printHyperLink(String link, String where, String label, boolean bold, String stylename)(Code)(Java Doc)
public void printHyperLink(String link, String label)(Code)(Java Doc)
public void printNbsps()(Code)(Java Doc)
public void printPkgName(ClassDoc cd)(Code)(Java Doc)
public String spaces(int len)(Code)(Java Doc)
public String today()(Code)(Java Doc)

Fields inherited from com.sun.tools.doclets.formats.html.markup.HtmlWriter
protected Configuration configuration(Code)(Java Doc)
final public static String fileseparator(Code)(Java Doc)
final protected String htmlFilename(Code)(Java Doc)
protected String winTitle(Code)(Java Doc)

Methods inherited from com.sun.tools.doclets.formats.html.markup.HtmlWriter
public void aEnd()(Code)(Java Doc)
public void aName(String name)(Code)(Java Doc)
public void address()(Code)(Java Doc)
public void addressEnd()(Code)(Java Doc)
public void anchor(String name, String content)(Code)(Java Doc)
public void anchor(String name)(Code)(Java Doc)
public void blockquote()(Code)(Java Doc)
public void blockquoteEnd()(Code)(Java Doc)
public void body(String bgcolor, boolean includeScript)(Code)(Java Doc)
public void bodyEnd()(Code)(Java Doc)
public void bold()(Code)(Java Doc)
public void bold(String text)(Code)(Java Doc)
public void boldEnd()(Code)(Java Doc)
public void br()(Code)(Java Doc)
public void center()(Code)(Java Doc)
public void centerEnd()(Code)(Java Doc)
public void code()(Code)(Java Doc)
public void codeEnd()(Code)(Java Doc)
public String codeText(String text)(Code)(Java Doc)
public void commentEnd()(Code)(Java Doc)
public void commentStart()(Code)(Java Doc)
public void dd()(Code)(Java Doc)
public void ddEnd()(Code)(Java Doc)
public void dl()(Code)(Java Doc)
public void dlEnd()(Code)(Java Doc)
public void dt()(Code)(Java Doc)
public void em()(Code)(Java Doc)
public void emEnd()(Code)(Java Doc)
public void font(String size)(Code)(Java Doc)
public void fontEnd()(Code)(Java Doc)
public void fontNoNewLine(String size)(Code)(Java Doc)
public void fontSizeStyle(String size, String stylename)(Code)(Java Doc)
public void fontStyle(String stylename)(Code)(Java Doc)
public String getBold()(Code)(Java Doc)
public String getBoldEnd()(Code)(Java Doc)
public String getCode()(Code)(Java Doc)
public String getCodeEnd()(Code)(Java Doc)
public String getFontColor(String color)(Code)(Java Doc)
public String getFontEnd()(Code)(Java Doc)
protected String getWindowTitleOnload()(Code)(Java Doc)
public void h1()(Code)(Java Doc)
public void h1(String text)(Code)(Java Doc)
public void h1End()(Code)(Java Doc)
public void h2()(Code)(Java Doc)
public void h2(String text)(Code)(Java Doc)
public void h2End()(Code)(Java Doc)
public void h3()(Code)(Java Doc)
public void h3(String text)(Code)(Java Doc)
public void h3End()(Code)(Java Doc)
public void h4()(Code)(Java Doc)
public void h4(String text)(Code)(Java Doc)
public void h4End()(Code)(Java Doc)
public void h5()(Code)(Java Doc)
public void h5End()(Code)(Java Doc)
public void head()(Code)(Java Doc)
public void headEnd()(Code)(Java Doc)
public void hr()(Code)(Java Doc)
public void hr(int size, int widthPercent)(Code)(Java Doc)
public void hr(int size, String noshade)(Code)(Java Doc)
public void html()(Code)(Java Doc)
public void htmlEnd()(Code)(Java Doc)
public void img(String imggif, String imgname, int width, int height)(Code)(Java Doc)
public void italic()(Code)(Java Doc)
public void italicEnd()(Code)(Java Doc)
public void italics(String text)(Code)(Java Doc)
public String italicsText(String text)(Code)(Java Doc)
public void li()(Code)(Java Doc)
public void li(String type)(Code)(Java Doc)
public void link(String str)(Code)(Java Doc)
public void menu()(Code)(Java Doc)
public void menuEnd()(Code)(Java Doc)
public void noFrames()(Code)(Java Doc)
public void noFramesEnd()(Code)(Java Doc)
public void noScript()(Code)(Java Doc)
public void noScriptEnd()(Code)(Java Doc)
public void p()(Code)(Java Doc)
public void pEnd()(Code)(Java Doc)
public void pre()(Code)(Java Doc)
public void preEnd()(Code)(Java Doc)
public void preNoNewLine()(Code)(Java Doc)
protected void printWinTitleScript(String winTitle)(Code)(Java Doc)
public void script()(Code)(Java Doc)
public void scriptEnd()(Code)(Java Doc)
public void space()(Code)(Java Doc)
public void sup()(Code)(Java Doc)
public void supEnd()(Code)(Java Doc)
public void table(int border, String width, int cellpadding, int cellspacing)(Code)(Java Doc)
public void table(int border, int cellpadding, int cellspacing)(Code)(Java Doc)
public void table(int border, String width)(Code)(Java Doc)
public void table()(Code)(Java Doc)
public void tableEnd()(Code)(Java Doc)
public void td()(Code)(Java Doc)
public void tdAlign(String align)(Code)(Java Doc)
public void tdAlignRowspan(String align, int rowspan)(Code)(Java Doc)
public void tdAlignVAlign(String align, String valign)(Code)(Java Doc)
public void tdAlignVAlignRowspan(String align, String valign, int rowspan)(Code)(Java Doc)
public void tdBgcolorStyle(String color, String stylename)(Code)(Java Doc)
public void tdColspan(int i)(Code)(Java Doc)
public void tdColspanBgcolorStyle(int i, String color, String stylename)(Code)(Java Doc)
public void tdEnd()(Code)(Java Doc)
public void tdNowrap()(Code)(Java Doc)
public void tdVAlign(String valign)(Code)(Java Doc)
public void tdVAlignClass(String align, String stylename)(Code)(Java Doc)
public void tdWidth(String width)(Code)(Java Doc)
public void thAlign(String align)(Code)(Java Doc)
public void thAlignColspan(String align, int i)(Code)(Java Doc)
public void thAlignNowrap(String align)(Code)(Java Doc)
public void thEnd()(Code)(Java Doc)
public void title()(Code)(Java Doc)
public void title(String winTitle)(Code)(Java Doc)
public void titleEnd()(Code)(Java Doc)
public void tr()(Code)(Java Doc)
public void trAlignVAlign(String align, String valign)(Code)(Java Doc)
public void trBgcolor(String color)(Code)(Java Doc)
public void trBgcolorStyle(String color, String stylename)(Code)(Java Doc)
public void trEnd()(Code)(Java Doc)
public void ul()(Code)(Java Doc)
public void ulEnd()(Code)(Java Doc)

Fields inherited from java.io.PrintWriter
protected Writer out(Code)(Java Doc)

Methods inherited from java.io.PrintWriter
public PrintWriter append(CharSequence csq)(Code)(Java Doc)
public PrintWriter append(CharSequence csq, int start, int end)(Code)(Java Doc)
public PrintWriter append(char c)(Code)(Java Doc)
public boolean checkError()(Code)(Java Doc)
protected void clearError()(Code)(Java Doc)
public void close()(Code)(Java Doc)
public void flush()(Code)(Java Doc)
public PrintWriter format(String format, Object... args)(Code)(Java Doc)
public PrintWriter format(Locale l, String format, Object... args)(Code)(Java Doc)
public void print(boolean b)(Code)(Java Doc)
public void print(char c)(Code)(Java Doc)
public void print(int i)(Code)(Java Doc)
public void print(long l)(Code)(Java Doc)
public void print(float f)(Code)(Java Doc)
public void print(double d)(Code)(Java Doc)
public void print(char s)(Code)(Java Doc)
public void print(String s)(Code)(Java Doc)
public void print(Object obj)(Code)(Java Doc)
public PrintWriter printf(String format, Object... args)(Code)(Java Doc)
public PrintWriter printf(Locale l, String format, Object... args)(Code)(Java Doc)
public void println()(Code)(Java Doc)
public void println(boolean x)(Code)(Java Doc)
public void println(char x)(Code)(Java Doc)
public void println(int x)(Code)(Java Doc)
public void println(long x)(Code)(Java Doc)
public void println(float x)(Code)(Java Doc)
public void println(double x)(Code)(Java Doc)
public void println(char x)(Code)(Java Doc)
public void println(String x)(Code)(Java Doc)
public void println(Object x)(Code)(Java Doc)
protected void setError()(Code)(Java Doc)
public void write(int c)(Code)(Java Doc)
public void write(char buf, int off, int len)(Code)(Java Doc)
public void write(char buf)(Code)(Java Doc)
public void write(String s, int off, int len)(Code)(Java Doc)
public void write(String s)(Code)(Java Doc)

Fields inherited from java.io.Writer
protected Object lock(Code)(Java Doc)

Methods inherited from java.io.Writer
public Writer append(CharSequence csq) throws IOException(Code)(Java Doc)
public Writer append(CharSequence csq, int start, int end) throws IOException(Code)(Java Doc)
public Writer append(char c) throws IOException(Code)(Java Doc)
abstract public void close() throws IOException(Code)(Java Doc)
abstract public void flush() throws IOException(Code)(Java Doc)
public void write(int c) throws IOException(Code)(Java Doc)
public void write(char cbuf) throws IOException(Code)(Java Doc)
abstract public void write(char cbuf, int off, int len) throws IOException(Code)(Java Doc)
public void write(String str) throws IOException(Code)(Java Doc)
public void write(String str, int off, int len) throws IOException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.