src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/markup/HtmlTree.java
changeset 59294 48b88b9c11eb
parent 54610 a9ab154b1384
equal deleted inserted replaced
59293:5af9fa90cd7b 59294:48b88b9c11eb
   582         htmltree.setRole(Role.MAIN);
   582         htmltree.setRole(Role.MAIN);
   583         return htmltree;
   583         return htmltree;
   584     }
   584     }
   585 
   585 
   586     /**
   586     /**
   587      * Generates a MAIN tag with role attribute, style attribute and some content.
       
   588      *
       
   589      * @param styleClass style of the MAIN tag
       
   590      * @param body content of the MAIN tag
       
   591      * @return an HtmlTree object for the MAIN tag
       
   592      */
       
   593     public static HtmlTree MAIN(HtmlStyle styleClass, Content body) {
       
   594         HtmlTree htmltree = HtmlTree.MAIN(body);
       
   595         if (styleClass != null) {
       
   596             htmltree.setStyle(styleClass);
       
   597         }
       
   598         return htmltree;
       
   599     }
       
   600 
       
   601     /**
       
   602      * Generates a META tag with the http-equiv, content and charset attributes.
   587      * Generates a META tag with the http-equiv, content and charset attributes.
   603      *
   588      *
   604      * @param httpEquiv http equiv attribute for the META tag
   589      * @param httpEquiv http equiv attribute for the META tag
   605      * @param content type of content
   590      * @param content type of content
   606      * @param charSet character set used
   591      * @param charSet character set used