< prev index next >

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

Print this page




  59  */
  60 public class ModulePackageIndexFrameWriter extends AbstractModuleIndexWriter {
  61 
  62     /**
  63      * Construct the ModulePackageIndexFrameWriter object.
  64      *
  65      * @param configuration the configuration object
  66      * @param filename Name of the package index file to be generated.
  67      */
  68     public ModulePackageIndexFrameWriter(HtmlConfiguration configuration, DocPath filename)  {
  69         super(configuration, filename);
  70     }
  71 
  72     /**
  73      * Generate the module package index file.
  74      * @throws DocFileIOException
  75      * @param configuration the configuration object
  76      * @param mdle the module being documented
  77      */
  78     public static void generate(HtmlConfiguration configuration, ModuleElement mdle) throws DocFileIOException {
  79         DocPath filename = DocPaths.moduleFrame(mdle);
  80         ModulePackageIndexFrameWriter modpackgen = new ModulePackageIndexFrameWriter(configuration, filename);
  81         modpackgen.buildModulePackagesIndexFile("doclet.Window_Overview", false, mdle);
  82     }
  83 
  84     /**
  85      * {@inheritDoc}
  86      */
  87     protected void addModulePackagesList(Map<ModuleElement, Set<PackageElement>> modules, String text,
  88             String tableSummary, Content body, ModuleElement mdle) {
  89         Content profNameContent = new StringContent(mdle.getQualifiedName().toString());
  90         Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
  91                 getTargetModuleLink("classFrame", profNameContent, mdle));
  92         heading.addContent(Contents.SPACE);
  93         heading.addContent(contents.packagesLabel);
  94         HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN))
  95                 ? HtmlTree.MAIN(HtmlStyle.indexContainer, heading)
  96                 : HtmlTree.DIV(HtmlStyle.indexContainer, heading);
  97         HtmlTree ul = new HtmlTree(HtmlTag.UL);
  98         ul.setTitle(contents.packagesLabel);
  99         List<PackageElement> packages = new ArrayList<>(modules.get(mdle));




  59  */
  60 public class ModulePackageIndexFrameWriter extends AbstractModuleIndexWriter {
  61 
  62     /**
  63      * Construct the ModulePackageIndexFrameWriter object.
  64      *
  65      * @param configuration the configuration object
  66      * @param filename Name of the package index file to be generated.
  67      */
  68     public ModulePackageIndexFrameWriter(HtmlConfiguration configuration, DocPath filename)  {
  69         super(configuration, filename);
  70     }
  71 
  72     /**
  73      * Generate the module package index file.
  74      * @throws DocFileIOException
  75      * @param configuration the configuration object
  76      * @param mdle the module being documented
  77      */
  78     public static void generate(HtmlConfiguration configuration, ModuleElement mdle) throws DocFileIOException {
  79         DocPath filename = configuration.docPaths.moduleFrame(mdle);
  80         ModulePackageIndexFrameWriter modpackgen = new ModulePackageIndexFrameWriter(configuration, filename);
  81         modpackgen.buildModulePackagesIndexFile("doclet.Window_Overview", false, mdle);
  82     }
  83 
  84     /**
  85      * {@inheritDoc}
  86      */
  87     protected void addModulePackagesList(Map<ModuleElement, Set<PackageElement>> modules, String text,
  88             String tableSummary, Content body, ModuleElement mdle) {
  89         Content profNameContent = new StringContent(mdle.getQualifiedName().toString());
  90         Content heading = HtmlTree.HEADING(HtmlConstants.PACKAGE_HEADING, true,
  91                 getTargetModuleLink("classFrame", profNameContent, mdle));
  92         heading.addContent(Contents.SPACE);
  93         heading.addContent(contents.packagesLabel);
  94         HtmlTree htmlTree = (configuration.allowTag(HtmlTag.MAIN))
  95                 ? HtmlTree.MAIN(HtmlStyle.indexContainer, heading)
  96                 : HtmlTree.DIV(HtmlStyle.indexContainer, heading);
  97         HtmlTree ul = new HtmlTree(HtmlTag.UL);
  98         ul.setTitle(contents.packagesLabel);
  99         List<PackageElement> packages = new ArrayList<>(modules.get(mdle));


< prev index next >