public abstract class AbstractAutoCompleteBehavior extends AbstractDefaultAjaxBehavior
Modifier and Type | Field and Description |
---|---|
static ResourceReference |
AUTOCOMPLETE_JS |
protected AutoCompleteSettings |
settings |
INDICATOR
Constructor and Description |
---|
AbstractAutoCompleteBehavior()
Constructor that creates an default
AutoCompleteSettings |
AbstractAutoCompleteBehavior(AutoCompleteSettings settings)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
constructSettingsJS() |
protected abstract void |
onRequest(String input,
RequestCycle requestCycle)
Callback for the ajax event generated by the javascript.
|
void |
renderHead(Component component,
IHeaderResponse response)
Render to the web response whatever the component wants to contribute to the head section.
|
protected void |
respond(AjaxRequestTarget target) |
protected void |
updateAjaxAttributes(AjaxRequestAttributes attributes)
Gives a chance to the specializations to modify the attributes.
|
findIndicatorId, getAttributes, getCallbackFunction, getCallbackFunctionBody, getCallbackScript, getCallbackScript, onBind, onMethodMismatch, onRequest, postprocessConfiguration, renderAjaxAttributes, renderAjaxAttributes
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbind
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
rendersPage
public static final ResourceReference AUTOCOMPLETE_JS
protected AutoCompleteSettings settings
public AbstractAutoCompleteBehavior()
AutoCompleteSettings
public AbstractAutoCompleteBehavior(AutoCompleteSettings settings)
settings
- settings for the autocomplete listpublic void renderHead(Component component, IHeaderResponse response)
Behavior
renderHead
in interface IComponentAwareHeaderContributor
renderHead
in class AbstractDefaultAjaxBehavior
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 objectBehavior.renderHead(Component,
org.apache.wicket.markup.head.IHeaderResponse)
protected final String constructSettingsJS()
protected abstract void onRequest(String input, RequestCycle requestCycle)
input
- the input entered so farrequestCycle
- current request cycleprotected void respond(AjaxRequestTarget target)
respond
in class AbstractDefaultAjaxBehavior
target
- The AJAX targetprotected void updateAjaxAttributes(AjaxRequestAttributes attributes)
AbstractDefaultAjaxBehavior
updateAjaxAttributes
in class AbstractDefaultAjaxBehavior
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.