org.wicketstuff.datatable_autocomplete.panel
Class AJAXAutoCompleteBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.ajax.AjaxEventBehavior
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
AJAXAutoCompleteBehavior
public AJAXAutoCompleteBehavior(String event)
- Parameters:
event -
AJAXAutoCompleteBehavior
public AJAXAutoCompleteBehavior(String event,
AutoCompleteDependencyProcessor processor)
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.