@Component(value="panel") public class PanelMacro extends org.xwiki.rendering.macro.AbstractMacro<PanelMacroParameters>
| Constructor and Description |
|---|
PanelMacro()
Create and initialize the descriptor of the macro.
|
| Modifier and Type | Method and Description |
|---|---|
List<org.xwiki.rendering.block.Block> |
execute(PanelMacroParameters parameters,
String content,
org.xwiki.rendering.transformation.MacroTransformationContext context) |
org.xwiki.component.manager.ComponentManager |
getComponentManager() |
protected org.xwiki.rendering.parser.Parser |
getSyntaxParser(org.xwiki.rendering.transformation.MacroTransformationContext context)
Get the parser for the current syntax.
|
protected List<org.xwiki.rendering.block.Block> |
parseContent(PanelMacroParameters parameters,
String content,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Renders the panel's content (which can contain content in the current syntax).
|
protected List<org.xwiki.rendering.block.Block> |
parseSourceSyntax(String content,
org.xwiki.rendering.transformation.MacroTransformationContext context)
Parse provided content with the parser of the current wiki syntax.
|
protected List<org.xwiki.rendering.block.Block> |
parseTitle(org.xwiki.rendering.parser.Parser parser,
String titleParameter)
Renders the panel's title (which can contain content in the current syntax).
|
boolean |
supportsInlineMode() |
public PanelMacro()
public List<org.xwiki.rendering.block.Block> execute(PanelMacroParameters parameters, String content, org.xwiki.rendering.transformation.MacroTransformationContext context) throws org.xwiki.rendering.macro.MacroExecutionException
org.xwiki.rendering.macro.MacroExecutionExceptionpublic org.xwiki.component.manager.ComponentManager getComponentManager()
public boolean supportsInlineMode()
protected List<org.xwiki.rendering.block.Block> parseTitle(org.xwiki.rendering.parser.Parser parser, String titleParameter) throws org.xwiki.rendering.macro.MacroExecutionException
parser - the appropriate syntax parsertitleParameter - the title which is going to be parsedorg.xwiki.rendering.macro.MacroExecutionException - if the parsing failsprotected List<org.xwiki.rendering.block.Block> parseContent(PanelMacroParameters parameters, String content, org.xwiki.rendering.transformation.MacroTransformationContext context) throws org.xwiki.rendering.macro.MacroExecutionException
parameters - content - context - org.xwiki.rendering.macro.MacroExecutionExceptionprotected List<org.xwiki.rendering.block.Block> parseSourceSyntax(String content, org.xwiki.rendering.transformation.MacroTransformationContext context) throws org.xwiki.rendering.macro.MacroExecutionException
content - the content to parse.context - the context of the macro transformation.org.xwiki.rendering.macro.MacroExecutionException - failed to parse contentprotected org.xwiki.rendering.parser.Parser getSyntaxParser(org.xwiki.rendering.transformation.MacroTransformationContext context)
throws org.xwiki.rendering.macro.MacroExecutionException
context - the context of the macro transformation (from which to get the current syntax)org.xwiki.rendering.macro.MacroExecutionException - Failed to find source parser.Copyright © 2003–2018 eXo Platform SAS. All rights reserved.