public abstract class Bloodhound<T> extends org.apache.wicket.behavior.AbstractAjaxBehavior implements Source<T>
A Bloodhound source.
| Constructor and Description |
|---|
Bloodhound(String name)
This constructor will initialize a default
BloodhoundConfig |
Bloodhound(String name,
BloodhoundConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createJson(Iterable<T> choices)
Serializes the returned choices into JSON array.
|
abstract Iterable<T> |
getChoices(String input)
Get an iterable of choices for the given input term.
|
BloodhoundConfig |
getConfig() |
de.agilecoders.wicket.jquery.util.Json.RawValue |
getFunction()
Get the javascript function for this source.
|
String |
getName() |
protected CharSequence |
getRemoteUrl(String wildcard) |
protected void |
onBind() |
void |
onRequest() |
afterRender, bind, getCallbackUrl, getComponent, onComponentRendered, onComponentTag, onComponentTag, onUnbind, unbindbeforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, onRemove, renderHeadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderChoicepublic Bloodhound(String name)
This constructor will initialize a default BloodhoundConfig
name - the name of this bloodhound instancepublic Bloodhound(String name, BloodhoundConfig config)
name - the name of this bloodhound instancepublic String getName()
public de.agilecoders.wicket.jquery.util.Json.RawValue getFunction()
SourceGet the javascript function for this source.
getFunction in interface Source<T>DataSetprotected void onBind()
onBind in class org.apache.wicket.behavior.AbstractAjaxBehaviorprotected CharSequence getRemoteUrl(String wildcard)
public abstract Iterable<T> getChoices(String input)
SourceGet an iterable of choices for the given input term.
getChoices in interface Source<T>public BloodhoundConfig getConfig()
public void onRequest()
onRequest in interface org.apache.wicket.behavior.IBehaviorListenerCopyright © 2011–2014 AgileCoders. All rights reserved.