< prev index next >

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/HtmlSerialMethodWriter.java

Print this page




  60 
  61     /**
  62      * Return the header for serializable methods section.
  63      *
  64      * @return a content tree for the header
  65      */
  66     public Content getSerializableMethodsHeader() {
  67         HtmlTree ul = new HtmlTree(HtmlTag.UL);
  68         ul.setStyle(HtmlStyle.blockList);
  69         return ul;
  70     }
  71 
  72     /**
  73      * Return the header for serializable methods content section.
  74      *
  75      * @param isLastContent true if the cotent being documented is the last content.
  76      * @return a content tree for the header
  77      */
  78     public Content getMethodsContentHeader(boolean isLastContent) {
  79         HtmlTree li = new HtmlTree(HtmlTag.LI);
  80         li.setStyle(HtmlStyle.blockList);



  81         return li;
  82     }
  83 
  84     /**
  85      * Add serializable methods.
  86      *
  87      * @param heading the heading for the section
  88      * @param serializableMethodContent the tree to be added to the serializable methods
  89      *        content tree
  90      * @return a content tree for the serializable methods content
  91      */
  92     public Content getSerializableMethods(String heading, Content serializableMethodContent) {
  93         Content headingContent = new StringContent(heading);
  94         Content serialHeading = HtmlTree.HEADING(Headings.SerializedForm.CLASS_SUBHEADING, headingContent);
  95         Content section = HtmlTree.SECTION(HtmlStyle.detail, serialHeading);
  96         section.add(serializableMethodContent);
  97         return HtmlTree.LI(HtmlStyle.blockList, section);
  98     }
  99 
 100     /**




  60 
  61     /**
  62      * Return the header for serializable methods section.
  63      *
  64      * @return a content tree for the header
  65      */
  66     public Content getSerializableMethodsHeader() {
  67         HtmlTree ul = new HtmlTree(HtmlTag.UL);
  68         ul.setStyle(HtmlStyle.blockList);
  69         return ul;
  70     }
  71 
  72     /**
  73      * Return the header for serializable methods content section.
  74      *
  75      * @param isLastContent true if the cotent being documented is the last content.
  76      * @return a content tree for the header
  77      */
  78     public Content getMethodsContentHeader(boolean isLastContent) {
  79         HtmlTree li = new HtmlTree(HtmlTag.LI);
  80         if (isLastContent)
  81             li.setStyle(HtmlStyle.blockListLast);
  82         else
  83             li.setStyle(HtmlStyle.blockList);
  84         return li;
  85     }
  86 
  87     /**
  88      * Add serializable methods.
  89      *
  90      * @param heading the heading for the section
  91      * @param serializableMethodContent the tree to be added to the serializable methods
  92      *        content tree
  93      * @return a content tree for the serializable methods content
  94      */
  95     public Content getSerializableMethods(String heading, Content serializableMethodContent) {
  96         Content headingContent = new StringContent(heading);
  97         Content serialHeading = HtmlTree.HEADING(Headings.SerializedForm.CLASS_SUBHEADING, headingContent);
  98         Content section = HtmlTree.SECTION(HtmlStyle.detail, serialHeading);
  99         section.add(serializableMethodContent);
 100         return HtmlTree.LI(HtmlStyle.blockList, section);
 101     }
 102 
 103     /**


< prev index next >