org.apache.wicket.extensions.ajax.markup.html.autocomplete
Class AbstractAutoCompleteBehavior
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior
org.apache.wicket.extensions.ajax.markup.html.autocomplete.AbstractAutoCompleteBehavior
- All Implemented Interfaces:
- java.io.Serializable, IBehaviorListener, IClusterable, IComponentAwareEventSink, IRequestListener, IComponentAwareHeaderContributor
- Direct Known Subclasses:
- AutoCompleteBehavior
public abstract class AbstractAutoCompleteBehavior
- extends AbstractDefaultAjaxBehavior
- Since:
- 1.2
- Author:
- Janne Hietamäki (jannehietamaki)
- See Also:
- Serialized Form
Methods inherited from class org.apache.wicket.ajax.AbstractDefaultAjaxBehavior |
findIndicatorId, generateCallbackScript, getAjaxCallDecorator, getCallbackScript, getChannel, getChannelName, getFailureScript, getPreconditionScript, getSuccessScript, onRequest, throttleScript |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
settings
protected AutoCompleteSettings settings
AbstractAutoCompleteBehavior
public AbstractAutoCompleteBehavior()
- Constructor that creates an default
AutoCompleteSettings
AbstractAutoCompleteBehavior
public AbstractAutoCompleteBehavior(AutoCompleteSettings settings)
- Constructor
- Parameters:
settings
- settings for the autocomplete list
renderHead
public void renderHead(Component component,
IHeaderResponse response)
- Description copied from class:
Behavior
- Render to the web response whatever the component wants to contribute to the head section.
- Specified by:
renderHead
in interface IComponentAwareHeaderContributor
- Overrides:
renderHead
in class AbstractDefaultAjaxBehavior
- Parameters:
component
- component which is contributing to the response. This parameter is here to give
the component as the context for component-awares implementing this interfaceresponse
- Response object- See Also:
Behavior.renderHead(Component,org.apache.wicket.markup.html.IHeaderResponse)
constructSettingsJS
protected final java.lang.String constructSettingsJS()
- Returns:
- JS settings
onBind
protected void onBind()
- Description copied from class:
AbstractDefaultAjaxBehavior
- Subclasses should call super.onBind()
- Overrides:
onBind
in class AbstractDefaultAjaxBehavior
- See Also:
AbstractAjaxBehavior.onBind()
onRequest
protected abstract void onRequest(java.lang.String input,
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 farrequestCycle
- current request cycle
respond
protected void respond(AjaxRequestTarget target)
- Specified by:
respond
in class AbstractDefaultAjaxBehavior
- Parameters:
target
- The AJAX target
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.