Package com.storedobject.ui.inventory
Class ItemGetField<I extends InventoryItem>
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.AbstractField<com.vaadin.flow.component.customfield.CustomField<I>,I>
com.vaadin.flow.component.customfield.CustomField<I>
com.storedobject.vaadin.CustomField<I>
com.storedobject.ui.AbstractObjectField<I>
com.storedobject.ui.ObjectGetField<I>
com.storedobject.ui.inventory.ItemGetField<I>
- Type Parameters:
I- Type of inventory item to accept.
- All Implemented Interfaces:
FilterMethods<I>,ObjectGetter<I>,ObjectSetter<I>,ItemInput<I>,ObjectInput<I>,ObjectProvider<I>,AbstractObjectInput<I>,HasElement,HasThemeStyle,ValueRequired,com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.BlurNotifier<com.vaadin.flow.component.customfield.CustomField<I>>,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.Focusable<com.vaadin.flow.component.customfield.CustomField<I>>,com.vaadin.flow.component.FocusNotifier<com.vaadin.flow.component.customfield.CustomField<I>>,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.customfield.CustomField<I>,,I>, I> com.vaadin.flow.component.HasValueAndElement<com.vaadin.flow.component.AbstractField.ComponentValueChangeEvent<com.vaadin.flow.component.customfield.CustomField<I>,,I>, I> 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.customfield.CustomField<I>,,I>, I> Serializable,Consumer<I>
public class ItemGetField<I extends InventoryItem>
extends ObjectGetField<I>
implements ItemInput<I>
Field to accept an instance of the
InventoryItem from direct search words.- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.ui.ObjectGetField
ObjectGetField.GetProvider<O extends StoredObject>, ObjectGetField.GetSupplier<O extends StoredObject>, ObjectGetField.GetTypedSupplier<O extends StoredObject>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.HasValue
com.vaadin.flow.component.HasValue.ValueChangeEvent<V>, com.vaadin.flow.component.HasValue.ValueChangeListener<E extends com.vaadin.flow.component.HasValue.ValueChangeEvent<?>> -
Constructor Summary
ConstructorsConstructorDescriptionItemGetField(Class<I> objectClass) Constructor.ItemGetField(Class<I> objectClass, boolean allowAny) Constructor.ItemGetField(String label, Class<I> objectClass) Constructor.ItemGetField(String label, Class<I> objectClass, boolean allowAny) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectBrowser<I> Get the searcher for this field.voidfixPartNumber(InventoryItemType partNumber) Fix the part number (an instance ofInventoryItemType).ObjectProvider<? extends InventoryItemType> Get the P/N provider of this.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.ObjectGetField
canCreate, createGetProvider, createPrefixComponent, doSearch, doSearchLoadAll, focus, generateModelValue, getSearchField, setNotFoundHandler, setNotFoundTacker, setPlaceholder, setPresentationValueMethods inherited from class com.storedobject.ui.AbstractObjectField
applyFilter, clear, createDefaultSearcher, editor, filter, filteredList, getBrowseColumns, getCached, getContent, getDetailComponent, getDisplayDetail, getInternalLabel, getLoadFilter, getObjectClass, getPrefixComponent, getSearchColumns, getSearcher, initComponent, isAllowAny, isInvalid, isRequired, load, onAttach, reget, reload, setBrowseColumns, setCached, setDetailComponent, setDisplayDetail, setEnabled, setInternalLabel, setItemLabelGenerator, setPrefixFieldControl, setReadOnly, setRequired, setSearchColumnsMethods inherited from class com.storedobject.vaadin.CustomField
addField, addFieldMethods inherited from class com.vaadin.flow.component.customfield.CustomField
add, addThemeVariants, getLabel, remove, removeThemeVariants, setLabel, updateValueMethods inherited from class com.vaadin.flow.component.AbstractField
addValueChangeListener, getEmptyValue, getValue, isEmpty, setModelValue, setValue, 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, onDetach, 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
applyFilter, getEffectiveCondition, getFilterCondition, getLoadFilter, 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.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.HasPlaceholder
getPlaceholder, setPlaceholderMethods 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.HasTooltip
getTooltip, setTooltipTextMethods inherited from interface com.vaadin.flow.component.HasValidation
setManualValidationMethods inherited from interface com.vaadin.flow.component.shared.HasValidationProperties
getErrorMessage, setErrorMessage, setInvalidMethods inherited from interface com.vaadin.flow.component.HasValue
addValueChangeListener, getEmptyValue, getOptionalValue, getValue, isEmpty, setValueMethods inherited from interface com.vaadin.flow.component.HasValueAndElement
isReadOnly, isRequiredIndicatorVisible, setRequiredIndicatorVisibleMethods inherited from interface com.storedobject.ui.ObjectInput
getInternalLabel, getObject, getSearcher, getValue, load, reload, setInternalLabel, setObject, setObjectClass, setValue, setValueMethods inherited from interface com.storedobject.core.ObjectSetter
acceptMethods inherited from interface com.storedobject.vaadin.ValueRequired
isRequired, setRequired
-
Constructor Details
-
ItemGetField
Constructor.- Parameters:
objectClass- Class of theInventoryItemobjects that are valid.
-
ItemGetField
Constructor.- Parameters:
label- Label for the field.objectClass- Class of theInventoryItemobjects that are valid.
-
ItemGetField
Constructor.- Parameters:
objectClass- Class of theInventoryItemobjects that are valid.allowAny- Whether subclasses should be allowed or not.
-
ItemGetField
Constructor.- Parameters:
label- Label for the field.objectClass- Class of theInventoryItemobjects that are valid.allowAny- Whether subclasses should be allowed or not.
-
-
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.
-
createSearcher
Description copied from class:AbstractObjectFieldGet the searcher for this field.- Overrides:
createSearcherin classAbstractObjectField<I extends InventoryItem>- Returns:
- Typically, an instance of the
ObjectBrowserthat has search capability.
-