Package io.jmix.ui.component.data
Interface ValueSource<V>
- All Superinterfaces:
DataUnit
- All Known Subinterfaces:
EntityValueSource<E,
V>
- All Known Implementing Classes:
ContainerValueSource
Data component holding a typed value.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
An event that is fired when value of source is changed.Nested classes/interfaces inherited from interface io.jmix.ui.component.data.DataUnit
DataUnit.StateChangeEvent
-
Method Summary
Modifier and TypeMethodDescriptionaddValueChangeListener
(Consumer<ValueSource.ValueChangeEvent<V>> listener) Registers a new value change listener.getType()
getValue()
boolean
void
Methods inherited from interface io.jmix.ui.component.data.DataUnit
addStateChangeListener, getState
-
Method Details
-
getValue
-
setValue
-
isReadOnly
boolean isReadOnly() -
getType
- Returns:
- type of value
-
addValueChangeListener
Registers a new value change listener.- Parameters:
listener
- the listener to be added- Returns:
- a registration object for removing an event listener added to a source
-