public class ResourceTemplateWebPanel extends AbstractWebPanel
class attribute in their descriptor, but do have a
location attribute in their resource child element, which
points to a template file on the (plugin's) classpath.DefaultWebPanelModuleDescriptorplugin| Constructor and Description |
|---|
ResourceTemplateWebPanel(com.atlassian.plugin.PluginAccessor pluginAccessor) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHtml(Map<String,Object> context) |
void |
setResourceFilename(String resourceFilename)
Specifies the name of the template file that is to be rendered.
|
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 ResourceTemplateWebPanel(com.atlassian.plugin.PluginAccessor pluginAccessor)
public void setResourceFilename(String resourceFilename)
resourceFilename - the name of the template file that is to be rendered.
May not be null.public 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.