| wicket.behavior.StringHeaderContributor wicket.extensions.util.resource.TextTemplateHeaderContributor
TextTemplateHeaderContributor | public class TextTemplateHeaderContributor extends StringHeaderContributor (Code) | | A header contributor that will contribute the contents of the given template
interpolated with the provided map of variables.
author: Eelco Hillenius |
TextTemplateHeaderContributor | protected TextTemplateHeaderContributor(TextTemplate template, IModel variablesModel)(Code) | | Construct.
Parameters: template - The template with the contribution Parameters: variablesModel - Optional model for variable substitution |
forCss | public static TextTemplateHeaderContributor forCss(TextTemplate template, IModel variablesModel)(Code) | | Gets a css header contributor based on the given text template. The
template will be interpolated with the given variables. The content will
be written as the body of a script tag pair.
Parameters: template - The text template that is the base for the contribution Parameters: variablesModel - The variables to interpolate The header contributor instance |
forCss | public static TextTemplateHeaderContributor forCss(Class clazz, String fileName, IModel variablesModel)(Code) | | Gets a css header contributor that will load the template from the given
file name relative to (/in the same package as) the provided clazz
argument. The template will be interpolated with the given variables. The
content will be written as the body of a script tag pair.
Parameters: clazz - The class to be used for retrieving the classloader forloading the packaged template. Parameters: fileName - The name of the file, relative to the clazz position Parameters: variablesModel - The variables to interpolate The header contributor instance |
forJavaScript | public static TextTemplateHeaderContributor forJavaScript(TextTemplate template, IModel variablesModel)(Code) | | Gets a javascript header contributor based on the given text template.
The template will be interpolated with the given variables. The content
will be written as the body of a script tag pair.
Parameters: template - The text template that is the base for the contribution Parameters: variablesModel - The variables to interpolate The header contributor instance |
forJavaScript | public static TextTemplateHeaderContributor forJavaScript(Class clazz, String fileName, IModel variablesModel)(Code) | | Gets a javascript header contributor that will load the template from the
given file name relative to (/in the same package as) the provided clazz
argument. The template will be interpolated with the given variables. The
content will be written as the body of a script tag pair.
Parameters: clazz - The class to be used for retrieving the classloader forloading the packaged template. Parameters: fileName - The name of the file, relative to the clazz position Parameters: variablesModel - The variables to interpolate The header contributor instance |
|
|