org.wicketstuff.datatable_autocomplete.panel
Class AJAXAutoCompleteBehavior

java.lang.Object
  extended by org.apache.wicket.behavior.Behavior
      extended by org.apache.wicket.behavior.AbstractAjaxBehavior
          extended by org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
              extended by org.apache.wicket.ajax.AjaxEventBehavior
                  extended by org.wicketstuff.datatable_autocomplete.panel.AJAXAutoCompleteBehavior
All Implemented Interfaces:
Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor
Direct Known Subclasses:
AutoCompletingBehavior

public class AJAXAutoCompleteBehavior
extends AjaxEventBehavior

Author:
mocleiri Originally the intent was to use this to allow multiple fields to drive search for results. However it has been modified so that it will work with just a single field. The idea is that changes to the search field will be encoded onto the url which will then be processed accordingly without having to submit anything.
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
INDICATOR
 
Fields inherited from interface org.apache.wicket.behavior.IBehaviorListener
INTERFACE
 
Constructor Summary
AJAXAutoCompleteBehavior(String event)
           
AJAXAutoCompleteBehavior(String event, AutoCompleteDependencyProcessor processor)
           
 
Method Summary
protected  void addAdditionalJavaScript(List<String> eventScripts)
          Allows subclasses to adjust the ordering of the scripts and to add in additional scripts.
protected  CharSequence getCallbackScript()
           
protected  CharSequence getFailureScript()
           
protected  CharSequence getSuccessScript()
           
protected  void onComponentTag(ComponentTag tag)
           
protected  void onEvent(AjaxRequestTarget target)
           
protected  void setDependencyProcessor(AutoCompleteDependencyProcessor dependencyProcessor)
           
 
Methods inherited from class org.apache.wicket.ajax.AjaxEventBehavior
generateCallbackScript, getEvent, getEventHandler, onCheckEvent, respond, setThrottleDelay, toString
 
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
findIndicatorId, getAjaxCallDecorator, getChannel, getChannelName, getPreconditionScript, onBind, onRequest, renderHead, throttleScript
 
Methods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, getStatelessHint, onComponentRendered, onComponentTag, onUnbind, unbind
 
Methods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListenerInterface, canCallListenerInterface, detach, isEnabled, isTemporary, onConfigure, onEvent, onException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AJAXAutoCompleteBehavior

public AJAXAutoCompleteBehavior(String event)
Parameters:
event -

AJAXAutoCompleteBehavior

public AJAXAutoCompleteBehavior(String event,
                                AutoCompleteDependencyProcessor processor)
Method Detail

setDependencyProcessor

protected void setDependencyProcessor(AutoCompleteDependencyProcessor dependencyProcessor)
Parameters:
dependencyProcessor - the dependencyProcessor to set

onEvent

protected final void onEvent(AjaxRequestTarget target)
Specified by:
onEvent in class AjaxEventBehavior

getFailureScript

protected CharSequence getFailureScript()
Overrides:
getFailureScript in class AbstractDefaultAjaxBehavior

getSuccessScript

protected CharSequence getSuccessScript()
Overrides:
getSuccessScript in class AbstractDefaultAjaxBehavior

getCallbackScript

protected final CharSequence getCallbackScript()
Overrides:
getCallbackScript in class AbstractDefaultAjaxBehavior

onComponentTag

protected final void onComponentTag(ComponentTag tag)
Overrides:
onComponentTag in class AjaxEventBehavior

addAdditionalJavaScript

protected void addAdditionalJavaScript(List<String> eventScripts)
Allows subclasses to adjust the ordering of the scripts and to add in additional scripts.

Parameters:
eventScripts -


Copyright © 2009-2013. All Rights Reserved.