public class Typeahead extends MarkupWidget
| Modifier and Type | Class and Description |
|---|---|
static interface |
Typeahead.UpdaterCallback |
HasWidgets.ForIsWidgetwidget| Constructor and Description |
|---|
Typeahead()
Constructor for
Typeahead. |
Typeahead(SuggestOracle oracle)
Constructor for
Typeahead. |
| Modifier and Type | Method and Description |
|---|---|
Widget |
asWidget() |
void |
configure(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.
|
SuggestOracle |
getSuggestOracle()
Get suggest oracle
|
void |
reconfigure()
reconfigure setting.
|
void |
setDisplayItemCount(int displayItems)
Set max number of items to display in the dropdown.
|
void |
setMinLength(int minLength)
Set the minimum character length needed before triggering autocomplete suggestions.
|
void |
setUpdaterCallback(Typeahead.UpdaterCallback updaterCallback) |
void |
setWidget(Widget w) |
public Typeahead()
Typeahead. Creates a MultiWordSuggestOracle to use with thispublic Typeahead(SuggestOracle oracle)
Typeahead.oracle - the oracle for this Typeaheadpublic void setWidget(Widget w)
setWidget in interface HasOneWidgetsetWidget in class MarkupWidgetpublic Widget asWidget()
MarkupWidgetasWidget in interface 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 SuggestOracle getSuggestOracle()
Copyright © 2012-2013 gwtbootstrap. All Rights Reserved.