Class JQueryTemplateResourceStream
- java.lang.Object
-
- org.apache.wicket.util.resource.AbstractResourceStream
-
- org.apache.wicket.util.resource.AbstractStringResourceStream
-
- com.googlecode.wicket.jquery.core.template.JQueryTemplateResourceStream
-
- All Implemented Interfaces:
Closeable,Serializable,AutoCloseable,IClusterable,IResourceStream,IStringResourceStream,IModifiable
public class JQueryTemplateResourceStream extends AbstractStringResourceStream
Provides the default resource stream for jQuery templates.
ThegetString()method returns a script block like <script id="jquery-template-123456" type="text/x-jquery-tmpl" />- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream
DEFAULT_CONTENT_TYPE
-
-
Constructor Summary
Constructors Constructor Description JQueryTemplateResourceStream(IJQueryTemplate template, String token)ConstructorJQueryTemplateResourceStream(String content, String token)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasString()StringgetContentType()protected StringgetString()-
Methods inherited from class org.apache.wicket.util.resource.AbstractStringResourceStream
close, getCharset, getInputStream, lastModifiedTime, length, setCharset, setLastModified
-
Methods inherited from class org.apache.wicket.util.resource.AbstractResourceStream
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.util.resource.IResourceStream
getLocale, getStyle, getVariation, setLocale, setStyle, setVariation
-
-
-
-
Constructor Detail
-
JQueryTemplateResourceStream
public JQueryTemplateResourceStream(String content, String token)
Constructor- Parameters:
content- the content inside the <script /> blocktoken- the unique resource-stream token that will be the script-id.
-
JQueryTemplateResourceStream
public JQueryTemplateResourceStream(IJQueryTemplate template, String token)
Constructor- Parameters:
template- theIJQueryTemplatetoken- the unique resource-stream token that will be the script-id.
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceIResourceStream- Overrides:
getContentTypein classAbstractStringResourceStream
-
getString
protected String getString()
- Specified by:
getStringin classAbstractStringResourceStream
-
asString
public String asString()
- Specified by:
asStringin interfaceIStringResourceStream- Overrides:
asStringin classAbstractStringResourceStream
-
-