Class ToolbarAjaxBehavior

  • All Implemented Interfaces:
    Serializable, org.apache.wicket.IComponentAwareEventSink, org.apache.wicket.IRequestListener, org.apache.wicket.markup.html.IComponentAwareHeaderContributor, org.apache.wicket.util.io.IClusterable

    public class ToolbarAjaxBehavior
    extends com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
    Provides the JQueryAjaxBehavior being called by the toolbar button(s).
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

        INDICATOR
    • Constructor Summary

      Constructors 
      Constructor Description
      ToolbarAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
      Constructor
      ToolbarAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source, ToolbarButton button)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String getButtonName()
      Gets the ToolbarButton name
      CharSequence getCallbackFunctionBody​(org.apache.wicket.ajax.attributes.CallbackParameter... parameters)  
      protected org.apache.wicket.ajax.attributes.CallbackParameter[] getCallbackParameters()  
      protected com.googlecode.wicket.jquery.core.JQueryEvent newEvent()  
      • Methods inherited from class com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior

        getCallbackFunction, respond, updateAjaxAttributes
      • Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

        findIndicatorId, getAttributes, getCallbackFunction, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes, renderHead
      • Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior

        afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
      • Methods inherited from class org.apache.wicket.behavior.Behavior

        beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag
      • Methods inherited from interface org.apache.wicket.IRequestListener

        rendersPage
    • Constructor Detail

      • ToolbarAjaxBehavior

        public ToolbarAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source)
        Constructor
        Parameters:
        source - the IJQueryAjaxAware
      • ToolbarAjaxBehavior

        public ToolbarAjaxBehavior​(com.googlecode.wicket.jquery.core.ajax.IJQueryAjaxAware source,
                                   ToolbarButton button)
        Constructor
        Parameters:
        source - the IJQueryAjaxAware
        button - the button that is passed to the behavior so it can be retrieved via the ToolbarAjaxBehavior.ToolbarClickEvent
    • Method Detail

      • getButtonName

        public String getButtonName()
        Gets the ToolbarButton name
        Returns:
        the button name
      • getCallbackParameters

        protected org.apache.wicket.ajax.attributes.CallbackParameter[] getCallbackParameters()
        Overrides:
        getCallbackParameters in class com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior
      • getCallbackFunctionBody

        public CharSequence getCallbackFunctionBody​(org.apache.wicket.ajax.attributes.CallbackParameter... parameters)
        Overrides:
        getCallbackFunctionBody in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
      • newEvent

        protected com.googlecode.wicket.jquery.core.JQueryEvent newEvent()
        Specified by:
        newEvent in class com.googlecode.wicket.jquery.core.ajax.JQueryAjaxBehavior