Package com.storedobject.ui
Interface ObjectInput<T extends StoredObject>
- 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>
,ObjectProvider<T>
,ObjectSetter<T>
,Serializable
,ValueRequired
- All Known Subinterfaces:
DelegatedObjectInput<T>
,ItemInput<T>
- All Known Implementing Classes:
AbstractObjectField
,AssemblyItemField
,BinField
,BlockComboField
,FileField
,ItemComboField
,ItemField
,ItemGetField
,ItemTypeGetField
,LocationField
,ObjectCodeField
,ObjectComboField
,ObjectFormField
,ObjectGetField
,ObjectListField
,ObjectSearcherField
,ObjectSearchField
Fields that can input a given type of
StoredObject
value.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptionGet the internal label of this field.default T
Get the current object.default ObjectBrowser
<T> Get the searcher for this field.getValue()
Get the current value.void
load
(ObjectIterator<T> objects) Load allowed values from a list.void
reload()
Reload the allowed values by applying newly set filters.void
setInternalLabel
(String label) Set the internal label for this field.default void
Set the given object as the value.default void
setObjectClass
(Class<? extends T>... classes) Set one or more (typically more than one) class subtypes that this field should allow.default void
Set the value as anId
.void
Set the value.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.core.ObjectSetter
accept
Methods inherited from interface com.storedobject.vaadin.ValueRequired
isRequired, setRequired
-
Method Details
-
setValue
-
getValue
-
setInternalLabel
Set the internal label for this field. Internal labels are used by the embedded field within this field.- Parameters:
label
- Label.
-
getInternalLabel
String getInternalLabel()Get the internal label of this field. Internal labels are used by the embedded field within this field.- Returns:
- Label.
-
setValue
-
getObject
Get the current object. Same asgetValue()
.- Specified by:
getObject
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
getObject
in interfaceObjectGetter<T extends StoredObject>
- Specified by:
getObject
in interfaceObjectProvider<T extends StoredObject>
- Returns:
- Current object.
-
setObject
Set the given object as the value.- Specified by:
setObject
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
setObject
in interfaceObjectSetter<T extends StoredObject>
- Parameters:
object
- Object to set.
-
load
Load allowed values from a list. Once invoked, only this list will be used for showing the allowed objects that can be selected via this field.- Parameters:
objects
- Objects to load.
-
reload
void reload()Reload the allowed values by applying newly set filters. -
setObjectClass
-
getSearcher
Get the searcher for this field. (A searcher is available only in certain implementations).- Returns:
- Typically, an instance of the
ObjectBrowser
that has search capability.
-