Package io.jmix.flowui.data
Interface EntityValueSource<E,V>
- Type Parameters:
E- the type of the entity tied to this value sourceV- the type of the value provided by this value source
- All Superinterfaces:
DataUnit,EntityDataUnit,HasType<V>,ValueSource<V>
- All Known Implementing Classes:
BufferedContainerValueSource,ContainerValueSource
A specialized
ValueSource that represents a data source tied to an entity instance
and its properties within a data-aware context.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAn event fired when related entity instance is changed.Nested classes/interfaces inherited from interface io.jmix.flowui.data.DataUnit
DataUnit.StateChangeEventNested classes/interfaces inherited from interface io.jmix.flowui.data.ValueSource
ValueSource.ValueChangeEvent<V> -
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.shared.RegistrationRegisters a listener that will be notified when the related entity instance is changed.getItem()Returns the current item associated with the source.booleanMethods inherited from interface io.jmix.flowui.data.DataUnit
addStateChangeListener, getStateMethods inherited from interface io.jmix.flowui.data.EntityDataUnit
getEntityMetaClassMethods inherited from interface io.jmix.flowui.data.ValueSource
addValueChangeListener, getValue, isReadOnly, setValue
-
Method Details
-
getItem
Returns the current item associated with the source.- Returns:
- the current item if available, or null if not set
-
getMetaPropertyPath
MetaPropertyPath getMetaPropertyPath()- Returns:
- property path
-
isDataModelSecurityEnabled
boolean isDataModelSecurityEnabled()- Returns:
- true if data model security check is required on data binding
-
addInstanceChangeListener
com.vaadin.flow.shared.Registration addInstanceChangeListener(Consumer<EntityValueSource.InstanceChangeEvent<E>> listener) Registers a listener that will be notified when the related entity instance is changed.- Parameters:
listener- the listener to add- Returns:
- a
Registrationinstance that allows the removal of the listener
-