Class KendoTemplateBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
-
- com.googlecode.wicket.kendo.ui.template.KendoTemplateBehavior
-
- All Implemented Interfaces:
Serializable
,org.apache.wicket.IComponentAwareEventSink
,org.apache.wicket.markup.html.IComponentAwareHeaderContributor
,org.apache.wicket.util.io.IClusterable
public class KendoTemplateBehavior extends com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
Provides the kendo-ui implementation ofJQueryAbstractTemplateBehavior
that works with aIJQueryTemplate
.
The content of the <script /> block (the resource stream) is given by theIJQueryTemplate.getText()
.
This implementation is different from JQueryTemplateBehavior as the <script /> block will have the kendo-ui type ("text/x-kendo-template")- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KendoTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template)
ConstructorKendoTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template, String suffix)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(org.apache.wicket.Component component)
String
getToken()
protected com.googlecode.wicket.jquery.core.template.JQueryTemplateResourceStream
newResourceStream()
-
Methods inherited from class com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
renderHead
-
-
-
-
Constructor Detail
-
KendoTemplateBehavior
public KendoTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template)
Constructor- Parameters:
template
- theIJQueryTemplate
that this behavior should render via the resource stream
-
KendoTemplateBehavior
public KendoTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template, String suffix)
Constructor- Parameters:
template
- theIJQueryTemplate
that this behavior should render via the resource streamsuffix
- the token suffix
-
-
Method Detail
-
bind
public void bind(org.apache.wicket.Component component)
- Overrides:
bind
in classorg.apache.wicket.behavior.Behavior
-
getToken
public String getToken()
- Specified by:
getToken
in classcom.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
-
newResourceStream
protected com.googlecode.wicket.jquery.core.template.JQueryTemplateResourceStream newResourceStream()
- Specified by:
newResourceStream
in classcom.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
-
-