Class AbstractAutoCompleteBehavior

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

    public abstract class AbstractAutoCompleteBehavior
    extends org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
    Since:
    1.2
    Author:
    Janne Hietamäki (jannehietamaki)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.apache.wicket.request.resource.ResourceReference AUTOCOMPLETE_JS  
      protected AutoCompleteSettings settings  
      • Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

        INDICATOR
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected String constructSettingsJS()  
      protected abstract void onRequest​(String input, org.apache.wicket.request.cycle.RequestCycle requestCycle)
      Callback for the ajax event generated by the javascript.
      void renderHead​(org.apache.wicket.Component component, org.apache.wicket.markup.head.IHeaderResponse response)  
      protected void respond​(org.apache.wicket.ajax.AjaxRequestTarget target)  
      protected void updateAjaxAttributes​(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)  
      • Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior

        findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
      • 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
    • Method Detail

      • 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 org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
      • onRequest

        protected abstract void onRequest​(String input,
                                          org.apache.wicket.request.cycle.RequestCycle requestCycle)
        Callback for the ajax event generated by the javascript. This is where we need to generate our response.
        Parameters:
        input - the input entered so far
        requestCycle - current request cycle
      • respond

        protected void respond​(org.apache.wicket.ajax.AjaxRequestTarget target)
        Specified by:
        respond in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
      • updateAjaxAttributes

        protected void updateAjaxAttributes​(org.apache.wicket.ajax.attributes.AjaxRequestAttributes attributes)
        Overrides:
        updateAjaxAttributes in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior