public class JQueryTemplateBehavior extends com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior implements JQueryDestroyListener.IDestroyable
JQueryAbstractTemplateBehavior
that works with a IJQueryTemplate
.IJQueryTemplate.getText()
Modifier and Type | Field and Description |
---|---|
static org.apache.wicket.request.resource.PackageResourceReference |
TMPL_JS |
Constructor and Description |
---|
JQueryTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bind(org.apache.wicket.Component component) |
void |
destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
Removes the widget functionality completely.
|
String |
getToken() |
protected com.googlecode.wicket.jquery.core.template.JQueryTemplateResourceStream |
newResourceStream() |
void |
renderHead(org.apache.wicket.Component component,
org.apache.wicket.markup.head.IHeaderResponse response) |
public static final org.apache.wicket.request.resource.PackageResourceReference TMPL_JS
public JQueryTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template)
template
- the IJQueryTemplate
that this behavior should render via the resource streampublic void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
public void destroy(org.apache.wicket.core.request.handler.IPartialPageRequestHandler handler)
JQueryDestroyListener.IDestroyable
destroy
in interface JQueryDestroyListener.IDestroyable
handler
- the IPartialPageRequestHandler
public String getToken()
getToken
in class com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
protected com.googlecode.wicket.jquery.core.template.JQueryTemplateResourceStream newResourceStream()
newResourceStream
in class com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
Copyright © 2016 7thWeb. All rights reserved.