|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.ResourceReference
org.apache.wicket.resource.TextTemplateResourceReference
public class TextTemplateResourceReference
A class which adapts a PackagedTextTemplate
to a ResourceReference
.
https://cwiki.apache.org/WICKET/dynamically-generate-a-css-stylesheet.html}
,
Serialized FormField Summary |
---|
Fields inherited from class org.apache.wicket.ResourceReference |
---|
locale |
Constructor Summary | |
---|---|
TextTemplateResourceReference(Class<?> scope,
String fileName,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a PackagedTextTemplate . |
|
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a PackagedTextTemplate . |
|
TextTemplateResourceReference(Class<?> scope,
String fileName,
String contentType,
String encoding,
IModel<Map<String,Object>> variablesModel)
Creates a resource reference to a PackagedTextTemplate . |
Method Summary | |
---|---|
Time |
lastModifiedTime()
Returns the last modified time of the PackagedTextTemplate itself. |
protected Resource |
newResource()
Creates a new resource which returns the interpolated value of the text template. |
Methods inherited from class org.apache.wicket.ResourceReference |
---|
bind, equals, getLocale, getName, getResource, getScope, getSharedResourceKey, getStyle, hashCode, invalidate, isStateless, setLocale, setStateless, setStyle, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextTemplateResourceReference(Class<?> scope, String fileName, IModel<Map<String,Object>> variablesModel)
PackagedTextTemplate
.
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(Class<?> scope, String fileName, String contentType, IModel<Map<String,Object>> variablesModel)
PackagedTextTemplate
.
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(Class<?> scope, String fileName, String contentType, String encoding, IModel<Map<String,Object>> variablesModel)
PackagedTextTemplate
.
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 modelMethod Detail |
---|
protected Resource newResource()
newResource
in class ResourceReference
public Time lastModifiedTime()
PackagedTextTemplate
itself.
lastModifiedTime
in class ResourceReference
PackagedTextTemplate
itself
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |