|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.behavior.AbstractBehavior org.apache.wicket.behavior.AbstractHeaderContributor org.apache.wicket.behavior.StringHeaderContributor org.apache.wicket.util.template.TextTemplateHeaderContributor
public class TextTemplateHeaderContributor
A header contributor that will contribute the contents of the given template interpolated with
the provided Map
of variables.
Constructor Summary | |
---|---|
protected |
TextTemplateHeaderContributor(TextTemplate template,
IModel variablesModel)
Constructor. |
Method Summary | |
---|---|
static TextTemplateHeaderContributor |
forCss(java.lang.Class clazz,
java.lang.String fileName,
IModel variablesModel)
Retrieves a CSS header contributor that will load the template from the given file name relative to (or in the same package as) the provided clazz argument. |
static TextTemplateHeaderContributor |
forCss(TextTemplate template,
IModel variablesModel)
Retrieves a CSS header contributor based on the given TextTemplate . |
static TextTemplateHeaderContributor |
forJavaScript(java.lang.Class clazz,
java.lang.String fileName,
IModel variablesModel)
Retrieves a JavaScript header contributor that will load the template from the given file name relative to (or in the same package as) the provided clazz argument. |
static TextTemplateHeaderContributor |
forJavaScript(TextTemplate template,
IModel variablesModel)
Retrieves a JavaScript header contributor based on the given TextTemplate . |
Methods inherited from class org.apache.wicket.behavior.StringHeaderContributor |
---|
detach, getHeaderContributors, toString |
Methods inherited from class org.apache.wicket.behavior.AbstractHeaderContributor |
---|
renderHead |
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior |
---|
afterRender, beforeRender, bind, cleanup, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, onRendered, rendered |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TextTemplateHeaderContributor(TextTemplate template, IModel variablesModel)
template
- the TextTemplate
with the contributionvariablesModel
- optional IModel
for variable substitutionMethod Detail |
---|
public static TextTemplateHeaderContributor forCss(TextTemplate template, IModel variablesModel)
TextTemplate
. The
template will be interpolated with the given variables. The content will be written as the
body of a script/tag pair.
template
- the TextTemplate
that is the base for the contributionvariablesModel
- the variables to interpolate
TextTemplateHeaderContributor
instancepublic static TextTemplateHeaderContributor forCss(java.lang.Class clazz, java.lang.String fileName, IModel variablesModel)
clazz
argument. The
template will be interpolated with the given variables. The content will be written as the
body of a script/tag pair.
clazz
- the Class
to be used for retrieving the classloader for loading the
packaged template.fileName
- the name of the file, relative to the clazz
positionvariablesModel
- the variables to interpolate
TextTemplateHeaderContributor
instancepublic static TextTemplateHeaderContributor forJavaScript(TextTemplate template, IModel variablesModel)
TextTemplate
.
The template will be interpolated with the given variables. The content will be written as
the body of a script/tag pair.
template
- the TextTemplate
that is the base for the contributionvariablesModel
- the variables to interpolate
TextTemplateHeaderContributor
instancepublic static TextTemplateHeaderContributor forJavaScript(java.lang.Class clazz, java.lang.String fileName, IModel variablesModel)
clazz
argument. The
template will be interpolated with the given variables. The content will be written as the
body of a script/tag pair.
clazz
- the Class
to be used for retrieving the classloader for loading the
packaged template.fileName
- the name of the file, relative to the clazz
positionvariablesModel
- the variables to interpolate
TextTemplateHeaderContributor
instance
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |