public class ObjectAutoCompleteField<O,I extends Serializable>
extends org.apache.wicket.markup.html.form.FormComponentPanel<I>
Modifier and Type | Method and Description |
---|---|
protected void |
convertInput()
Called when form is submitted.
|
org.apache.wicket.markup.html.form.TextField<String> |
getSearchTextField()
Access to internal text field which can be used for adding some decorations or behaviours
(like JS-Handler or specific CSS).
|
protected org.apache.wicket.model.IModel<I> |
initModel() |
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag pTag) |
void |
registerForUpdateOnSelectionChange(ObjectAutoCompleteSelectionChangeListener<I> pListener)
Register a listener that needs to be updated when the selection changes, i.e.
|
void |
searchCanceled(org.apache.wicket.ajax.AjaxRequestTarget pTarget,
boolean pForceRestore)
Callback called in case the user cancels a search via 'escape'
|
checkRequired, newMarkupSourcingStrategy
add, add, clearInput, convertValue, error, getConvertedInput, getDefaultLabel, getDefaultLabel, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, 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, visitFormComponentsPostOrder
getWebPage, getWebRequest, getWebResponse, getWebSession
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
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, getConverter, 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, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, onReAdd, 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
public void registerForUpdateOnSelectionChange(ObjectAutoCompleteSelectionChangeListener<I> pListener)
pListener
- the listener to notifyprotected org.apache.wicket.model.IModel<I> initModel()
initModel
in class org.apache.wicket.Component
public void searchCanceled(org.apache.wicket.ajax.AjaxRequestTarget pTarget, boolean pForceRestore)
pTarget
- target to which the components to update are addedpForceRestore
- if the old content should be always restored or whether an empty input clears the
fieldprotected void convertInput()
convertInput
in class org.apache.wicket.markup.html.form.FormComponent<I extends Serializable>
protected void onComponentTag(org.apache.wicket.markup.ComponentTag pTag)
onComponentTag
in class org.apache.wicket.markup.html.form.FormComponentPanel<I extends Serializable>
public org.apache.wicket.markup.html.form.TextField<String> getSearchTextField()
Copyright © 2015. All rights reserved.