Package com.storedobject.ui.inventory
Class ItemComboField<I extends InventoryItem>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<com.vaadin.flow.component.combobox.ComboBox<I>,I>
com.vaadin.flow.component.AbstractSinglePropertyField<com.vaadin.flow.component.combobox.ComboBox<I>,I>
com.vaadin.flow.component.combobox.ComboBoxBase<com.vaadin.flow.component.combobox.ComboBox<I>,I,I>
com.vaadin.flow.component.combobox.ComboBox<I>
com.storedobject.vaadin.ComboField<I>
com.storedobject.ui.ObjectComboField<I>
com.storedobject.ui.inventory.ItemComboField<I>
- All Implemented Interfaces:
ResourceOwner
,FilterMethods<I>
,ObjectGetter<I>
,ObjectLoader<I>
,ObjectSetter<I>
,ItemInput<I>
,ObjectInput<I>
,ObjectLoader<I>
,ObjectProvider<I>
,AbstractObjectInput<I>
,HasElement
,HasThemeStyle
,SpellCheck
,ValueRequired
,com.vaadin.flow.component.AttachNotifier
,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.combobox.ComboBox<I>>
,com.vaadin.flow.component.DetachNotifier
,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.combobox.ComboBox<I>>
,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.combobox.ComboBox<I>>
,com.vaadin.flow.component.HasAriaLabel
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasEnabled
,com.vaadin.flow.component.HasHelper
,com.vaadin.flow.component.HasLabel
,com.vaadin.flow.component.HasPlaceholder
,com.vaadin.flow.component.HasSize
,com.vaadin.flow.component.HasStyle
,com.vaadin.flow.component.HasTheme
,com.vaadin.flow.component.HasValidation
,com.vaadin.flow.component.HasValue<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<I>,
,I>, I> com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<I>,
,I>, I> com.vaadin.flow.component.shared.HasAllowedCharPattern
,com.vaadin.flow.component.shared.HasAutoOpen
,com.vaadin.flow.component.shared.HasClearButton
,com.vaadin.flow.component.shared.HasClientValidation
,com.vaadin.flow.component.shared.HasOverlayClassName
,com.vaadin.flow.component.shared.HasPrefix
,com.vaadin.flow.component.shared.HasThemeVariant<com.vaadin.flow.component.combobox.ComboBoxVariant>
,com.vaadin.flow.component.shared.HasTooltip
,com.vaadin.flow.component.shared.HasValidationProperties
,com.vaadin.flow.component.shared.InputField<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.combobox.ComboBox<I>,
,I>, I> com.vaadin.flow.data.binder.HasValidator<I>
,com.vaadin.flow.data.provider.HasDataView<I,
,String, com.vaadin.flow.component.combobox.dataview.ComboBoxDataView<I>> com.vaadin.flow.data.provider.HasLazyDataView<I,
,String, com.vaadin.flow.component.combobox.dataview.ComboBoxLazyDataView<I>> com.vaadin.flow.data.provider.HasListDataView<I,
,com.vaadin.flow.component.combobox.dataview.ComboBoxListDataView<I>> Serializable
,Consumer<I>
public class ItemComboField<I extends InventoryItem>
extends ObjectComboField<I>
implements ItemInput<I>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vaadin.flow.component.combobox.ComboBox
com.vaadin.flow.component.combobox.ComboBox.ComboBoxI18n, com.vaadin.flow.component.combobox.ComboBox.FetchItemsCallback<T>, com.vaadin.flow.component.combobox.ComboBox.ItemFilter<T>
Nested classes/interfaces inherited from class com.vaadin.flow.component.combobox.ComboBoxBase
com.vaadin.flow.component.combobox.ComboBoxBase.CustomValueSetEvent<TComponent extends com.vaadin.flow.component.combobox.ComboBoxBase<TComponent,
?, ?>>, com.vaadin.flow.component.combobox.ComboBoxBase.SpringData Nested classes/interfaces inherited from class com.vaadin.flow.component.AbstractField
com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<C extends com.vaadin.flow.component.Component,
V> Nested classes/interfaces inherited from interface com.vaadin.flow.component.BlurNotifier
com.vaadin.flow.component.BlurNotifier.BlurEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.vaadin.flow.component.FocusNotifier
com.vaadin.flow.component.FocusNotifier.FocusEvent<C extends com.vaadin.flow.component.Component>
Nested classes/interfaces inherited from interface com.vaadin.flow.component.shared.HasClientValidation
com.vaadin.flow.component.shared.HasClientValidation.ClientValidatedEvent
Nested classes/interfaces inherited from interface com.vaadin.flow.component.HasValue
com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>>
-
Constructor Summary
ConstructorsConstructorDescriptionItemComboField
(Class<I> objectClass) ItemComboField
(Class<I> objectClass, boolean any) ItemComboField
(Class<I> objectClass, String condition) ItemComboField
(Class<I> objectClass, String condition, boolean any) ItemComboField
(Class<I> objectClass, String condition, String orderBy) ItemComboField
(Class<I> objectClass, String condition, String orderBy, boolean any) ItemComboField
(String label, Class<I> objectClass) ItemComboField
(String label, Class<I> objectClass, boolean any) ItemComboField
(String label, Class<I> objectClass, String condition) ItemComboField
(String label, Class<I> objectClass, String condition, boolean any) ItemComboField
(String label, List<I> list) ItemComboField
(List<I> list) -
Method Summary
Modifier and TypeMethodDescriptionObjectProvider
<? extends InventoryItemType> Get the P/N provider of this.void
reload()
Reload the allowed values by applying newly set filters.void
setExtraFilterProvider
(FilterProvider extraFilterProvider) Set extra filters that need to be added to other filters when item's accessibility is checked.void
setLocation
(InventoryLocation location) Set the location (it could be bin location or any other location).void
setLocation
(ObjectProvider<? extends InventoryLocation> locationField) Set the location (it could be bin location or any other location).void
setStore
(InventoryStore store) Set the store.void
setStore
(ObjectProvider<? extends InventoryStore> storeField) Set the store.Methods inherited from class com.storedobject.ui.ObjectComboField
applyFilterPredicate, clear, filter, focus, get, getCached, getDelegatedLoader, getDetailComponent, getDisplayDetail, getInternalLabel, getObject, getObjectClass, getObjectCount, getResource, indexOf, isAllowAny, lessRows, load, setDetailComponent, setDisplayDetail, setEnabled, setFilter, setFirstValue, setInternalLabel, setItemLabelGenerator, setPrefixFieldControl, setReadOnly
Methods inherited from class com.storedobject.vaadin.ComboField
addItems, addItems, addItems, getEmptyValue, getIndex, getIndex, getValue, items, removeItems, removeItems, removeItems, setIndex, setItems, size
Methods inherited from class com.vaadin.flow.component.combobox.ComboBox
getI18n, getPattern, isSelected, refreshValue, setI18n, setOverlayWidth, setOverlayWidth, setPattern, setRequiredIndicatorVisible
Methods inherited from class com.vaadin.flow.component.combobox.ComboBoxBase
addCustomValueSetListener, generateClassName, generateLabel, getAriaLabel, getAriaLabelledBy, getDataCommunicator, getDataController, getDataGenerator, getDataProvider, getDefaultValidator, getFilter, getGenericDataView, getItemClassNameGenerator, getItemLabelGenerator, getKeyMapper, getLazyDataView, getListDataView, getPageSize, getRenderManager, isAllowCustomValue, isAutofocus, isOpened, isRequired, isRequiredIndicatorVisible, onAttach, onDetach, runBeforeClientResponse, setAllowCustomValue, setAriaLabel, setAriaLabelledBy, setAutofocus, setClassNameGenerator, setDataProvider, setDataProvider, setI18n, setItems, setItems, setItems, setItems, setItems, setItems, setItems, setItems, setItems, setItems, setItems, setItemsPageable, setItemsPageable, setItemsWithFilterConverter, setItemsWithFilterConverter, setManualValidation, setOpened, setPageSize, setRenderer, setRequired, setValue, validate
Methods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEvent
Methods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, getValue, isEmpty, setModelValue, valueEquals
Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.ui.util.AbstractObjectInput
applyFilterPredicate, convert, focus, getCached, getDetailComponent, getDisplayDetail, getObject, getObjectClass, getObjectId, getObjectId, isAllowAny, setCached, setDetailComponent, setDisplayDetail, setEnabled, setItemLabelGenerator, setObject, setPrefixFieldControl, setReadOnly
Methods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListener
Methods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListener
Methods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListener
Methods inherited from interface com.storedobject.core.FilterMethods
getFilterCondition, setFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setLoadFilter, setLoadFilter, setViewFilter, setViewFilter
Methods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, getTabIndex, setTabIndex
Methods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListener
Methods inherited from interface com.vaadin.flow.component.shared.HasAllowedCharPattern
getAllowedCharPattern, setAllowedCharPattern
Methods inherited from interface com.vaadin.flow.component.shared.HasAutoOpen
isAutoOpen, setAutoOpen
Methods inherited from interface com.vaadin.flow.component.shared.HasClearButton
isClearButtonVisible, setClearButtonVisible
Methods inherited from interface com.vaadin.flow.component.shared.HasClientValidation
addClientValidatedEventListener
Methods inherited from interface com.storedobject.vaadin.HasElement
getAttribute, getStyle, setAttribute, setStyle
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
Methods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled
Methods inherited from interface com.vaadin.flow.component.HasHelper
getHelperComponent, getHelperText, setHelperComponent, setHelperText
Methods inherited from interface com.vaadin.flow.component.HasLabel
getLabel, setLabel
Methods inherited from interface com.vaadin.flow.component.shared.HasOverlayClassName
getOverlayClassName, setOverlayClassName
Methods inherited from interface com.vaadin.flow.component.HasPlaceholder
getPlaceholder, setPlaceholder
Methods inherited from interface com.vaadin.flow.component.shared.HasPrefix
getPrefixComponent, setPrefixComponent
Methods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFull
Methods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
Methods inherited from interface com.storedobject.vaadin.HasThemeStyle
addTheme, asPrimary, asSmall, clearThemes, getInternalElement, removeTheme, setTheme
Methods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariants
Methods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipText
Methods inherited from interface com.vaadin.flow.component.shared.HasValidationProperties
getErrorMessage, isInvalid, setErrorMessage, setInvalid
Methods inherited from interface com.vaadin.flow.data.binder.HasValidator
addValidationStatusChangeListener
Methods inherited from interface com.vaadin.flow.component.HasValue
addValueChangeListener, getOptionalValue, getValue, isEmpty
Methods inherited from interface com.vaadin.flow.component.HasValueAndElement
isReadOnly
Methods inherited from interface com.storedobject.ui.ObjectInput
getInternalLabel, getObject, getSearcher, getValue, load, setInternalLabel, setObject, setObjectClass, setValue, setValue
Methods inherited from interface com.storedobject.core.ObjectLoader
applyFilter, canContain, getAllowAny, getLinkType, getMaster, getOrderBy, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, setLinkType, setLinkType, setMaster, setMaster, setOrderBy, setOrderBy
Methods inherited from interface com.storedobject.ui.ObjectLoader
addDataLoadedListener, clear, getCacheLevel, getEffectiveCondition, getFixedFilter, getLoadFilter, setExtraFilter, setExtraFilter, setFilter, setFilter, setFixedFilter, setFixedFilter, setFixedFilter, setFixedFilter, size, streamAll, streamFiltered
Methods inherited from interface com.storedobject.core.ObjectSetter
accept
Methods inherited from interface com.storedobject.vaadin.SpellCheck
setSpellCheck
Methods inherited from interface com.storedobject.vaadin.ValueRequired
isRequired, setRequired
-
Constructor Details
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
ItemComboField
-
-
Method Details
-
setStore
Description copied from interface:ItemInput
Set the store. If set, only items from the given store will be acceptable.- Specified by:
setStore
in interfaceItemInput<I extends InventoryItem>
- Parameters:
storeField
- Any provider that can supply anInventoryStore
instance.
-
setStore
Description copied from interface:ItemInput
Set the store. If set, only items from the given store will be acceptable.- Specified by:
setStore
in interfaceItemInput<I extends InventoryItem>
- Parameters:
store
- An instance ofInventoryStore
.
-
setLocation
Description copied from interface:ItemInput
Set the location (it could be bin location or any other location). If set, only items from the given location will be acceptable.- Specified by:
setLocation
in interfaceItemInput<I extends InventoryItem>
- Parameters:
locationField
- Any provider that can supply anInventoryLocation
instance.
-
setLocation
Description copied from interface:ItemInput
Set the location (it could be bin location or any other location). If set, only items from the given location will be acceptable.- Specified by:
setLocation
in interfaceItemInput<I extends InventoryItem>
- Parameters:
location
- An instance of anInventoryLocation
.
-
setExtraFilterProvider
Description copied from interface:ItemInput
Set extra filters that need to be added to other filters when item's accessibility is checked.- Specified by:
setExtraFilterProvider
in interfaceItemInput<I extends InventoryItem>
- Parameters:
extraFilterProvider
- Extra filter to be set.
-
getPartNumberProvider
Description copied from interface:ItemInput
Get the P/N provider of this.- Specified by:
getPartNumberProvider
in interfaceItemInput<I extends InventoryItem>
- Returns:
- P/N provider.
-
reload
public void reload()Description copied from interface:ObjectInput
Reload the allowed values by applying newly set filters.- Specified by:
reload
in interfaceObjectInput<I extends InventoryItem>
- Specified by:
reload
in interfaceObjectLoader<I extends InventoryItem>
- Overrides:
reload
in classObjectComboField<I extends InventoryItem>
-