- All Superinterfaces:
ObservableState,Observer<Boolean>
- Enclosing interface:
EntityEditor<R extends EntityEditor<R>>
Indicates whether the active entity is modified, that is, exists and has one or more modified attribute values.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.common.reactive.observer.Observer
Observer.Builder<T,B extends Observer.Builder<T, B>> -
Method Summary
Modifier and TypeMethodDescriptionControls the 'additional' modified states for thisEntityEditor.Modifiedinstance, which are combined with the entity modified state using OR.Indicates which editor attributes are modified.Methods inherited from interface is.codion.common.reactive.state.ObservableState
is, notMethods inherited from interface is.codion.common.reactive.observer.Observer
addConsumer, addListener, addWeakConsumer, addWeakListener, observer, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener, when, when
-
Method Details
-
attributes
ObservableValueSet<Attribute<?>> attributes()Indicates which editor attributes are modified.Only attributes with an associated
EntityEditor.EditorValueare reported, that is, attributes which have been accessed viaEntityEditor.value(Attribute), typically by binding them to a component. The columns underlying a modified foreign key are therefore absent, as is any attribute the editor never touched.Note that modified attributes are included, regardless of whether the entity exists, and that this set may be empty while
ObservableState.is()is true, since the modified state also reflectsadditional()states.- Returns:
- an
ObservableValueSetindicating the currently modified attributes - See Also:
-
additional
ValueSet<ObservableState> additional()Controls the 'additional' modified states for thisEntityEditor.Modifiedinstance, which are combined with the entity modified state using OR.- Returns:
- the
ValueSetcontrolling the additional modified states
-