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.ClientValidatedEventNested 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(Class<I> itemClass, List<I> list) 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 TypeMethodDescriptionvoidfixPartNumber(InventoryItemType partNumber) Fix the part number (an instance ofInventoryItemType).ObjectProvider<? extends InventoryItemType> Get the P/N provider of this.voidreload()Reload the allowed values by applying newly set filters.voidsetExtraFilterProvider(FilterProvider extraFilterProvider) Set extra filters that need to be added to other filters when item's accessibility is checked.voidsetLocation(InventoryLocation location) Set the location (it could be bin location or any other location).voidsetLocation(ObjectProvider<? extends InventoryLocation> locationField) Set the location (it could be bin location or any other location).voidsetStore(InventoryStore store) Set the store.voidsetStore(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, setReadOnlyMethods inherited from class com.storedobject.vaadin.ComboField
addItems, addItems, addItems, getEmptyValue, getIndex, getIndex, getValue, items, removeItems, removeItems, removeItems, setIndex, setItems, sizeMethods inherited from class com.vaadin.flow.component.combobox.ComboBox
getI18n, getPattern, isSelected, refreshValue, setI18n, setOverlayWidth, setOverlayWidth, setPattern, setRequiredIndicatorVisibleMethods 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, validateMethods inherited from class com.vaadin.flow.component.AbstractSinglePropertyField
getSynchronizationRegistration, hasValidValue, setPresentationValue, setSynchronizedEventMethods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, getValue, isEmpty, setModelValue, valueEqualsMethods 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, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.ui.util.AbstractObjectInput
applyFilterPredicate, clear, convert, focus, getCached, getDetailComponent, getDisplayDetail, getObject, getObjectClass, getObjectId, getObjectId, isAllowAny, setCached, setDetailComponent, setDisplayDetail, setEnabled, setItemLabelGenerator, setObject, setPrefixFieldControl, setReadOnlyMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.BlurNotifier
addBlurListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.storedobject.core.FilterMethods
getFilterCondition, setFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setLoadFilter, setLoadFilter, setViewFilter, setViewFilterMethods inherited from interface com.vaadin.flow.component.Focusable
addFocusShortcut, blur, getTabIndex, setTabIndexMethods inherited from interface com.vaadin.flow.component.FocusNotifier
addFocusListenerMethods inherited from interface com.vaadin.flow.component.shared.HasAllowedCharPattern
getAllowedCharPattern, setAllowedCharPatternMethods inherited from interface com.vaadin.flow.component.shared.HasAutoOpen
isAutoOpen, setAutoOpenMethods inherited from interface com.vaadin.flow.component.shared.HasClearButton
isClearButtonVisible, setClearButtonVisibleMethods inherited from interface com.vaadin.flow.component.shared.HasClientValidation
addClientValidatedEventListenerMethods inherited from interface com.storedobject.vaadin.HasElement
getAttribute, getStyle, setAttribute, setStyleMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabledMethods inherited from interface com.vaadin.flow.component.HasHelper
getHelperComponent, getHelperText, setHelperComponent, setHelperTextMethods inherited from interface com.vaadin.flow.component.HasLabel
getLabel, setLabelMethods inherited from interface com.vaadin.flow.component.shared.HasOverlayClassName
getOverlayClassName, setOverlayClassNameMethods inherited from interface com.vaadin.flow.component.HasPlaceholder
getPlaceholder, setPlaceholderMethods inherited from interface com.vaadin.flow.component.shared.HasPrefix
getPrefixComponent, setPrefixComponentMethods 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, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassNameMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeNameMethods inherited from interface com.storedobject.vaadin.HasThemeStyle
addTheme, asPrimary, asSmall, clearThemes, getInternalElement, removeTheme, setThemeMethods inherited from interface com.vaadin.flow.component.shared.HasThemeVariant
addThemeVariants, removeThemeVariantsMethods inherited from interface com.vaadin.flow.component.shared.HasTooltip
getTooltip, setTooltipTextMethods inherited from interface com.vaadin.flow.component.shared.HasValidationProperties
getErrorMessage, isInvalid, setErrorMessage, setInvalidMethods inherited from interface com.vaadin.flow.data.binder.HasValidator
addValidationStatusChangeListenerMethods inherited from interface com.vaadin.flow.component.HasValue
addValueChangeListener, getOptionalValue, getValue, isEmptyMethods inherited from interface com.vaadin.flow.component.HasValueAndElement
isReadOnlyMethods inherited from interface com.storedobject.ui.ObjectInput
getInternalLabel, getObject, getSearcher, getValue, load, setInternalLabel, setObject, setObjectClass, setValue, setValueMethods 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, setOrderByMethods inherited from interface com.storedobject.ui.ObjectLoader
addDataLoadedListener, clear, getCacheLevel, getEffectiveCondition, getFixedFilter, getLoadFilter, setExtraFilter, setExtraFilter, setFilter, setFilter, setFixedFilter, setFixedFilter, setFixedFilter, setFixedFilter, size, streamAll, streamFilteredMethods inherited from interface com.storedobject.core.ObjectSetter
acceptMethods inherited from interface com.storedobject.vaadin.SpellCheck
setSpellCheckMethods 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
-
ItemComboField
-
ItemComboField
-
-
Method Details
-
fixPartNumber
Description copied from interface:ItemInputFix the part number (an instance ofInventoryItemType). If a non-null value is set, the "part number" portion will be locked with that value. Anullvalue may be set later to unlock it.- Specified by:
fixPartNumberin interfaceItemInput<I extends InventoryItem>- Parameters:
partNumber- Part number to set.
-
setStore
Description copied from interface:ItemInputSet the store. If set, only items from the given store will be acceptable.- Specified by:
setStorein interfaceItemInput<I extends InventoryItem>- Parameters:
storeField- Any provider that can supply anInventoryStoreinstance.
-
setStore
Description copied from interface:ItemInputSet the store. If set, only items from the given store will be acceptable.- Specified by:
setStorein interfaceItemInput<I extends InventoryItem>- Parameters:
store- An instance ofInventoryStore.
-
setLocation
Description copied from interface:ItemInputSet the location (it could be bin location or any other location). If set, only items from the given location will be acceptable.- Specified by:
setLocationin interfaceItemInput<I extends InventoryItem>- Parameters:
locationField- Any provider that can supply anInventoryLocationinstance.
-
setLocation
Description copied from interface:ItemInputSet the location (it could be bin location or any other location). If set, only items from the given location will be acceptable.- Specified by:
setLocationin interfaceItemInput<I extends InventoryItem>- Parameters:
location- An instance of anInventoryLocation.
-
setExtraFilterProvider
Description copied from interface:ItemInputSet extra filters that need to be added to other filters when item's accessibility is checked.- Specified by:
setExtraFilterProviderin interfaceItemInput<I extends InventoryItem>- Parameters:
extraFilterProvider- Extra filter to be set.
-
getPartNumberProvider
Description copied from interface:ItemInputGet the P/N provider of this.- Specified by:
getPartNumberProviderin interfaceItemInput<I extends InventoryItem>- Returns:
- P/N provider.
-
reload
public void reload()Description copied from interface:ObjectInputReload the allowed values by applying newly set filters.- Specified by:
reloadin interfaceObjectInput<I extends InventoryItem>- Specified by:
reloadin interfaceObjectLoader<I extends InventoryItem>- Overrides:
reloadin classObjectComboField<I extends InventoryItem>
-