|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.behavior.AbstractBehavior
wicket.behavior.AbstractHeaderContributor
wicket.behavior.StringHeaderContributor
wicket.extensions.util.resource.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,
wicket.model.IModel variablesModel)
Construct. |
| Method Summary | |
static TextTemplateHeaderContributor |
forCss(java.lang.Class clazz,
java.lang.String fileName,
wicket.model.IModel variablesModel)
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. |
static TextTemplateHeaderContributor |
forCss(TextTemplate template,
wicket.model.IModel variablesModel)
Gets a css header contributor based on the given text template. |
static TextTemplateHeaderContributor |
forJavaScript(java.lang.Class clazz,
java.lang.String fileName,
wicket.model.IModel variablesModel)
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. |
static TextTemplateHeaderContributor |
forJavaScript(TextTemplate template,
wicket.model.IModel variablesModel)
Gets a javascript header contributor based on the given text template. |
| Methods inherited from class wicket.behavior.StringHeaderContributor |
detachModel, getHeaderContributors, toString |
| Methods inherited from class wicket.behavior.AbstractHeaderContributor |
cleanup, renderHead |
| Methods inherited from class wicket.behavior.AbstractBehavior |
bind, exception, 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,
wicket.model.IModel variablesModel)
template - The template with the contributionvariablesModel - Optional model for variable substitution| Method Detail |
public static TextTemplateHeaderContributor forCss(TextTemplate template,
wicket.model.IModel variablesModel)
template - The text template that is the base for the contributionvariablesModel - The variables to interpolate
public static TextTemplateHeaderContributor forCss(java.lang.Class clazz,
java.lang.String fileName,
wicket.model.IModel variablesModel)
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
public static TextTemplateHeaderContributor forJavaScript(TextTemplate template,
wicket.model.IModel variablesModel)
template - The text template that is the base for the contributionvariablesModel - The variables to interpolate
public static TextTemplateHeaderContributor forJavaScript(java.lang.Class clazz,
java.lang.String fileName,
wicket.model.IModel variablesModel)
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
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||