protected void generateIndexFile() throws IOException {
        String title = configuration.getText("doclet.Window_Single_Index");
        HtmlTree body = getBody(true, getWindowTitle(title));
        HtmlTree htmlTree = (configuration.allowTag(HtmlTag.HEADER))
                ? HtmlTree.HEADER()
                : body;
        addTop(htmlTree);
        addNavLinks(true, htmlTree);
        if (configuration.allowTag(HtmlTag.HEADER)) {
            body.addContent(htmlTree);
        }
        HtmlTree divTree = new HtmlTree(HtmlTag.DIV);
        divTree.addStyle(HtmlStyle.contentContainer);
        Set<Object> keys = new TreeSet<>(Arrays.asList(indexbuilder.elements()));
        keys.addAll(configuration.tagSearchIndexKeys);
        elements = new ArrayList<>(keys);
        addLinksForIndexes(divTree);
        for (Object ch : elements) {
            Character unicode = (Character) ch;
            if (configuration.tagSearchIndexMap.get(unicode) == null) {
                addContents(unicode, indexbuilder.getMemberList(unicode), divTree);
            } else if (indexbuilder.getMemberList(unicode) == null) {
                addSearchContents(unicode, configuration.tagSearchIndexMap.get(unicode), divTree);
            } else {
                addContents(unicode, indexbuilder.getMemberList(unicode),
                        configuration.tagSearchIndexMap.get(unicode), divTree);
            }
        }
        addLinksForIndexes(divTree);
        body.addContent((configuration.allowTag(HtmlTag.MAIN))
                ? HtmlTree.MAIN(divTree)
                : divTree);
        if (configuration.allowTag(HtmlTag.FOOTER)) {
            htmlTree = HtmlTree.FOOTER();
        }
        addNavLinks(false, htmlTree);
        addBottom(htmlTree);
        if (configuration.allowTag(HtmlTag.FOOTER)) {
            body.addContent(htmlTree);
        }
        createSearchIndexFiles();
        printHtmlDocument(null, true, body);
    }
protected void generateIndexFile ( ) throws IOException { String title = configuration . getText ( "doclet.Window_Single_Index" ) ; HtmlTree body = getBody ( true , getWindowTitle ( title ) ) ; HtmlTree htmlTree = ( configuration . allowTag ( HtmlTag . HEADER ) ) ? HtmlTree . HEADER ( ) : body ; addTop ( htmlTree ) ; addNavLinks ( true , htmlTree ) ; if ( configuration . allowTag ( HtmlTag . HEADER ) ) { body . addContent ( htmlTree ) ; } HtmlTree divTree = new HtmlTree ( HtmlTag . DIV ) ; divTree . addStyle ( HtmlStyle . contentContainer ) ; Set < Object > keys = new TreeSet < > ( Arrays . asList ( indexbuilder . elements ( ) ) ) ; keys . addAll ( configuration . tagSearchIndexKeys ) ; elements = new ArrayList < > ( keys ) ; addLinksForIndexes ( divTree ) ; for ( Object ch : elements ) { Character unicode = ( Character ) ch ; if ( configuration . tagSearchIndexMap . get ( unicode ) == null ) { addContents ( unicode , indexbuilder . getMemberList ( unicode ) , divTree ) ; } else if ( indexbuilder . getMemberList ( unicode ) == null ) { addSearchContents ( unicode , configuration . tagSearchIndexMap . get ( unicode ) , divTree ) ; } else { addContents ( unicode , indexbuilder . getMemberList ( unicode ) , configuration . tagSearchIndexMap . get ( unicode ) , divTree ) ; } } addLinksForIndexes ( divTree ) ; body . addContent ( ( configuration . allowTag ( HtmlTag . MAIN ) ) ? HtmlTree . MAIN ( divTree ) : divTree ) ; if ( configuration . allowTag ( HtmlTag . FOOTER ) ) { htmlTree = HtmlTree . FOOTER ( ) ; } addNavLinks ( false , htmlTree ) ; addBottom ( htmlTree ) ; if ( configuration . allowTag ( HtmlTag . FOOTER ) ) { body . addContent ( htmlTree ) ; } createSearchIndexFiles ( ) ; printHtmlDocument ( null , true , body ) ; }
Generate the contents of each index file, with Header, Footer,
Member Field, Method and Constructor Description.