Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityEditModel.EntityEditor.Modified
- All Superinterfaces:
ObservableState,Observer<Boolean>
- Enclosing interface:
EntityEditModel.EntityEditor
Indicates whether the active entity is modified, that is, exists and has one or more modified attribute values.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionIndicates which editor attributes are modified.Controls the 'modified' predicate for thisEntityEditModel.EntityEditor.Modifiedinstance, which is responsible for providing the modified state of the underlying entity.voidupdate()Updates the modified stateMethods inherited from interface is.codion.common.reactive.state.ObservableState
addConsumer, addListener, addWeakConsumer, addWeakListener, is, not, observer, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
attributes
ObservableValueSet<Attribute<?>> attributes()Indicates which editor attributes are modified. Note that only attributes of an existing entity are regarded as modified.- Returns:
- an
ObservableValueSetindicating the currently modified attributes - See Also:
-
predicate
Controls the 'modified' predicate for thisEntityEditModel.EntityEditor.Modifiedinstance, which is responsible for providing the modified state of the underlying entity.- Returns:
- the
Valuecontrolling the predicate used to check if the entity is modified - See Also:
-
update
void update()Updates the modified state
-