当前位置: 首页>>代码示例>>Java>>正文


Java DeprecatedAPIListBuilder.NUM_TYPES属性代码示例

本文整理汇总了Java中com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder.NUM_TYPES属性的典型用法代码示例。如果您正苦于以下问题:Java DeprecatedAPIListBuilder.NUM_TYPES属性的具体用法?Java DeprecatedAPIListBuilder.NUM_TYPES怎么用?Java DeprecatedAPIListBuilder.NUM_TYPES使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder的用法示例。


在下文中一共展示了DeprecatedAPIListBuilder.NUM_TYPES属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateDeprecatedListFile

/**
 * Print the deprecated API list. Separately print all class kinds and
 * member kinds.
 *
 * @param deprapi list of deprecated API built already.
 */
protected void generateDeprecatedListFile(DeprecatedAPIListBuilder deprapi)
         throws IOException {
    writeHeader();

    bold(configuration.getText("doclet.Contents"));
    ul();
    for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
        writeIndexLink(deprapi, i);
    }
    ulEnd();
    println();

    for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
        if (deprapi.hasDocumentation(i)) {
            writeAnchor(deprapi, i);
            writers[i].printDeprecatedAPI(deprapi.getList(i),
                HEADING_KEYS[i]);
        }
    }
    printDeprecatedFooter();
}
 
开发者ID:unktomi,项目名称:form-follows-function,代码行数:27,代码来源:DeprecatedListWriter.java

示例2: getContentsList

/**
 * Get the contents list.
 *
 * @param deprapi the deprecated list builder
 * @return a content tree for the contents list
 */
public Content getContentsList(DeprecatedAPIListBuilder deprapi) {
    Content headContent = getResource("doclet.Deprecated_API");
    Content heading = HtmlTree.HEADING(HtmlConstants.TITLE_HEADING, true,
            HtmlStyle.title, headContent);
    Content div = HtmlTree.DIV(HtmlStyle.header, heading);
    Content headingContent = getResource("doclet.Contents");
    div.addContent(HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, true,
            headingContent));
    Content ul = new HtmlTree(HtmlTag.UL);
    for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
        addIndexLink(deprapi, i, ul);
    }
    div.addContent(ul);
    return div;
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:21,代码来源:DeprecatedListWriter.java

示例3: generateDeprecatedListFile

/**
 * Generate the deprecated API list.
 *
 * @param deprapi list of deprecated API built already.
 */
protected void generateDeprecatedListFile(DeprecatedAPIListBuilder deprapi)
        throws IOException {
    Content body = getHeader();
    body.addContent(getContentsList(deprapi));
    String memberTableSummary;
    String[] memberTableHeader = new String[1];
    HtmlTree div = new HtmlTree(HtmlTag.DIV);
    div.addStyle(HtmlStyle.contentContainer);
    for (int i = 0; i < DeprecatedAPIListBuilder.NUM_TYPES; i++) {
        if (deprapi.hasDocumentation(i)) {
            addAnchor(deprapi, i, div);
            memberTableSummary =
                    configuration.getText("doclet.Member_Table_Summary",
                    configuration.getText(HEADING_KEYS[i]),
                    configuration.getText(SUMMARY_KEYS[i]));
            memberTableHeader[0] = configuration.getText("doclet.0_and_1",
                    configuration.getText(HEADER_KEYS[i]),
                    configuration.getText("doclet.Description"));
            // DeprecatedAPIListBuilder.PACKAGE == 0, so if i == 0, it is
            // a PackageDoc.
            if (i == DeprecatedAPIListBuilder.PACKAGE)
                addPackageDeprecatedAPI(deprapi.getList(i),
                        HEADING_KEYS[i], memberTableSummary, memberTableHeader, div);
            else
                writers[i - 1].addDeprecatedAPI(deprapi.getList(i),
                        HEADING_KEYS[i], memberTableSummary, memberTableHeader, div);
        }
    }
    body.addContent(div);
    addNavLinks(false, body);
    addBottom(body);
    printHtmlDocument(null, true, body);
}
 
开发者ID:aducode,项目名称:openjdk-source-code-learn,代码行数:38,代码来源:DeprecatedListWriter.java


注:本文中的com.sun.tools.doclets.internal.toolkit.util.DeprecatedAPIListBuilder.NUM_TYPES属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。