Package com.storedobject.ui.inventory
Interface ItemInput<T extends InventoryItem>
- Type Parameters:
T
- Type of objects that can be inputted.
- All Superinterfaces:
AbstractObjectInput<T>
,Consumer<T>
,FilterMethods<T>
,HasElement
,com.vaadin.flow.component.HasElement
,com.vaadin.flow.component.HasLabel
,com.vaadin.flow.component.HasPlaceholder
,HasThemeStyle
,ObjectGetter<T>
,ObjectInput<T>
,ObjectProvider<T>
,ObjectSetter<T>
,Serializable
,ValueRequired
- All Known Implementing Classes:
AssemblyItemField
,ItemComboField
,ItemField
,ItemGetField
Fields that can input a given type of
InventoryItem
value.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionstatic <I extends InventoryItem>
ItemInput<I> A helper method to create an instance of theItemInput
field based on the properties of the item's class.static <I extends InventoryItem>
ItemInput<I> A helper method to create an instance of theItemInput
field based on the properties of the item's class.static <I extends InventoryItem>
ItemInput<I> A helper method to create an instance of theItemInput
field based on the properties of the item's class.static <I extends InventoryItem>
ItemInput<I> A helper method to create an instance of theItemInput
field based on the properties of the item's class.ObjectProvider
<? extends InventoryItemType> Get the P/N provider of this.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 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.storedobject.core.FilterMethods
applyFilter, getEffectiveCondition, getFilterCondition, getLoadFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setLoadFilter, setLoadFilter, setViewFilter, setViewFilter
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.HasLabel
getLabel, setLabel
Methods inherited from interface com.vaadin.flow.component.HasPlaceholder
getPlaceholder, setPlaceholder
Methods inherited from interface com.storedobject.vaadin.HasThemeStyle
addTheme, asPrimary, asSmall, clearThemes, getInternalElement, removeTheme, setTheme
Methods inherited from interface com.storedobject.ui.ObjectInput
getInternalLabel, getObject, getSearcher, getValue, load, reload, setInternalLabel, setObject, setObjectClass, setValue, setValue
Methods inherited from interface com.storedobject.core.ObjectSetter
accept
Methods inherited from interface com.storedobject.vaadin.ValueRequired
isRequired, setRequired
-
Method Details
-
setStore
Set the store. If set, only items from the given store will be acceptable.- Parameters:
storeField
- Any provider that can supply anInventoryStore
instance.
-
setStore
Set the store. If set, only items from the given store will be acceptable.- Parameters:
store
- An instance ofInventoryStore
.
-
setLocation
Set the location (it could be bin location or any other location). If set, only items from the given location will be acceptable.- Parameters:
locationField
- Any provider that can supply anInventoryLocation
instance.
-
setLocation
Set the location (it could be bin location or any other location). If set, only items from the given location will be acceptable.- Parameters:
location
- An instance of anInventoryLocation
.
-
setExtraFilterProvider
Set extra filters that need to be added to other filters when item's accessibility is checked.- Parameters:
extraFilterProvider
- Extra filter to be set.
-
getPartNumberProvider
ObjectProvider<? extends InventoryItemType> getPartNumberProvider()Get the P/N provider of this.- Returns:
- P/N provider.
-
create
-
create
-
create
-
create
static <I extends InventoryItem> ItemInput<I> create(String label, Class<I> objectClass, boolean allowAny) A helper method to create an instance of theItemInput
field based on the properties of the item's class.- Type Parameters:
I
- Type of the item class.- Parameters:
label
- Label for the field.objectClass
- Class of the item.allowAny
- Whether to allow subclasses or not.- Returns:
- Instance of an
ItemInput
.
-