public class CubaSuggestionPickerField<T> extends CubaPickerField<T>
CubaPickerField.FieldValueChangeEvent<V>, CubaPickerField.FieldValueChangeListener<V>
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
com.vaadin.ui.HasComponents.ComponentAttachDetachNotifier, com.vaadin.ui.HasComponents.ComponentAttachEvent, com.vaadin.ui.HasComponents.ComponentAttachListener, com.vaadin.ui.HasComponents.ComponentDetachEvent, com.vaadin.ui.HasComponents.ComponentDetachListener
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.HasContextHelp, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
com.vaadin.server.Sizeable.Unit
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
SUGGESTION_FIELD_STYLENAME |
protected static java.lang.String |
SUGGESTION_PICKERFIELD_STYLENAME |
BUTTON_STYLENAME, buttons, container, field, fieldReadOnly, fieldValueChangeListener, iconGenerator, inputWrapper, internalValue, LAYOUT_STYLENAME, PRIMARY_STYLENAME, suppressTextChangeListener, TEXT_FIELD_STYLENAME, textFieldValueProvider
Constructor and Description |
---|
CubaSuggestionPickerField() |
Modifier and Type | Method and Description |
---|---|
void |
addPopupStyleName(java.lang.String styleName) |
com.vaadin.shared.Registration |
addValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<T> listener) |
protected void |
doSetValue(T value) |
int |
getAsyncSearchDelayMs() |
protected CubaSuggestionField<T> |
getFieldInternal() |
java.lang.String |
getInputPrompt() |
int |
getMinSearchStringLength() |
java.lang.String |
getPopupWidth() |
int |
getSuggestionsLimit() |
T |
getValue() |
protected void |
init() |
protected void |
initField() |
boolean |
isSelectFirstSuggestionOnShow() |
protected void |
onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> event) |
void |
removePopupStyleName(java.lang.String styleName) |
void |
setArrowDownActionHandler(java.util.function.Consumer<java.lang.String> arrowDownActionHandler) |
void |
setAsyncSearchDelayMs(int asyncSearchDelayMs) |
void |
setCancelSearchHandler(java.lang.Runnable cancelSearchHandler) |
void |
setEnterActionHandler(java.util.function.Consumer<java.lang.String> enterActionHandler) |
void |
setInputPrompt(java.lang.String inputPrompt) |
void |
setMinSearchStringLength(int minSearchStringLength) |
void |
setOptionsStyleProvider(java.util.function.Function<java.lang.Object,java.lang.String> optionsStyleProvider) |
void |
setPopupStyleName(java.lang.String styleName) |
void |
setPopupWidth(java.lang.String popupWidth) |
void |
setSearchExecutor(java.util.function.Consumer<java.lang.String> searchExecutor) |
void |
setSelectFirstSuggestionOnShow(boolean selectFirstSuggestionOnShow) |
void |
setSuggestionsLimit(int suggestionsLimit) |
void |
setTextViewConverter(java.util.function.Function<T,java.lang.String> converter) |
void |
showSuggestions(java.util.List<T> suggestions,
boolean userOriginated) |
protected void |
updateFieldReadOnlyFocusable() |
addActionHandler, addButton, addFieldListener, attach, focus, getButtons, getEmptyStringRepresentation, getField, getIconGenerator, getStringRepresentation, getTabIndex, getTextFieldValueProvider, initContent, initLayout, isDifferentValue, isEmpty, isFieldReadOnly, removeActionHandler, removeButton, setFieldReadOnly, setHeight, setIconGenerator, setReadOnly, setTabIndex, setTextFieldValueProvider, setWidth, updateFieldReadOnly, updateIcon, updateTextRepresentation
getContent, getState, getState, iterator, setFocusDelegate
createValueChange, getCustomAttributes, isReadOnly, isRequiredIndicatorVisible, readDesign, setRequiredIndicatorVisible, setValue, setValue, writeDesign
addContextClickListener, addContextHelpIconClickListener, addListener, addShortcutListener, addStyleName, beforeClientResponse, detach, ensureContextHelpInitialized, findAncestor, fireComponentErrorEvent, fireComponentEvent, fireContextHelpClick, getActionManager, getCaption, getComponentError, getComponentErrorProvider, getContextHelpText, getCubaId, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getRequiredError, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isContextHelpTextHtmlEnabled, isEnabled, isOrHasAncestor, isResponsive, isVisible, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setComponentErrorProvider, setContextHelpText, setContextHelpTextHtmlEnabled, setCubaId, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setRequiredError, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthFull, setWidthUndefined
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addListener, addStyleName, addStyleNames, getCaption, getCubaId, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setCubaId, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setStyleName, setVisible, writeDesign
addAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected static final java.lang.String SUGGESTION_PICKERFIELD_STYLENAME
protected static final java.lang.String SUGGESTION_FIELD_STYLENAME
protected void init()
init
in class CubaPickerField<T>
protected void initField()
initField
in class CubaPickerField<T>
protected CubaSuggestionField<T> getFieldInternal()
protected void doSetValue(T value)
doSetValue
in class CubaPickerField<T>
protected void onFieldValueChange(com.vaadin.data.HasValue.ValueChangeEvent<?> event)
onFieldValueChange
in class CubaPickerField<T>
public T getValue()
getValue
in interface com.vaadin.data.HasValue<T>
getValue
in class CubaPickerField<T>
protected void updateFieldReadOnlyFocusable()
updateFieldReadOnlyFocusable
in class CubaPickerField<T>
public com.vaadin.shared.Registration addValueChangeListener(com.vaadin.data.HasValue.ValueChangeListener<T> listener)
public void setTextViewConverter(java.util.function.Function<T,java.lang.String> converter)
public int getAsyncSearchDelayMs()
public void setAsyncSearchDelayMs(int asyncSearchDelayMs)
public void setEnterActionHandler(java.util.function.Consumer<java.lang.String> enterActionHandler)
public void setArrowDownActionHandler(java.util.function.Consumer<java.lang.String> arrowDownActionHandler)
public int getMinSearchStringLength()
public void setMinSearchStringLength(int minSearchStringLength)
public void setSearchExecutor(java.util.function.Consumer<java.lang.String> searchExecutor)
public void showSuggestions(java.util.List<T> suggestions, boolean userOriginated)
public void setCancelSearchHandler(java.lang.Runnable cancelSearchHandler)
public void setSuggestionsLimit(int suggestionsLimit)
public int getSuggestionsLimit()
public java.lang.String getInputPrompt()
public void setInputPrompt(java.lang.String inputPrompt)
public void setPopupStyleName(java.lang.String styleName)
public void addPopupStyleName(java.lang.String styleName)
public void removePopupStyleName(java.lang.String styleName)
public void setPopupWidth(java.lang.String popupWidth)
public java.lang.String getPopupWidth()
public void setOptionsStyleProvider(java.util.function.Function<java.lang.Object,java.lang.String> optionsStyleProvider)
public boolean isSelectFirstSuggestionOnShow()
public void setSelectFirstSuggestionOnShow(boolean selectFirstSuggestionOnShow)