public interface SuggestionField extends Field, Component.Focusable, Component.HasInputPrompt, Component.HasOptionsStyleProvider
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SuggestionField.ArrowDownActionHandler |
static interface |
SuggestionField.EnterActionHandler |
static class |
SuggestionField.OptionWrapper
Represent value and its string representation.
|
static interface |
SuggestionField.ParametrizedSearchExecutor<E> |
static interface |
SuggestionField.SearchExecutor<E> |
Field.ValidatorComponent.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
static java.lang.String |
POPUP_AUTO_WIDTH |
static java.lang.String |
POPUP_PARENT_WIDTH |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS| Modifier and Type | Method and Description |
|---|---|
SuggestionField.ArrowDownActionHandler |
getArrowDownActionHandler() |
int |
getAsyncSearchDelayMs() |
int |
getAsyncSearchTimeoutMs()
Deprecated.
Use
getAsyncSearchDelayMs() instead. |
CaptionMode |
getCaptionMode() |
java.lang.String |
getCaptionProperty() |
SuggestionField.EnterActionHandler |
getEnterActionHandler() |
int |
getMinSearchStringLength() |
java.lang.String |
getPopupWidth() |
SuggestionField.SearchExecutor |
getSearchExecutor() |
int |
getSuggestionsLimit() |
void |
setArrowDownActionHandler(SuggestionField.ArrowDownActionHandler arrowDownActionHandler)
Sets
SuggestionField.ArrowDownActionHandler which handles ARROW_DOWN key pressing. |
void |
setAsyncSearchDelayMs(int asyncSearchDelayMs)
Sets delay between the last key press action and async search.
|
void |
setAsyncSearchTimeoutMs(int asyncSearchTimeoutMs)
Deprecated.
Use
setAsyncSearchDelayMs(int) instead. |
void |
setCaptionMode(CaptionMode captionMode) |
void |
setCaptionProperty(java.lang.String captionProperty) |
void |
setEnterActionHandler(SuggestionField.EnterActionHandler enterActionHandler)
Sets
SuggestionField.EnterActionHandler which handles ENTER key pressing. |
void |
setMinSearchStringLength(int minSearchStringLength)
Sets min string length which is required to perform suggestions search.
|
void |
setPopupWidth(java.lang.String width)
Sets the given
width to the component popup. |
void |
setSearchExecutor(SuggestionField.SearchExecutor searchExecutor)
Sets
SuggestionField.SearchExecutor which performs search. |
void |
setSuggestionsLimit(int suggestionsLimit)
Sets limit of suggestions which will be shown.
|
void |
showSuggestions(java.util.List<?> suggestions)
Show passed suggestions in popup.
|
addValidator, getRequiredMessage, getValidators, isRequired, removeValidator, setRequired, setRequiredMessagegetDatasource, getMetaProperty, getMetaPropertyPath, setDatasourceaddListener, addValueChangeListener, getValue, removeListener, removeValueChangeListener, setValueisEditable, isEditableWithParent, setEditablegetFrame, setFrameaddStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapCompositiongetCaption, getDescription, setCaption, setDescriptionisValid, isValidateOnCommit, validategetIcon, setIcon, setIconFromSetgetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledgetTabIndex, isFocusable, setFocusable, setTabIndexgetInputPrompt, setInputPromptgetOptionsStyleProvider, setOptionsStyleProviderstatic final java.lang.String NAME
static final java.lang.String POPUP_AUTO_WIDTH
static final java.lang.String POPUP_PARENT_WIDTH
@Deprecated int getAsyncSearchTimeoutMs()
getAsyncSearchDelayMs() instead.@Deprecated void setAsyncSearchTimeoutMs(int asyncSearchTimeoutMs)
setAsyncSearchDelayMs(int) instead.asyncSearchTimeoutMs - delay in msint getAsyncSearchDelayMs()
void setAsyncSearchDelayMs(int asyncSearchDelayMs)
asyncSearchDelayMs - delay in msSuggestionField.SearchExecutor getSearchExecutor()
SuggestionField.SearchExecutor which performs searchvoid setSearchExecutor(SuggestionField.SearchExecutor searchExecutor)
SuggestionField.SearchExecutor which performs search.searchExecutor - SearchExecutor instanceSuggestionField.EnterActionHandler getEnterActionHandler()
SuggestionField.EnterActionHandler which handles ENTER key pressingvoid setEnterActionHandler(SuggestionField.EnterActionHandler enterActionHandler)
SuggestionField.EnterActionHandler which handles ENTER key pressing.enterActionHandler - EnterActionHandler instanceSuggestionField.ArrowDownActionHandler getArrowDownActionHandler()
SuggestionField.ArrowDownActionHandler which handles ARROW_DOWN key pressingvoid setArrowDownActionHandler(SuggestionField.ArrowDownActionHandler arrowDownActionHandler)
SuggestionField.ArrowDownActionHandler which handles ARROW_DOWN key pressing.arrowDownActionHandler - ArrowDownActionHandler instanceint getMinSearchStringLength()
void setMinSearchStringLength(int minSearchStringLength)
minSearchStringLength - required string length to perform searchint getSuggestionsLimit()
void setSuggestionsLimit(int suggestionsLimit)
suggestionsLimit - integer limit valuevoid showSuggestions(java.util.List<?> suggestions)
suggestions - suggestions to showvoid setPopupWidth(java.lang.String width)
width to the component popup.width - width of the component popupjava.lang.String getPopupWidth()
CaptionMode getCaptionMode()
void setCaptionMode(CaptionMode captionMode)
java.lang.String getCaptionProperty()
void setCaptionProperty(java.lang.String captionProperty)