本文整理汇总了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");
}
示例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");
}
示例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();
}
示例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);
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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(')');
}
示例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();
}