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


Java HtmlCanvas.render方法代码示例

本文整理汇总了Java中org.rendersnake.HtmlCanvas.render方法的典型用法代码示例。如果您正苦于以下问题:Java HtmlCanvas.render方法的具体用法?Java HtmlCanvas.render怎么用?Java HtmlCanvas.render使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.rendersnake.HtmlCanvas的用法示例。


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

示例1: generateIndexFile

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
protected void generateIndexFile() throws IOException, MojoExecutionException {
	File indexFile = createIndexFile();

	HtmlCanvas html = new HtmlCanvas();
	html.render(new IndexPage(indexTitle));

	FileUtils.write(indexFile, formatHtml(html.toHtml()), "UTF-8");		
}
 
开发者ID:fastconnect,项目名称:tibco-fcunit,代码行数:9,代码来源:UnitTestsIndexMojo.java

示例2: generateMenuFile

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
protected void generateMenuFile() throws IOException, MojoExecutionException {
	File menuFile = createMenuFile();
	
	HtmlCanvas html = new HtmlCanvas();
	html.render(new MenuPage(indexTitle, session, projectNameProperty));
	
	FileUtils.write(menuFile, formatHtml(html.toHtml()), "UTF-8");		
}
 
开发者ID:fastconnect,项目名称:tibco-fcunit,代码行数:9,代码来源:UnitTestsIndexMojo.java

示例3: renderOn

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
@Override
public void renderOn(HtmlCanvas html) throws IOException {
	html.ul();
	
	for (MavenProject project : session.getProjects()) {
		if (BWEAR_TYPE.equals(project.getPackaging()) || PROJLIB_TYPE.equals(project.getPackaging())) {
			html.render(new ProjectElement(project, projectNameProperty));
		}
	}
	
	html._ul();
}
 
开发者ID:fastconnect,项目名称:tibco-fcunit,代码行数:13,代码来源:MenuPage.java

示例4: doRenderOn

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
@Override
protected void doRenderOn(HtmlCanvas html) throws IOException {
    ClassPage page = PageRenderer.getPage(html);
    ClassDocAccess classDocAccess = new ClassDocAccess(generator.getRootDoc(), page.getClassDoc());
    ClassDoc classDoc = page.getClassDoc();

    html.div(class_("api_header")).p().content(getModifier(classDoc)).h1();
    html.render(new ClassNameRenderable(generator, classDoc, ClassNameRenderable.BOUNDS));
    html._h1();
    renderSuperclass(html, classDocAccess);
    renderImplementedInterfaces(html, classDocAccess);
    html._div();

    renderHierarchy(html, classDocAccess);
    renderSubclasses(html, classDocAccess);

    if (classDoc.inlineTags() != null && classDoc.inlineTags().length > 0) {
        html.h2().content("Overview");
        html.p().render(new InlineTagsRenderer(generator, classDoc.inlineTags(), classDoc.position()))._p();
    }

    html.h2().content("Summary");
    renderEnumValuesSummary(html, classDocAccess);
    renderFieldSummary(html, classDocAccess);
    renderConstructorsSummary(html, classDocAccess);
    renderMethodsSummary(html, classDocAccess);

    renderEnumValues(html, classDocAccess);
    renderFields(html, classDocAccess);
    renderConstructors(html, classDocAccess);
    renderMethods(html, classDocAccess);
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:33,代码来源:ClassContentRenderable.java

示例5: renderSuperclass

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
private void renderSuperclass(HtmlCanvas html, ClassDocAccess classDocAccess) throws IOException {
    Type superclass = classDocAccess.getSuperclass();
    if (superclass != null) {
        html.p().write("extends ");
        html.render(new ClassNameRenderable(generator, superclass, ClassNameRenderable.LINK));
        html._p();
    }
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:9,代码来源:ClassContentRenderable.java

示例6: renderImplementedInterfaces

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
private void renderImplementedInterfaces(HtmlCanvas html, ClassDocAccess classDocAccess) throws IOException {
    List<Type> interfaces = classDocAccess.getImplementedInterfaces();
    if (interfaces.size() > 0) {
        html.p().write("implements ");
        for (int cnt = 0; cnt < interfaces.size(); cnt++) {
            Type intf = interfaces.get(cnt);
            if (cnt > 0) {
                html.write(", ");
            }
            html.render(new ClassNameRenderable(generator, intf, ClassNameRenderable.LINK));
        }
        html._p();
    }
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:15,代码来源:ClassContentRenderable.java

示例7: renderSubclasses

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
private void renderSubclasses(HtmlCanvas html, ClassDocAccess classDocAccess) throws IOException {
    List<Type> subclasses = classDocAccess.getSubclasses();
    if (!subclasses.isEmpty()) {
        html.h4().content("Subclasses:").p(class_("indent"));
        for (int cnt = 0; cnt < subclasses.size(); cnt++) {
            if (cnt >= 1) {
                html.write(", ");
            }
            html.render(new ClassNameRenderable(generator, subclasses.get(cnt), ClassNameRenderable.LINK));
        }
        html._p();
    }
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:14,代码来源:ClassContentRenderable.java

示例8: renderExecutableMemberParams

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
private void renderExecutableMemberParams(HtmlCanvas html, ExecutableMemberDoc executableMemberDoc) throws
        IOException {
    html.write('(');
    Parameter[] params = executableMemberDoc.parameters();
    for (int i = 0; i < params.length; i++) {
        if (i > 0) {
            html.write(", ");
        }
        Parameter param = params[i];
        html.render(new ClassNameRenderable(generator, param.type(), ClassNameRenderable.LINK));
        html.write(' ').write(param.name());
        html.write(param.type().dimension());
    }
    html.write(')');
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:16,代码来源:ClassContentRenderable.java

示例9: render

import org.rendersnake.HtmlCanvas; //导入方法依赖的package包/类
public void render(IDocPage page) throws IOException {
    HtmlCanvas canvas = new HtmlCanvas(page.createWriter());
    setupRendering(canvas.getPageContext(), page);
    canvas.render(pageRenderable);
    canvas.getOutputWriter().close();
}
 
开发者ID:nicolaschriste,项目名称:docdown,代码行数:7,代码来源:PageRenderer.java


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