|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.request.resource.ResourceReference org.apache.wicket.resource.TextTemplateResourceReference
public class TextTemplateResourceReference
A class which adapts a PackageTextTemplate
to a ResourceReference
.
"https://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html"}
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
ResourceReference.Key, ResourceReference.UrlAttributes |
Constructor Summary | |
---|---|
TextTemplateResourceReference(java.lang.Class<?> scope,
java.lang.String fileName,
IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel)
Creates a resource reference to a PackageTextTemplate . |
|
TextTemplateResourceReference(java.lang.Class<?> scope,
java.lang.String fileName,
java.lang.String contentType,
IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel)
Creates a resource reference to a PackageTextTemplate . |
|
TextTemplateResourceReference(java.lang.Class<?> scope,
java.lang.String fileName,
java.lang.String contentType,
java.lang.String encoding,
IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel)
Creates a resource reference to a PackageTextTemplate . |
|
TextTemplateResourceReference(java.lang.Class<?> scope,
java.lang.String fileName,
java.lang.String contentType,
java.lang.String encoding,
IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel,
java.util.Locale locale,
java.lang.String style,
java.lang.String variation)
Construct. |
Method Summary | |
---|---|
IResource |
getResource()
Creates a new resource which returns the interpolated value of the text template. |
Methods inherited from class org.apache.wicket.request.resource.ResourceReference |
---|
canBeRegistered, equals, getExtension, getLocale, getName, getScope, getStyle, getUrlAttributes, getVariation, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextTemplateResourceReference(java.lang.Class<?> scope, java.lang.String fileName, IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel)
PackageTextTemplate
.
scope
- the Class
to be used for retrieving the classloader for loading the
PackagedTextTemplate
fileName
- the file namevariablesModel
- the template variables as a modelpublic TextTemplateResourceReference(java.lang.Class<?> scope, java.lang.String fileName, java.lang.String contentType, IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel)
PackageTextTemplate
.
scope
- the Class
to be used for retrieving the classloader for loading the
PackagedTextTemplate
fileName
- the file namecontentType
- the mime type of this resource, such as "image/jpeg
" or "
text/html
"variablesModel
- the template variables as a modelpublic TextTemplateResourceReference(java.lang.Class<?> scope, java.lang.String fileName, java.lang.String contentType, java.lang.String encoding, IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel)
PackageTextTemplate
.
scope
- the Class
to be used for retrieving the classloader for loading the
PackagedTextTemplate
fileName
- 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(java.lang.Class<?> scope, java.lang.String fileName, java.lang.String contentType, java.lang.String encoding, IModel<java.util.Map<java.lang.String,java.lang.Object>> variablesModel, java.util.Locale locale, java.lang.String style, java.lang.String variation)
scope
- the Class
to be used for retrieving the classloader for loading the
PackagedTextTemplate
fileName
- 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 resourceMethod Detail |
---|
public IResource getResource()
getResource
in class ResourceReference
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |