本文整理了Java中org.xwiki.rendering.block.Block.addChildren()
方法的一些代码示例,展示了Block.addChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Block.addChildren()
方法的具体详情如下:
包路径:org.xwiki.rendering.block.Block
类名称:Block
方法名:addChildren
[英]Adds several children blocks to the end of the children list of the current block. For example a bold sentence is made up of a Bold block to which the different words making up the text have been added to.
[中]将几个子块添加到当前块的子列表的末尾。例如,粗体句子由粗体块组成,其中添加了构成文本的不同单词。
代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-api
block.addChildren(filteredBlocks);
} else {
block.addChild(childBlock.clone());
代码示例来源:origin: org.xwiki.platform/xwiki-platform-rendering-macro-gallery
galleryBlock.addChildren(this.contentParser.parse(content, context, false, false).getChildren());
return Collections.singletonList(galleryBlock);
} else {
代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-parser-wikimodel
&& (((FormatBlock) previous).getFormat() == block.getFormat())
&& (((FormatBlock) previous).getParameters().equals(block.getParameters()))) {
previous.addChildren(block.getChildren());
} else {
this.stack.push(block);
代码示例来源:origin: org.xwiki.platform/xwiki-platform-dashboard-macro
gadgetContainers.get(columnIndex).addChildren(gadgetsRenderer.decorateGadget(gadget));
代码示例来源:origin: org.xwiki.platform/xwiki-core-rendering-macro-box
boxBlock.addChildren(this.contentParser.parse(titleParameter, context.getSyntax(), true));
boxBlock.addChildren(titleBlockList);
boxBlock.addChildren(contentBlocks);
代码示例来源:origin: org.xwiki.rendering/xwiki-rendering-macro-footnotes
result = new ListItemBlock(Collections.singletonList(result));
result.addChild(new SpaceBlock());
result.addChildren(parsedContent);
return (ListItemBlock) result;
内容来源于网络,如有侵权,请联系作者删除!