Class DataBoundBehavior

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable
    Direct Known Subclasses:
    HideIfNoRecordBehavior

    public abstract class DataBoundBehavior
    extends com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
    Provides a DataTable Behavior that allows to register a 'dataBound' callback.
    Warning: In order to work correctly, you should use DataTable#refresh instead of IPartialPageRequestHandler#add(datatable)
    Author:
    Sebastien Briquet - sebfz1
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected String $()  
      void bind​(org.apache.wicket.Component component)  
      protected abstract String getDataBoundCallback()
      Gets the callback/handler to be triggered on 'dataBound' event
      protected String widget()
      Gets the Kendo UI widget
      • Methods inherited from class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior

        add, getJQueryLibrarySettings, renderHead, renderOnDomReadyScript, renderPriorityHeaderItem, toString
      • Methods inherited from class org.apache.wicket.behavior.Behavior

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

      • DataBoundBehavior

        public DataBoundBehavior()
    • Method Detail

      • bind

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

        protected String widget()
        Gets the Kendo UI widget
        Returns:
        the Kendo UI widget
      • $

        protected String $()
        Specified by:
        $ in class com.googlecode.wicket.jquery.core.JQueryAbstractBehavior
      • getDataBoundCallback

        protected abstract String getDataBoundCallback()
        Gets the callback/handler to be triggered on 'dataBound' event
        Returns:
        statement like function(e) {...}