Module is.codion.framework.model
Package is.codion.framework.model
Interface EntityEditModel.EditableEntity.Modified
- All Superinterfaces:
is.codion.common.observer.Observer<Boolean>,is.codion.common.state.StateObserver,is.codion.common.value.ValueObserver<Boolean>
- Enclosing interface:
- EntityEditModel.EditableEntity
public static interface EntityEditModel.EditableEntity.Modified
extends is.codion.common.state.StateObserver
Indicates whether the active entity is modified.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionis.codion.common.value.Value<Predicate<is.codion.framework.domain.entity.Entity>>Controls the 'modified' predicate for thisEntityEditModel.EditableEntity.Modifiedinstance, which is responsible for providing the modified state of the underlying entity.voidupdate()Updates the modified stateMethods inherited from interface is.codion.common.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, removeConsumer, removeListener, removeWeakConsumer, removeWeakListenerMethods inherited from interface is.codion.common.state.StateObserver
isNotNull, isNull, not, nullableMethods inherited from interface is.codion.common.value.ValueObserver
get, isEqualTo, isNotEqualTo, optional
-
Method Details
-
predicate
is.codion.common.value.Value<Predicate<is.codion.framework.domain.entity.Entity>> predicate()Controls the 'modified' predicate for thisEntityEditModel.EditableEntity.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:
-
Entity.modified()
-
update
void update()Updates the modified state
-