|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectwicket.util.resource.AbstractResourceStream
wicket.util.resource.AbstractStringResourceStream
wicket.extensions.util.resource.TextTemplate
wicket.extensions.util.resource.TextTemplateDecorator
Provides the ability to 'decorate' the actual template contents before it is contributed to the header. E.g. to embed in a javascript tag pair.
| Field Summary | |
protected TextTemplate |
decorated
The decorated template. |
| Constructor Summary | |
TextTemplateDecorator(TextTemplate textTemplate)
Construct. |
|
| Method Summary | |
java.lang.String |
asString()
|
java.lang.String |
asString(java.util.Map variables)
Interpolate the map of variables with the content and return the resulting string without replacing the content. |
void |
close()
|
boolean |
equals(java.lang.Object obj)
|
abstract java.lang.String |
getAfterTemplateContents()
Gets the string to put after the actual template contents, e.g. |
abstract java.lang.String |
getBeforeTemplateContents()
Gets the string to put before the actual template contents, e.g. |
java.lang.String |
getContentType()
|
java.io.InputStream |
getInputStream()
|
java.util.Locale |
getLocale()
|
java.lang.String |
getString()
Gets the string resource. |
int |
hashCode()
|
wicket.util.time.Time |
lastModifiedTime()
|
long |
length()
|
void |
setCharset(java.nio.charset.Charset charset)
|
void |
setLastModified(wicket.util.time.Time lastModified)
|
void |
setLocale(java.util.Locale locale)
|
java.lang.String |
toString()
|
| Methods inherited from class wicket.extensions.util.resource.TextTemplate |
interpolate |
| Methods inherited from class wicket.util.resource.AbstractResourceStream |
getCharset |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final TextTemplate decorated
| Constructor Detail |
public TextTemplateDecorator(TextTemplate textTemplate)
textTemplate - The text template to decorate| Method Detail |
public java.lang.String asString()
asString in interface wicket.util.resource.IStringResourceStreamasString in class TextTemplategetBeforeTemplateContents()
and getAfterTemplateContents().TextTemplate.asString()public java.lang.String asString(java.util.Map variables)
TextTemplate
asString in class TextTemplatevariables - The variables to interpolate
getBeforeTemplateContents()
and getAfterTemplateContents().TextTemplate.asString(java.util.Map)public abstract java.lang.String getBeforeTemplateContents()
<script type="text/javascript">
public abstract java.lang.String getAfterTemplateContents()
</script>
public void close()
throws java.io.IOException
java.io.IOExceptionAbstractStringResourceStream.close()public boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)public java.lang.String getContentType()
AbstractStringResourceStream.getContentType()
public java.io.InputStream getInputStream()
throws wicket.util.resource.ResourceStreamNotFoundException
wicket.util.resource.ResourceStreamNotFoundExceptionAbstractStringResourceStream.getInputStream()public java.util.Locale getLocale()
AbstractResourceStream.getLocale()public int hashCode()
Object.hashCode()public wicket.util.time.Time lastModifiedTime()
AbstractStringResourceStream.lastModifiedTime()public long length()
IResourceStream.length()public void setCharset(java.nio.charset.Charset charset)
AbstractResourceStream.setCharset(java.nio.charset.Charset)public void setLastModified(wicket.util.time.Time lastModified)
AbstractStringResourceStream.setLastModified(wicket.util.time.Time)public void setLocale(java.util.Locale locale)
AbstractResourceStream.setLocale(java.util.Locale)public java.lang.String getString()
TextTemplate
getString in class TextTemplateTextTemplate.getString()public java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||