public class TextTemplateResourceReference extends ResourceReference implements IClusterable
PackageTextTemplate to a ResourceReference."https://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html"},
Serialized FormResourceReference.Key, ResourceReference.UrlAttributes| Constructor and Description |
|---|
TextTemplateResourceReference(Class<?> scope,
String fileName,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a
PackageTextTemplate. |
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a
PackageTextTemplate. |
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
String encoding,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a
PackageTextTemplate. |
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
String encoding,
IModel<Map<String,Object>> variablesModel,
Locale locale,
String style,
String variation)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
IResource |
getResource()
Creates a new resource which returns the interpolated value of the text template.
|
canBeRegistered, equals, getDependencies, getExtension, getKey, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toStringpublic TextTemplateResourceReference(Class<?> scope, String fileName, IModel<Map<String,Object>> variablesModel)
PackageTextTemplate.scope - the Class to be used for retrieving the classloader for loading the
PackagedTextTemplatefileName - the file namevariablesModel - the template variables as a modelpublic TextTemplateResourceReference(Class<?> scope, String fileName, String contentType, IModel<Map<String,Object>> variablesModel)
PackageTextTemplate.scope - the Class to be used for retrieving the classloader for loading the
PackagedTextTemplatefileName - the file namecontentType - the mime type of this resource, such as "image/jpeg" or "
text/html"variablesModel - the template variables as a modelpublic TextTemplateResourceReference(Class<?> scope, String fileName, String contentType, String encoding, IModel<Map<String,Object>> variablesModel)
PackageTextTemplate.scope - the Class to be used for retrieving the classloader for loading the
PackagedTextTemplatefileName - the file namecontentType - the mime type of this resource, such as "image/jpeg" or "
text/html"encoding - the file's encoding, for example, "UTF-8"variablesModel - the template variables as a modelpublic TextTemplateResourceReference(Class<?> scope, String fileName, String contentType, String encoding, IModel<Map<String,Object>> variablesModel, Locale locale, String style, String variation)
scope - the Class to be used for retrieving the classloader for loading the
PackagedTextTemplatefileName - the file namecontentType - the mime type of this resource, such as "image/jpeg" or "
text/html"encoding - the file's encoding, for example, "UTF-8"variablesModel - the template variables as a modellocale - Preferred locale for the resourcestyle - Preferred style for the resourcevariation - Preferred variation for the resourcepublic IResource getResource()
getResource in class ResourceReferenceCopyright © 2006–2014 Apache Software Foundation. All rights reserved.