Class JQueryAbstractTemplateBehavior
- java.lang.Object
-
- org.apache.wicket.behavior.Behavior
-
- com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
-
- All Implemented Interfaces:
Serializable,IComponentAwareEventSink,IComponentAwareHeaderContributor,IClusterable
public abstract class JQueryAbstractTemplateBehavior extends Behavior
Provides the base class for jQuery template behavior.
A template behavior is designed to render a <script id="jquery-template-123456" type="text/x-xxx" /> block, coming from the JQueryResourceStream returned bynewResourceStream()- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JQueryAbstractTemplateBehavior()Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetToken()Get the unique resource-stream token that acts as the script id.protected abstract JQueryTemplateResourceStreamnewResourceStream()Gets a newJQueryTemplateResourceStreamwhich contains the <script /> block.voidrenderHead(Component component, IHeaderResponse response)-
Methods inherited from class org.apache.wicket.behavior.Behavior
afterRender, beforeRender, bind, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind
-
-
-
-
Method Detail
-
renderHead
public void renderHead(Component component, IHeaderResponse response)
- Specified by:
renderHeadin interfaceIComponentAwareHeaderContributor- Overrides:
renderHeadin classBehavior
-
getToken
public abstract String getToken()
Get the unique resource-stream token that acts as the script id.- Returns:
- the token
-
newResourceStream
protected abstract JQueryTemplateResourceStream newResourceStream()
Gets a newJQueryTemplateResourceStreamwhich contains the <script /> block.- Returns:
- the
JQueryTemplateResourceStream
-
-