public class EmbeddedTemplateWebPanel extends AbstractWebPanel
class attribute in their descriptor, nor a location
attribute in their resource child element.
This class reads the web panel's content from the resource element's content.
DefaultWebPanelModuleDescriptorplugin| Constructor and Description |
|---|
EmbeddedTemplateWebPanel(com.atlassian.plugin.PluginAccessor pluginAccessor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHtml(Map<String,Object> context) |
void |
setTemplateBody(String templateBody) |
void |
writeHtml(Writer writer,
Map<String,Object> context)
Default implementation of
WebPanel.writeHtml(java.io.Writer, java.util.Map) that delegates to
WebPanel.getHtml(java.util.Map). |
getRenderer, setPlugin, setResourceTypepublic EmbeddedTemplateWebPanel(com.atlassian.plugin.PluginAccessor pluginAccessor)
public void setTemplateBody(String templateBody)
templateBody - the body of the web panel (may contain any content type such as velocity or just static
HTML) that was inlined in atlassian-plugin.xmlpublic void writeHtml(Writer writer, Map<String,Object> context) throws IOException
AbstractWebPanelWebPanel.writeHtml(java.io.Writer, java.util.Map) that delegates to
WebPanel.getHtml(java.util.Map). This method is provided for backwards compatibility with
pre-2.11 implementations of WebPanel. Panels SHOULD be upgraded to support this method natively
for performance reasons.writeHtml in interface WebPanelwriteHtml in class AbstractWebPanelwriter - the writer to append the panel output tocontext - the contextual information that can be used during
rendering. Context elements are not standardized and are
application-specific, so refer to your application's documentation to
learn what is available.IOExceptionCopyright © 2018 Atlassian. All rights reserved.