Class AutoCompleteBehavior<T>

    • Method Detail

      • onBind

        protected void onBind()
        Overrides:
        onBind in class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
      • onRequest

        protected final void onRequest​(String val,
                                       org.apache.wicket.request.cycle.RequestCycle requestCycle)
        Description copied from class: AbstractAutoCompleteBehavior
        Callback for the ajax event generated by the javascript. This is where we need to generate our response.
        Specified by:
        onRequest in class AbstractAutoCompleteBehavior
        Parameters:
        val - the input entered so far
        requestCycle - current request cycle
      • getChoices

        protected abstract Iterator<TgetChoices​(String input)
        Callback method that should return an iterator over all possible choice objects. These objects will be passed to the renderer to generate output. Usually it is enough to return an iterator over strings.
        Parameters:
        input - current input
        Returns:
        iterator over all possible choice objects
      • detach

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