|
||||||||||
| 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 Form| Field 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
PackagedTextTemplatefileName - the file namevariablesModel - the template variables as a model
public 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
PackagedTextTemplatefileName - the file namecontentType - the mime type of this resource, such as "image/jpeg" or "
text/html"variablesModel - the template variables as a model
public 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
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 model| Method Detail |
|---|
protected Resource newResource()
newResource in class ResourceReferencepublic Time lastModifiedTime()
PackagedTextTemplate itself.
lastModifiedTime in class ResourceReferencePackagedTextTemplate itself
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||