T - the type of the model objectpublic abstract class AutoCompleteTextField<T extends Serializable> extends org.apache.wicket.markup.html.form.TextField<T> implements com.googlecode.wicket.jquery.core.IJQueryWidget, IAutoCompleteListener
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, VALUE_SEPARATORENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING| Constructor and Description |
|---|
AutoCompleteTextField(String id)
Constructor
|
AutoCompleteTextField(String id,
Class<T> type)
Constructor
|
AutoCompleteTextField(String id,
org.apache.wicket.model.IModel<T> model)
Constructor
|
AutoCompleteTextField(String id,
org.apache.wicket.model.IModel<T> model,
Class<T> type)
Constructor
|
AutoCompleteTextField(String id,
org.apache.wicket.model.IModel<T> model,
com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer)
Constructor
|
AutoCompleteTextField(String id,
org.apache.wicket.model.IModel<T> model,
com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer,
Class<T> type)
Constructor
|
AutoCompleteTextField(String id,
com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer)
Constructor
|
AutoCompleteTextField(String id,
com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer,
Class<T> type)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<T> |
getChoices(String input)
Gets choices matching the provided input
|
<C> org.apache.wicket.util.convert.IConverter<C> |
getConverter(Class<C> type) |
protected String |
getModelValue() |
com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> |
getRenderer()
Gets the
ITextRenderer |
String |
getTemplateToken()
Gets the template script token/id
|
protected com.googlecode.wicket.jquery.core.template.IJQueryTemplate |
newTemplate()
Gets a new
IJQueryTemplate to customize the renderingThe IJQueryTemplate.getText() should return a template text of the form "<a>...</a>".The properties used in the template text (ie: ${name}) should be identified in the list returned by IJQueryTemplate.getTextProperties() |
com.googlecode.wicket.jquery.core.JQueryBehavior |
newWidgetBehavior(String selector) |
void |
onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag tag) |
void |
onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior) |
protected void |
onInitialize() |
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index)
Triggered when a selection has been made
|
protected void |
onSelected(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the user selects an item from results that matched its input
|
convertInput, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNulladd, add, checkRequired, clearInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isMultiPart, isRequired, isValid, newValidatable, newValidationError, onDetach, onDisabled, onInvalid, onRequired, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateAutoLabels, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic AutoCompleteTextField(String id)
id - the markup idpublic AutoCompleteTextField(String id, Class<T> type)
id - the markup idtype - the type of the bean. This parameter should be supplied for the internal converter (getConverter(Class)) to be used.public AutoCompleteTextField(String id, com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer)
id - the markup idrenderer - the ITextRendererpublic AutoCompleteTextField(String id, com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer, Class<T> type)
id - the markup idrenderer - the ITextRenderertype - the type of the bean. This parameter should be supplied for the internal converter (getConverter(Class)) to be used.public AutoCompleteTextField(String id, org.apache.wicket.model.IModel<T> model)
id - the markup idmodel - the IModelpublic AutoCompleteTextField(String id, org.apache.wicket.model.IModel<T> model, Class<T> type)
id - the markup idmodel - the IModeltype - the type of the bean. This parameter should be supplied for the internal converter (getConverter(Class)) to be used.public AutoCompleteTextField(String id, org.apache.wicket.model.IModel<T> model, com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer)
id - the markup idmodel - the IModelrenderer - the ITextRendererpublic AutoCompleteTextField(String id, org.apache.wicket.model.IModel<T> model, com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> renderer, Class<T> type)
id - the markup idmodel - the IModelrenderer - the ITextRenderertype - the type of the bean. This parameter should be supplied for the internal converter (getConverter(Class)) to be used.protected abstract List<T> getChoices(String input)
input - String that represent the queryprotected final String getModelValue()
getModelValue in class org.apache.wicket.markup.html.form.FormComponent<T extends Serializable>public <C> org.apache.wicket.util.convert.IConverter<C> getConverter(Class<C> type)
getConverter in interface org.apache.wicket.IConverterLocatorgetConverter in class org.apache.wicket.Componentpublic String getTemplateToken()
public com.googlecode.wicket.jquery.core.renderer.ITextRenderer<? super T> getRenderer()
ITextRendererITextRendererprotected void onInitialize()
onInitialize in class org.apache.wicket.MarkupContainerpublic void onConfigure(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onConfigure in interface com.googlecode.wicket.jquery.core.IJQueryWidgetpublic void onBeforeRender(com.googlecode.wicket.jquery.core.JQueryBehavior behavior)
onBeforeRender in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
onComponentTag in class org.apache.wicket.markup.html.form.TextField<T extends Serializable>public final void onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index)
IAutoCompleteListeneronSelect in interface IAutoCompleteListenertarget - the AjaxRequestTargetindex - the index of the selected itemprotected void onSelected(org.apache.wicket.ajax.AjaxRequestTarget target)
target - the AjaxRequestTargetpublic com.googlecode.wicket.jquery.core.JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior in interface com.googlecode.wicket.jquery.core.IJQueryWidgetprotected com.googlecode.wicket.jquery.core.template.IJQueryTemplate newTemplate()
IJQueryTemplate to customize the renderingIJQueryTemplate.getText() should return a template text of the form "<a>...</a>".IJQueryTemplate.getTextProperties()Copyright © 2017 7thWeb. All rights reserved.