public class Typeahead<T>
extends org.apache.wicket.markup.html.form.TextField<T>
An integration with Twitter Typeahead plugin.
| Constructor and Description |
|---|
Typeahead(String markupId,
Dataset config)
Constructor.
|
Typeahead(String markupId,
org.apache.wicket.model.IModel<T> model,
Dataset config)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected TypeaheadBehavior<T> |
createTypeaheadBehavior() |
protected Iterable<T> |
getChoices(String input)
Returns an iterable with all choices that match the provided input.
|
protected org.apache.wicket.markup.head.HeaderItem |
newTypeaheadJsHeaderItem() |
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag tag) |
Typeahead<T> |
remote(boolean remote)
Disables/Enables the remote functionality for this component
|
void |
renderHead(org.apache.wicket.markup.head.IHeaderResponse response) |
Typeahead<T> |
size(de.agilecoders.wicket.core.markup.html.bootstrap.form.InputBehavior.Size size)
sets the size of textfield
|
Typeahead<T> |
size(de.agilecoders.wicket.core.markup.html.bootstrap.layout.col.SpanType size)
sets the size of textfield
|
convertInput, getConvertEmptyInputStringToNull, isInputNullable, onBeforeRender, setConvertEmptyInputStringToNulladd, add, checkRequired, 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, 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, visitFormComponentsPostOrdergetWebPage, getWebRequest, getWebResponse, getWebSessionadd, 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, visitChildrenadd, 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, initModel, internalPrepareForRender, internalRenderComponent, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onConfigure, onEvent, onInitialize, onModelChanged, onModelChanging, 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, wrappublic Typeahead(String markupId, Dataset config)
Constructor.
markupId - The component’s idconfig - The typeahead configurationpublic Typeahead<T> size(de.agilecoders.wicket.core.markup.html.bootstrap.layout.col.SpanType size)
sets the size of textfield
size - mandatory parameterpublic Typeahead<T> size(de.agilecoders.wicket.core.markup.html.bootstrap.form.InputBehavior.Size size)
sets the size of textfield
size - mandatory parameterpublic Typeahead<T> remote(boolean remote)
Disables/Enables the remote functionality for this component
remote - a flag indicating whether the Typeahead uses remote data sourceprotected TypeaheadBehavior<T> createTypeaheadBehavior()
protected Iterable<T> getChoices(String input)
Returns an iterable with all choices that match the provided input.
input - The input to match against to.protected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
onComponentTag in class org.apache.wicket.markup.html.form.TextField<T>public void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IHeaderContributorrenderHead in class org.apache.wicket.Componentprotected org.apache.wicket.markup.head.HeaderItem newTypeaheadJsHeaderItem()
Copyright © 2011–2014 AgileCoders. All rights reserved.