THIS - Self-referential generic THISITEM - the item object type in the listingpublic interface FluentNativeSelect<THIS extends FluentNativeSelect<THIS,ITEM>,ITEM> extends FluentAbstractSingleSelect<THIS,ITEM>, FluentFieldEvents.FluentFocusNotifier<THIS>, FluentFieldEvents.FluentBlurNotifier<THIS>, FluentHasDataProvider<THIS,ITEM>
NativeSelectNativeSelectFluentComponent.FluentFocusable<C extends FluentComponent.FluentFocusable<C>>com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listenercom.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener| Modifier and Type | Method and Description |
|---|---|
default THIS |
withEmptySelectionAllowed(boolean emptySelectionAllowed)
Sets whether the user is allowed to select nothing in the combo box.
|
default THIS |
withEmptySelectionCaption(String caption)
Sets the empty selection caption.
|
default THIS |
withItemCaptionGenerator(com.vaadin.ui.ItemCaptionGenerator<ITEM> itemCaptionGenerator)
Sets the item caption generator that is used to produce the strings shown
in the combo box for each item.
|
default THIS |
withVisibleItemCount(int visibleItemCount)
Sets the number of items that are visible.
|
withSelectedItem, withSelectionListener, withValueChangeListenerwithCaption, withCaptionAsHtml, withComponentError, withData, withDescription, withDescription, withLocale, withResponsive, withShortcutListener, withStyleNamewithAttachListener, withDetachListenerwithContextClickListeneraddContextClickListener, removeContextClickListenerwithItems, withItems, withItemsgetDataProvider, setItems, setItems, setItemswithTabIndexwithCaption, withEnabled, withIcon, withId, withParent, withPrimaryStyleName, withStyleName, withStyleName, withVisibleaddListener, addStyleName, addStyleNames, attach, getCaption, getDescription, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getStyleName, getUI, isEnabled, isVisible, readDesign, removeListener, removeStyleName, removeStyleNames, setCaption, setEnabled, setIcon, setId, setParent, setPrimaryStyleName, setStyleName, setVisible, writeDesignaddAttachListener, addDetachListener, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerwithFullHeight, withFullSize, withFullWidth, withHeight, withHeight, withSize, withUndefinedHeight, withUndefinedSize, withUndefinedWidth, withWidth, withWidthgetHeight, getHeightUnits, getWidth, getWidthUnits, setHeight, setHeight, setHeightUndefined, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthUndefinedwithReadOnly, withRequiredIndicatorVisible, withValueaddValueChangeListener, clear, getDefaultValidator, getEmptyValue, getOptionalValue, getValue, isEmpty, isReadOnly, isRequiredIndicatorVisible, setReadOnly, setRequiredIndicatorVisible, setValuewithFocusListenerwithBlurListenerwithDataProvider, withItemsdefault THIS withItemCaptionGenerator(com.vaadin.ui.ItemCaptionGenerator<ITEM> itemCaptionGenerator)
String.valueOf(Object) is used.itemCaptionGenerator - the item caption provider to use, not nullNativeSelect.setItemCaptionGenerator(ItemCaptionGenerator)default THIS withVisibleItemCount(int visibleItemCount)
visibleItemCount - the visible item countIllegalArgumentException - if the value is smaller than oneNativeSelect.setVisibleItemCount(int)default THIS withEmptySelectionAllowed(boolean emptySelectionAllowed)
emptySelectionAllowed - true to allow not selecting anything, false to require
selectionNativeSelect.setEmptySelectionAllowed(boolean)default THIS withEmptySelectionCaption(String caption)
The empty string "" is the default empty selection caption.
If empty selection is allowed via the
NativeSelect.setEmptySelectionAllowed(boolean) method (it is by default) then
the empty item will be shown with the given caption.
caption - the caption to set, not nullNativeSelect.setEmptySelectionCaption(String),
AbstractSingleSelect.isSelected(Object)Copyright © 2017 Jean-Christophe Fortier. All rights reserved.