Package com.storedobject.ui
Interface IdInput<T extends StoredObject>
- Type Parameters:
T- Type of objects for whichIdvalues 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 TGet the current object value.default IdGet the current value.getValue()Get the value.default voidsetObject(StoredObject object) Set a raw object as the value.voidSet the value.default voidSet the value for the given object.Methods inherited from interface com.storedobject.ui.util.AbstractObjectInput
applyFilterPredicate, clear, convert, focus, getCached, getDetailComponent, getDisplayDetail, getObject, getObjectClass, 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
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:
getObjectin interfaceAbstractObjectInput<T extends StoredObject>- Specified by:
getObjectin interfaceObjectGetter<T extends StoredObject>- Specified by:
getObjectin interfaceObjectProvider<T extends StoredObject>- Returns:
- Object value.
-
getObjectId
Get the current value. (Same asgetValue().- Specified by:
getObjectIdin interfaceAbstractObjectInput<T extends StoredObject>- Specified by:
getObjectIdin interfaceObjectGetter<T extends StoredObject>- Specified by:
getObjectIdin 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 setnullvalue.- Specified by:
setObjectin interfaceAbstractObjectInput<T extends StoredObject>- Specified by:
setObjectin interfaceObjectSetter<T extends StoredObject>- Parameters:
object- Object to set.
-