|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.FocusWidget
com.google.gwt.user.client.ui.ValueBoxBase<T>
org.gwtbootstrap3.client.ui.base.ValueBoxBase<String>
org.gwtbootstrap3.client.ui.base.TextBoxBase
org.gwtbootstrap3.client.ui.TextBox
org.gwtbootstrap3.extras.typeahead.client.ui.Typeahead<T>
public class Typeahead<T>
Twitter typeahead.js https://github.com/twitter/typeahead.js
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.ValueBoxBase |
|---|
ValueBoxBase.TextAlignment |
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Nested classes/interfaces inherited from interface com.google.gwt.editor.client.Editor |
|---|
Editor.Ignore, Editor.Path |
| Nested classes/interfaces inherited from interface com.google.gwt.i18n.client.HasDirection |
|---|
HasDirection.Direction |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasPlaceholder |
|---|
PLACEHOLDER |
| Fields inherited from interface org.gwtbootstrap3.client.ui.base.HasAutoComplete |
|---|
AUTO_COMPLETE, OFF, ON |
| Constructor Summary | |
|---|---|
Typeahead()
|
|
Typeahead(Collection<? extends Dataset<T>> datasets)
|
|
Typeahead(Dataset<T> dataset)
A typeahead is composed of one or more datasets. |
|
| Method Summary | |
|---|---|
HandlerRegistration |
addTypeaheadAutoCompletedHandler(TypeaheadAutoCompletedHandler<T> handler)
|
HandlerRegistration |
addTypeaheadClosedHandler(TypeaheadClosedHandler<T> handler)
|
HandlerRegistration |
addTypeaheadCursorChangededHandler(TypeaheadCursorChangedHandler<T> handler)
|
HandlerRegistration |
addTypeaheadOpenedHandler(TypeaheadOpenedHandler<T> handler)
|
HandlerRegistration |
addTypeaheadSelectedHandler(TypeaheadSelectedHandler<T> handler)
|
protected void |
configure()
|
protected void |
onLoad()
|
protected void |
onUnload()
|
void |
reconfigure()
|
void |
setDatasets(Collection<? extends Dataset<T>> datasets)
|
void |
setDatasets(Dataset<T> dataset)
|
void |
setHighlight(boolean highlight)
If true, when suggestions are rendered, pattern matches for the
current query in text nodes will be wrapped in a strong element
with the tt-highlight class. |
void |
setHint(boolean hint)
If false, the typeahead will not show a hint. |
void |
setMinLength(int minLength)
The minimum character length needed before suggestions start getting rendered. |
void |
setValue(String value,
boolean fireEvents)
|
| Methods inherited from class org.gwtbootstrap3.client.ui.TextBox |
|---|
clear |
| Methods inherited from class org.gwtbootstrap3.client.ui.base.TextBoxBase |
|---|
getValue |
| Methods inherited from class org.gwtbootstrap3.client.ui.base.ValueBoxBase |
|---|
addValidationChangedHandler, addValidator, getAllowBlank, getAutoComplete, getErrorHandler, getErrorHandlerType, getId, getPlaceholder, getSize, getValidateOnBlur, reset, setAllowBlank, setAutoComplete, setErrorHandler, setErrorHandlerType, setHiddenOn, setId, setMaxLength, setPlaceholder, setSize, setValidateOnBlur, setValidators, setVisibleOn, showErrors, validate, validate |
| Methods inherited from class com.google.gwt.user.client.ui.ValueBoxBase |
|---|
addChangeHandler, addValueChangeHandler, asEditor, cancelKey, getCursorPos, getDirection, getDirectionEstimator, getImpl, getName, getSelectedText, getSelectionLength, getText, getValueOrThrow, isReadOnly, onBrowserEvent, removeChangeListener, selectAll, setAlignment, setCursorPos, setDirection, setDirectionEstimator, setDirectionEstimator, setKey, setName, setReadOnly, setSelectionRange, setText, setValue |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Methods inherited from interface com.google.gwt.event.dom.client.HasKeyUpHandlers |
|---|
addKeyUpHandler |
| Constructor Detail |
|---|
public Typeahead()
public Typeahead(Dataset<T> dataset)
dataset - a dataset for providing suggestionspublic Typeahead(Collection<? extends Dataset<T>> datasets)
| Method Detail |
|---|
public void setDatasets(Dataset<T> dataset)
public void setDatasets(Collection<? extends Dataset<T>> datasets)
public void setValue(String value,
boolean fireEvents)
setValue in interface HasValue<String>setValue in class org.gwtbootstrap3.client.ui.base.ValueBoxBase<String>public void setHighlight(boolean highlight)
true, when suggestions are rendered, pattern matches for the
current query in text nodes will be wrapped in a strong element
with the tt-highlight class. Defaults to false.
highlight - true to highlight pattern matches in suggestionspublic void setHint(boolean hint)
false, the typeahead will not show a hint. Defaults to true.
hint - true to show a hintpublic void setMinLength(int minLength)
minLength - minimum required input length for matchingpublic HandlerRegistration addTypeaheadOpenedHandler(TypeaheadOpenedHandler<T> handler)
public HandlerRegistration addTypeaheadClosedHandler(TypeaheadClosedHandler<T> handler)
public HandlerRegistration addTypeaheadCursorChangededHandler(TypeaheadCursorChangedHandler<T> handler)
public HandlerRegistration addTypeaheadAutoCompletedHandler(TypeaheadAutoCompletedHandler<T> handler)
public HandlerRegistration addTypeaheadSelectedHandler(TypeaheadSelectedHandler<T> handler)
public void reconfigure()
protected void onLoad()
onLoad in class ValueBoxBase<String>protected void onUnload()
onUnload in class Widgetprotected void configure()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||