wicket.extensions.util.resource
Class CssTemplate

java.lang.Object
  extended bywicket.util.resource.AbstractResourceStream
      extended bywicket.util.resource.AbstractStringResourceStream
          extended bywicket.extensions.util.resource.TextTemplate
              extended bywicket.extensions.util.resource.TextTemplateDecorator
                  extended bywicket.extensions.util.resource.CssTemplate
All Implemented Interfaces:
wicket.util.watch.IModifiable, wicket.util.resource.IResourceStream, wicket.util.resource.IStringResourceStream, java.io.Serializable

public final class CssTemplate
extends TextTemplateDecorator

Decorates the template with CSS tags.

Author:
Eelco Hillenius
See Also:
Serialized Form

Field Summary
 
Fields inherited from class wicket.extensions.util.resource.TextTemplateDecorator
decorated
 
Constructor Summary
CssTemplate(TextTemplate textTemplate)
          Construct.
 
Method Summary
 java.lang.String getAfterTemplateContents()
          Gets the string to put after the actual template contents, e.g.
 java.lang.String getBeforeTemplateContents()
          Gets the string to put before the actual template contents, e.g.
 TextTemplate interpolate(java.util.Map variables)
          This class decorates another text template class and so does not allow interpolation.
 
Methods inherited from class wicket.extensions.util.resource.TextTemplateDecorator
asString, asString, close, equals, getContentType, getInputStream, getLocale, getString, hashCode, lastModifiedTime, length, setCharset, setLastModified, setLocale, toString
 
Methods inherited from class wicket.util.resource.AbstractResourceStream
getCharset
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CssTemplate

public CssTemplate(TextTemplate textTemplate)
Construct.

Parameters:
textTemplate - The template to decorate
Method Detail

getBeforeTemplateContents

public java.lang.String getBeforeTemplateContents()
Description copied from class: TextTemplateDecorator
Gets the string to put before the actual template contents, e.g.
    <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 java.lang.String getAfterTemplateContents()
Description copied from class: TextTemplateDecorator
Gets the string to put after the actual template contents, e.g.
    </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(java.util.Map variables)
This class decorates another text template class and so does not allow interpolation.

Specified by:
interpolate in class TextTemplate
Parameters:
variables - Ignored
Returns:
This for chaining


Copyright © 2004-2008 Wicket developers. All Rights Reserved.