public class

EmbeddedTemplateWebPanel

extends AbstractWebPanel
java.lang.Object
   ↳ com.atlassian.plugin.web.model.AbstractWebPanel
     ↳ com.atlassian.plugin.web.model.EmbeddedTemplateWebPanel

Class Overview

This class is used for web panel declaration that do not have a custom 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.

Summary

[Expand]
Inherited Fields
From class com.atlassian.plugin.web.model.AbstractWebPanel
Public Constructors
EmbeddedTemplateWebPanel(PluginAccessor pluginAccessor)
Public Methods
String getHtml(Map<StringObject> context)
void setTemplateBody(String templateBody)
[Expand]
Inherited Methods
From class com.atlassian.plugin.web.model.AbstractWebPanel
From class java.lang.Object
From interface com.atlassian.plugin.web.model.WebPanel

Public Constructors

public EmbeddedTemplateWebPanel (PluginAccessor pluginAccessor)

Public Methods

public String getHtml (Map<StringObject> context)

public void setTemplateBody (String templateBody)

Parameters
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.xml