Module wicket.bootstrap.extensions
Class LocalBloodhound<T>
java.lang.Object
org.apache.wicket.behavior.Behavior
org.apache.wicket.behavior.AbstractAjaxBehavior
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.typeaheadV10.bloodhound.Bloodhound<T>
de.agilecoders.wicket.extensions.markup.html.bootstrap.form.typeaheadV10.bloodhound.LocalBloodhound<T>
- All Implemented Interfaces:
Source<T>,Serializable,IComponentAwareEventSink,IRequestListener,IComponentAwareHeaderContributor,IClusterable
A
Bloodhound
implementation for local datasets.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLocalBloodhound(String name, BloodhoundConfig config, List<String> datasource) LocalBloodhound(String name, List<String> datasource) -
Method Summary
Modifier and TypeMethodDescriptiongetChoices(String input) Get an iterable of choices for the given input term.renderChoice(T choice) Render the given choice to a Javascript object, e.gMethods inherited from class de.agilecoders.wicket.extensions.markup.html.bootstrap.form.typeaheadV10.bloodhound.Bloodhound
createJson, getConfig, getFunction, getName, getRemoteUrl, onBind, onRequestMethods inherited from class org.apache.wicket.behavior.AbstractAjaxBehavior
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindMethods inherited from class org.apache.wicket.behavior.Behavior
beforeRender, canCallListener, detach, getStatelessHint, isEnabled, isTemporary, onAttribute, onConfigure, onEvent, onException, onRemove, onTag, renderHeadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.wicket.IRequestListener
rendersPage
-
Constructor Details
-
LocalBloodhound
-
LocalBloodhound
-
-
Method Details
-
getChoices
Description copied from interface:SourceGet an iterable of choices for the given input term.- Specified by:
getChoicesin interfaceSource<T>- Specified by:
getChoicesin classBloodhound<T>
-
renderChoice
Description copied from interface:SourceRender the given choice to a Javascript object, e.gJson.stringify(choice);
- Returns:
- the javascript object representation of the given choice
-