Class JQueryTemplateBehavior

java.lang.Object
org.apache.wicket.behavior.Behavior
com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
com.googlecode.wicket.jquery.ui.template.JQueryTemplateBehavior
All Implemented Interfaces:
Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

public class JQueryTemplateBehavior extends com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
Provides the default implementation of JQueryAbstractTemplateBehavior that works with a IJQueryTemplate.
The content of the <script /> block (the resource stream) is given by the IJQueryTemplate.getText()
Author:
Sebastien Briquet - sebfz1
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.wicket.request.resource.PackageResourceReference
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JQueryTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bind(org.apache.wicket.Component component)
     
     
    protected com.googlecode.wicket.jquery.core.template.JQueryTemplateResourceStream
     
    void
    renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
     

    Methods inherited from class org.apache.wicket.behavior.Behavior

    afterRender, beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onComponentTag, onConfigure, onEvent, onException, onRemove, onTag, unbind

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • TMPL_JS

      public static final org.apache.wicket.request.resource.PackageResourceReference TMPL_JS
  • Constructor Details

    • JQueryTemplateBehavior

      public JQueryTemplateBehavior(com.googlecode.wicket.jquery.core.template.IJQueryTemplate template)
      Constructor
      Parameters:
      template - the IJQueryTemplate that this behavior should render via the resource stream
  • Method Details

    • renderHead

      public void renderHead(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)
      Specified by:
      renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
      Overrides:
      renderHead in class com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
    • bind

      public void bind(org.apache.wicket.Component component)
      Overrides:
      bind in class org.apache.wicket.behavior.Behavior
    • getToken

      public String getToken()
      Specified by:
      getToken in class com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior
    • newResourceStream

      protected com.googlecode.wicket.jquery.core.template.JQueryTemplateResourceStream newResourceStream()
      Specified by:
      newResourceStream in class com.googlecode.wicket.jquery.core.template.JQueryAbstractTemplateBehavior