|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.markup.html.WebMarkupContainer
org.apache.wicket.markup.html.form.LabeledWebMarkupContainer
org.apache.wicket.markup.html.form.FormComponent<T>
org.apache.wicket.markup.html.form.AbstractTextComponent<T>
org.apache.wicket.markup.html.form.TextField<T>
com.googlecode.wicket.jquery.ui.form.autocomplete.AutoCompleteTextField<T>
T
- the type of the model objectpublic abstract class AutoCompleteTextField<T extends Serializable>
Provides a jQuery auto-complete widget
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.wicket.markup.html.form.AbstractTextComponent |
---|
org.apache.wicket.markup.html.form.AbstractTextComponent.ITextFormatProvider |
Nested classes/interfaces inherited from interface com.googlecode.wicket.jquery.core.IJQueryWidget |
---|
IJQueryWidget.JQueryWidget |
Field Summary |
---|
Fields inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL, VALUE_SEPARATOR |
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER |
Constructor Summary | |
---|---|
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,
ITextRenderer<? super T> renderer)
Constructor |
|
AutoCompleteTextField(String id,
org.apache.wicket.model.IModel<T> model,
ITextRenderer<? super T> renderer,
Class<T> type)
Constructor |
|
AutoCompleteTextField(String id,
ITextRenderer<? super T> renderer)
Constructor |
|
AutoCompleteTextField(String id,
ITextRenderer<? super T> renderer,
Class<T> type)
Constructor |
Method Summary | ||
---|---|---|
protected abstract List<T> |
getChoices(String input)
Gets choices matching the provided input |
|
|
getConverter(Class<C> type)
|
|
protected String |
getModelValue()
|
|
protected 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() |
|
JQueryBehavior |
newWidgetBehavior(String selector)
|
|
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag tag)
|
|
protected void |
onConfigure(JQueryBehavior behavior)
Called immediately after the onConfigure method in a behavior. |
|
protected void |
onInitialize()
|
|
void |
onSelect(org.apache.wicket.ajax.AjaxRequestTarget target,
int index)
|
|
protected void |
onSelected(org.apache.wicket.ajax.AjaxRequestTarget target)
Triggered when the user selects an item from results that matched its input |
Methods inherited from class org.apache.wicket.markup.html.form.TextField |
---|
getInputType |
Methods inherited from class org.apache.wicket.markup.html.form.AbstractTextComponent |
---|
convertInput, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNull |
Methods inherited from class org.apache.wicket.markup.html.form.FormComponent |
---|
add, 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, onValid, processChildren, processInput, remove, reportRequiredError, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setRequired, setType, shouldTrimInput, trim, updateCollectionModel, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrder |
Methods inherited from class org.apache.wicket.markup.html.form.LabeledWebMarkupContainer |
---|
getLabel |
Methods inherited from class org.apache.wicket.markup.html.WebMarkupContainer |
---|
getWebPage, getWebRequest, getWebResponse, getWebSession |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, onAfterRenderChildren, onComponentTagBody, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren |
Methods inherited from class org.apache.wicket.Component |
---|
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, 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, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onModelChanged, onModelChanging, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, 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, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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, ITextRenderer<? super T> renderer)
id
- the markup idrenderer
- the ITextRenderer
public AutoCompleteTextField(String id, ITextRenderer<? super T> renderer, Class<T> type)
id
- the markup idrenderer
- the ITextRenderer
type
- 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 IModel
public AutoCompleteTextField(String id, org.apache.wicket.model.IModel<T> model, Class<T> type)
id
- the markup idmodel
- the IModel
type
- 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, ITextRenderer<? super T> renderer)
id
- the markup idmodel
- the IModel
renderer
- the ITextRenderer
public AutoCompleteTextField(String id, org.apache.wicket.model.IModel<T> model, ITextRenderer<? super T> renderer, Class<T> type)
id
- the markup idmodel
- the IModel
renderer
- the ITextRenderer
type
- the type of the bean. This parameter should be supplied for the internal converter (getConverter(Class)
) to be used.Method Detail |
---|
protected String getModelValue()
getModelValue
in class org.apache.wicket.markup.html.form.FormComponent<T extends Serializable>
protected abstract List<T> getChoices(String input)
input
- String that represent the query
public <C> org.apache.wicket.util.convert.IConverter<C> getConverter(Class<C> type)
getConverter
in interface org.apache.wicket.IConverterLocator
getConverter
in class org.apache.wicket.Component
protected void onInitialize()
onInitialize
in class org.apache.wicket.Component
protected void onConfigure(JQueryBehavior behavior)
Options
)
behavior
- the JQueryBehavior
protected 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)
protected void onSelected(org.apache.wicket.ajax.AjaxRequestTarget target)
target
- the AjaxRequestTarget
public JQueryBehavior newWidgetBehavior(String selector)
newWidgetBehavior
in interface IJQueryWidget
protected IJQueryTemplate newTemplate()
IJQueryTemplate
to customize the renderingIJQueryTemplate.getText()
should return a template text of the form "<a>...</a>".IJQueryTemplate.getTextProperties()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |