org.apache.wicket.util.template
Class CssTemplate
java.lang.Object
org.apache.wicket.util.resource.AbstractResourceStream
org.apache.wicket.util.resource.AbstractStringResourceStream
org.apache.wicket.util.template.TextTemplate
org.apache.wicket.util.template.TextTemplateDecorator
org.apache.wicket.util.template.CssTemplate
- All Implemented Interfaces:
- Closeable, Serializable, IClusterable, IResourceStream, IStringResourceStream, IModifiable
public final class CssTemplate
- extends TextTemplateDecorator
Decorates a TextTemplate
with CSS tags.
- Since:
- 1.2.6
- Author:
- Eelco Hillenius
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.util.template.TextTemplateDecorator |
asString, asString, close, equals, getContentType, getInputStream, getLocale, getString, hashCode, lastModifiedTime, setCharset, setLastModified, setLocale, toString |
CssTemplate
public CssTemplate(TextTemplate textTemplate)
- Constructor.
- Parameters:
textTemplate
- a TextTemplate
to decorate
getBeforeTemplateContents
public String getBeforeTemplateContents()
- Description copied from class:
TextTemplateDecorator
- Retrieves the
String
to put before the actual template contents, for example:
<script type="text/javascript">
- Specified by:
getBeforeTemplateContents
in class TextTemplateDecorator
- Returns:
- the
String
to put before the actual template contents - See Also:
TextTemplateDecorator.getBeforeTemplateContents()
getAfterTemplateContents
public String getAfterTemplateContents()
- Description copied from class:
TextTemplateDecorator
- Retrieves the
String
to put after the actual template contents, for example:
</script>
- Specified by:
getAfterTemplateContents
in class TextTemplateDecorator
- Returns:
- the
String
to put after the actual template contents - See Also:
TextTemplateDecorator.getAfterTemplateContents()
interpolate
public TextTemplate interpolate(Map<String,Object> variables)
- This class decorates another
TextTemplate
class and so does not allow
interpolation.
- Specified by:
interpolate
in class TextTemplate
- Parameters:
variables
- ignored
- Returns:
this
, for chaining purposes
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.