public class Typeahead extends MarkupWidget
| Modifier and Type | Class and Description |
|---|---|
static interface |
Typeahead.HighlighterCallback |
static interface |
Typeahead.MatcherCallback |
static interface |
Typeahead.UpdaterCallback |
widget| Constructor and Description |
|---|
Typeahead()
Constructor for
Typeahead. |
Typeahead(com.google.gwt.user.client.ui.SuggestOracle oracle)
Constructor for
Typeahead. |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
configure(com.google.gwt.dom.client.Element element,
int items,
int minLength) |
int |
getDisplayItemCount()
Get the max number of items to display in the dropdown.
|
int |
getMinLength()
Get the minimum character length needed before triggering autocomplete suggestions.
|
com.google.gwt.user.client.ui.SuggestOracle |
getSuggestOracle()
Get suggest oracle
|
void |
reconfigure()
reconfigure setting.
|
void |
setDisplayItemCount(int displayItems)
Set max number of items to display in the dropdown.
|
void |
setHighlighterCallback(Typeahead.HighlighterCallback highlighterCallback) |
void |
setMatcherCallback(Typeahead.MatcherCallback matcherCallback) |
void |
setMinLength(int minLength)
Set the minimum character length needed before triggering autocomplete suggestions.
|
void |
setUpdaterCallback(Typeahead.UpdaterCallback updaterCallback) |
void |
setWidget(com.google.gwt.user.client.ui.Widget w) |
public Typeahead()
Typeahead. Creates a MultiWordSuggestOracle to use with thispublic Typeahead(com.google.gwt.user.client.ui.SuggestOracle oracle)
Typeahead.oracle - the oracle for this Typeaheadpublic void setWidget(com.google.gwt.user.client.ui.Widget w)
setWidget in interface com.google.gwt.user.client.ui.HasOneWidgetsetWidget in class MarkupWidgetpublic com.google.gwt.user.client.ui.Widget asWidget()
MarkupWidgetasWidget in interface com.google.gwt.user.client.ui.IsWidgetasWidget in class MarkupWidgetpublic void reconfigure()
public int getDisplayItemCount()
public void setDisplayItemCount(int displayItems)
displayItems - the max number of items to display in the dropdownpublic int getMinLength()
public void setMinLength(int minLength)
minLength - The minimum character length needed before triggering autocomplete suggestions.public void setUpdaterCallback(Typeahead.UpdaterCallback updaterCallback)
public void setHighlighterCallback(Typeahead.HighlighterCallback highlighterCallback)
public void setMatcherCallback(Typeahead.MatcherCallback matcherCallback)
public com.google.gwt.user.client.ui.SuggestOracle getSuggestOracle()
public void configure(com.google.gwt.dom.client.Element element,
int items,
int minLength)
Copyright © 2016. All rights reserved.