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 TGet the current object.default ObjectBrowser<T> Get the searcher for this field.getValue()Get the current value.voidload(ObjectIterator<T> objects) Load allowed values from a list.voidreload()Reload the allowed values by applying newly set filters.voidsetInternalLabel(String label) Set the internal label for this field.default voidSet the given object as the value.default voidsetObjectClass(Class<? extends T>... classes) Set one or more (typically more than one) class subtypes that this field should allow.default voidSet the value as anId.voidSet the value.Methods 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.storedobject.core.FilterMethods
applyFilter, getEffectiveCondition, getFilterCondition, getLoadFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setFilter, setLoadFilter, setLoadFilter, setViewFilter, setViewFilterMethods 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.HasLabel
getLabel, setLabelMethods inherited from interface com.vaadin.flow.component.HasPlaceholder
getPlaceholder, setPlaceholderMethods inherited from interface com.storedobject.vaadin.HasThemeStyle
addTheme, asPrimary, asSmall, clearThemes, getInternalElement, removeTheme, setThemeMethods inherited from interface com.storedobject.core.ObjectSetter
acceptMethods 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:
getObjectin interfaceAbstractObjectInput<T extends StoredObject>- Specified by:
getObjectin interfaceObjectGetter<T extends StoredObject>- Specified by:
getObjectin interfaceObjectProvider<T extends StoredObject>- Returns:
- Current object.
-
setObject
Set the given object as the value.- Specified by:
setObjectin interfaceAbstractObjectInput<T extends StoredObject>- Specified by:
setObjectin 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
ObjectBrowserthat has search capability.
-