public class

StaticWebPanelRenderer

extends Object
implements WebPanelRenderer
java.lang.Object
   ↳ com.atlassian.plugin.web.renderer.StaticWebPanelRenderer

Class Overview

Static WebPanelRenderer, just returns the supplied text.

Summary

Constants
String RESOURCE_TYPE
Fields
public static final StaticWebPanelRenderer RENDERER
Public Constructors
StaticWebPanelRenderer()
Public Methods
String getResourceType()
void render(String templateName, Plugin plugin, Map<StringObject> context, Writer writer)
Renders the template to the writer.
String renderFragment(String fragment, Plugin plugin, Map<StringObject> context)
Renders the fragment using the given context and adding I18nResolver and WebResourceManager.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.web.renderer.WebPanelRenderer

Constants

public static final String RESOURCE_TYPE

Constant Value: "static"

Fields

public static final StaticWebPanelRenderer RENDERER

Public Constructors

public StaticWebPanelRenderer ()

Public Methods

public String getResourceType ()

public void render (String templateName, Plugin plugin, Map<StringObject> context, Writer writer)

Renders the template to the writer.

Parameters
templateName file name of the template to render
plugin the context plugin. Used, for example, to resolve templates and other resources from the classpath via getClassLoader()
context Map of objects to make available in the template rendering process
writer where to write the rendered template

public String renderFragment (String fragment, Plugin plugin, Map<StringObject> context)

Renders the fragment using the given context and adding I18nResolver and WebResourceManager.

Parameters
fragment template fragment to render
plugin the context plugin. Used, for example, to resolve templates and other resources from the classpath via getClassLoader()
context Map of objects to make available in the template rendering process
Returns
  • rendered template