Package com.storedobject.ui.util
Interface DelegatedObjectInput<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,ObjectGetter<T>,ObjectInput<T>,ObjectProvider<T>,ObjectSetter<T>,Serializable,ValueRequired
-
Method Summary
Modifier and TypeMethodDescriptiondefault com.vaadin.flow.component.ComponentGet the component that is currently displaying details of the object value.Get the consumer that is currently consuming details of the object value.Class of the object supported in this input field.default booleanWhether this field allows any derived object values or not.default voidsetDetailComponent(com.vaadin.flow.component.Component detailComponent) Set a component that will display details of the object value.default voidsetDisplayDetail(Consumer<T> displayDetail) Set a consumer that can display/consume the details of the object value.default voidsetFilter(FilterProvider filterProvider) Set a filter provider to be used when loading takes place.default voidsetPrefixFieldControl(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, clear, convert, focus, getCached, getObject, getObjectId, getObjectId, setCached, setEnabled, setItemLabelGenerator, setObject, setReadOnlyMethods inherited from interface com.storedobject.core.FilterMethods
applyFilter, getEffectiveCondition, getFilterCondition, getLoadFilter, 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.ui.ObjectInput
getInternalLabel, getObject, getSearcher, getValue, load, reload, setInternalLabel, setObject, setObjectClass, setValue, setValueMethods inherited from interface com.storedobject.core.ObjectSetter
acceptMethods inherited from interface com.storedobject.vaadin.ValueRequired
isRequired, setRequired
-
Method Details
-
getObjectInput
ObjectInput<T> getObjectInput() -
getObjectClass
Description copied from interface:AbstractObjectInputClass of the object supported in this input field.- Specified by:
getObjectClassin interfaceAbstractObjectInput<T extends StoredObject>- Specified by:
getObjectClassin interfaceObjectGetter<T extends StoredObject>- Specified by:
getObjectClassin interfaceObjectProvider<T extends StoredObject>- Specified by:
getObjectClassin interfaceObjectSetter<T extends StoredObject>- Returns:
- Class of the supported object.
-
isAllowAny
default boolean isAllowAny()Description copied from interface:AbstractObjectInputWhether this field allows any derived object values or not.- Specified by:
isAllowAnyin interfaceAbstractObjectInput<T extends StoredObject>- Specified by:
isAllowAnyin interfaceObjectGetter<T extends StoredObject>- Specified by:
isAllowAnyin interfaceObjectSetter<T extends StoredObject>- Returns:
- True or false.
-
setFilter
Description copied from interface:FilterMethodsSet a filter provider to be used when loading takes place.- Specified by:
setFilterin interfaceFilterMethods<T extends StoredObject>- Parameters:
filterProvider- Filter provider.
-
setDetailComponent
default void setDetailComponent(com.vaadin.flow.component.Component detailComponent) Description copied from interface:AbstractObjectInputSet a component that will display details of the object value.- Specified by:
setDetailComponentin 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:AbstractObjectInputGet the component that is currently displaying details of the object value.- Specified by:
getDetailComponentin interfaceAbstractObjectInput<T extends StoredObject>- Returns:
- Component that is displaying the details.
-
setDisplayDetail
Description copied from interface:AbstractObjectInputSet a consumer that can display/consume the details of the object value.- Specified by:
setDisplayDetailin interfaceAbstractObjectInput<T extends StoredObject>- Parameters:
displayDetail- A consumer that can accept the object value.
-
getDisplayDetail
Description copied from interface:AbstractObjectInputGet the consumer that is currently consuming details of the object value.- Specified by:
getDisplayDetailin interfaceAbstractObjectInput<T extends StoredObject>- Returns:
- Consumer that is currently set.
-
setPrefixFieldControl
default void setPrefixFieldControl(boolean searchFieldControl) Description copied from interface:AbstractObjectInputDecide 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:
setPrefixFieldControlin interfaceAbstractObjectInput<T extends StoredObject>- Parameters:
searchFieldControl- True if it needs to be controlled by this field.
-