All Known Implementing Classes:
Bloodhound, LocalBloodhound

public interface Source<T>
Interface for a source of a Dataset
  • Method Summary

    Modifier and Type
    Method
    Description
    Get an iterable of choices for the given input term.
    de.agilecoders.wicket.jquery.util.Json.RawValue
    Get the javascript function for this source.
    renderChoice(T choice)
    Render the given choice to a Javascript object, e.g
  • Method Details

    • getFunction

      de.agilecoders.wicket.jquery.util.Json.RawValue getFunction()
      Get the javascript function for this source.
      Returns:
      the javascript function used as the source of a DataSet
    • getChoices

      Iterable<T> getChoices(String input)
      Get an iterable of choices for the given input term.
    • renderChoice

      String renderChoice(T choice)
      Render the given choice to a Javascript object, e.g

      Json.stringify(choice);

      Returns:
      the javascript object representation of the given choice