|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gwtbootstrap3.extras.typeahead.client.base.Dataset<T>
public abstract class Dataset<T>
A Dataset represents a collection of suggestion objects for a Typeahead. A Typeahead is composed of one or more Datasets. When an end-user modifies the value of a Typeahead, each Dataset will attempt to render suggestions for the new value.
| Constructor Summary | |
|---|---|
protected |
Dataset()
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
abstract void |
findMatches(String query,
SuggestionCallback<T> callback)
Find all Suggestions matching a search query and pass them to the callback. |
Template |
getEmptyTemplate()
Rendered when 0 suggestions are available for the given query. |
Template |
getFooterTemplate()
Rendered at the bottom of the dataset. |
Template |
getHeaderTemplate()
Rendered at the top of the dataset. |
String |
getName()
|
SuggestionTemplate<T> |
getSuggestionTemplate()
Renders a single suggestion. |
int |
hashCode()
|
void |
setEmptyTemplate(Template emptyTemplate)
|
void |
setFooterTemplate(Template footerTemplate)
|
void |
setHeaderTemplate(Template headerTemplate)
|
void |
setName(String name)
|
void |
setSuggestionTemplate(SuggestionTemplate<T> suggestionTemplate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected Dataset()
| Method Detail |
|---|
public String getName()
public void setName(String name)
public Template getEmptyTemplate()
public void setEmptyTemplate(Template emptyTemplate)
public Template getFooterTemplate()
public void setFooterTemplate(Template footerTemplate)
public Template getHeaderTemplate()
public void setHeaderTemplate(Template headerTemplate)
public SuggestionTemplate<T> getSuggestionTemplate()
public void setSuggestionTemplate(SuggestionTemplate<T> suggestionTemplate)
public abstract void findMatches(String query,
SuggestionCallback<T> callback)
query - the user inputcallback - callback for suggestionspublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||