Interface EntityEditor.EditorValue.Propagator<T>

Type Parameters:
T - the source attribute value type
Enclosing interface:
EntityEditor.EditorValue<T>

public static interface EntityEditor.EditorValue.Propagator<T>

Propagates derived attribute values when a source attribute value changes.

A EntityEditor.EditorValue.Propagator provides a unified mechanism for updating associated attribute values, replacing the need to separately handle value propagation in the editor (via EntityEditor.EditorValue.edited() listeners) and in entities (via overriding).

The EntityEditor.EditorValue.Propagator.Setter provided to propagate(Object, Setter) routes to the appropriate target depending on context:

See Also:
  • Method Details

    • propagate

      void propagate(@Nullable T value, EntityEditor.EditorValue.Propagator.Setter setter)
      Propagates derived values based on the given source attribute value.
      Parameters:
      value - the new source attribute value, may be null
      setter - the setter to use when setting derived attribute values