Package com.storedobject.ui
Interface IdInput<T extends StoredObject>
- Type Parameters:
T
- Type of objects for whichId
values 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
- All Known Subinterfaces:
DelegatedIdInput<T>
- All Known Implementing Classes:
AccountField
,ObjectField
,UserField
Fields that can input
Id
values.- Author:
- Syam
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
Get the current object value.default Id
Get the current value.getValue()
Get the value.default void
setObject
(StoredObject object) Set a raw object as the value.void
Set the value.default void
Set the value for the given object.Methods inherited from interface com.storedobject.ui.util.AbstractObjectInput
applyFilterPredicate, convert, focus, getCached, getDetailComponent, getDisplayDetail, getObject, getObjectClass, 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
-
Method Details
-
getValue
-
setValue
-
setValue
Set the value for the given object. The default implementation tries to cache the object.- Parameters:
object
- Object for which value needs to be set.
-
getObject
Get the current object value.- 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:
- Object value.
-
getObjectId
Get the current value. (Same asgetValue()
.- Specified by:
getObjectId
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
getObjectId
in interfaceObjectGetter<T extends StoredObject>
- Specified by:
getObjectId
in interfaceObjectProvider<T extends StoredObject>
- Returns:
- Value.
-
setObject
Set a raw object as the value. If the object is not convertible to the supported type, it will setnull
value.- Specified by:
setObject
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
setObject
in interfaceObjectSetter<T extends StoredObject>
- Parameters:
object
- Object to set.
-