Package com.storedobject.ui.util
Interface DelegatedIdInput<T extends StoredObject>
- 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
,IdInput<T>
,ObjectGetter<T>
,ObjectProvider<T>
,ObjectSetter<T>
,Serializable
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.vaadin.flow.component.Component
Get the component that is currently displaying details of the object value.Get the consumer that is currently consuming details of the object value.default T
Get the current object value.Class of the object supported in this input field.default Id
Get the current value.default boolean
Whether this field allows any derived object values or not.default void
setDetailComponent
(com.vaadin.flow.component.Component detailComponent) Set a component that will display details of the object value.default void
setDisplayDetail
(Consumer<T> displayDetail) Set a consumer that can display/consume the details of the object value.default void
setFilter
(FilterProvider filterProvider) Set a filter provider to be used when loading takes place.default void
setPrefixFieldControl
(boolean searchFieldControl) Decide whether "prefix components" needs to be controlled by this field or not.Methods inherited from interface com.storedobject.ui.util.AbstractObjectInput
applyFilterPredicate, convert, focus, getCached, getObject, getObjectId, setCached, setEnabled, setItemLabelGenerator, setObject, setReadOnly
Methods inherited from interface com.storedobject.core.FilterMethods
applyFilter, getEffectiveCondition, getFilterCondition, getLoadFilter, 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.IdInput
getValue, setObject, setValue, setValue
Methods inherited from interface com.storedobject.core.ObjectSetter
accept
-
Method Details
-
getObjectInput
ObjectInput<T> getObjectInput() -
getObjectClass
Description copied from interface:AbstractObjectInput
Class of the object supported in this input field.- Specified by:
getObjectClass
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
getObjectClass
in interfaceObjectGetter<T extends StoredObject>
- Specified by:
getObjectClass
in interfaceObjectProvider<T extends StoredObject>
- Specified by:
getObjectClass
in interfaceObjectSetter<T extends StoredObject>
- Returns:
- Class of the supported object.
-
isAllowAny
default boolean isAllowAny()Description copied from interface:AbstractObjectInput
Whether this field allows any derived object values or not.- Specified by:
isAllowAny
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
isAllowAny
in interfaceObjectGetter<T extends StoredObject>
- Specified by:
isAllowAny
in interfaceObjectSetter<T extends StoredObject>
- Returns:
- True or false.
-
setFilter
Description copied from interface:FilterMethods
Set a filter provider to be used when loading takes place.- Specified by:
setFilter
in interfaceFilterMethods<T extends StoredObject>
- Parameters:
filterProvider
- Filter provider.
-
setDetailComponent
default void setDetailComponent(com.vaadin.flow.component.Component detailComponent) Description copied from interface:AbstractObjectInput
Set a component that will display details of the object value.- Specified by:
setDetailComponent
in interfaceAbstractObjectInput<T extends StoredObject>
- Parameters:
detailComponent
- A component that can display information regarding the object.
-
getDetailComponent
default com.vaadin.flow.component.Component getDetailComponent()Description copied from interface:AbstractObjectInput
Get the component that is currently displaying details of the object value.- Specified by:
getDetailComponent
in interfaceAbstractObjectInput<T extends StoredObject>
- Returns:
- Component that is displaying the details.
-
setDisplayDetail
Description copied from interface:AbstractObjectInput
Set a consumer that can display/consume the details of the object value.- Specified by:
setDisplayDetail
in interfaceAbstractObjectInput<T extends StoredObject>
- Parameters:
displayDetail
- A consumer that can accept the object value.
-
getDisplayDetail
Description copied from interface:AbstractObjectInput
Get the consumer that is currently consuming details of the object value.- Specified by:
getDisplayDetail
in interfaceAbstractObjectInput<T extends StoredObject>
- Returns:
- Consumer that is currently set.
-
setPrefixFieldControl
default void setPrefixFieldControl(boolean searchFieldControl) Description copied from interface:AbstractObjectInput
Decide whether "prefix components" needs to be controlled by this field or not. "Prefix components" are parts of the field that display extra information, and it needs to be turned on or off when the status of the field changes via methods such asAbstractObjectInput.setEnabled(boolean)
,AbstractObjectInput.setReadOnly(boolean)
etc. In some cases, prefix components may be displayed elsewhere and needs to be controlled outside the field.- Specified by:
setPrefixFieldControl
in interfaceAbstractObjectInput<T extends StoredObject>
- Parameters:
searchFieldControl
- True if it needs to be controlled by this field.
-
getObject
Description copied from interface:IdInput
Get the current object value.- Specified by:
getObject
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
getObject
in interfaceIdInput<T extends StoredObject>
- Specified by:
getObject
in interfaceObjectGetter<T extends StoredObject>
- Specified by:
getObject
in interfaceObjectProvider<T extends StoredObject>
- Returns:
- Object value.
-
getObjectId
Description copied from interface:IdInput
Get the current value. (Same asIdInput.getValue()
.- Specified by:
getObjectId
in interfaceAbstractObjectInput<T extends StoredObject>
- Specified by:
getObjectId
in interfaceIdInput<T extends StoredObject>
- Specified by:
getObjectId
in interfaceObjectGetter<T extends StoredObject>
- Specified by:
getObjectId
in interfaceObjectProvider<T extends StoredObject>
- Returns:
- Value.
-