Interface EditorLink.DetailEntity

Enclosing interface:
EditorLink

public static interface EditorLink.DetailEntity

Builder input describing how to load the detail entity for a given master — the lowest-level escape hatch when neither a EditorLink.DetailCondition nor a EditorLink.DetailSelect suffices (e.g. when the detail row is computed rather than selected, or requires multiple round trips).

Invoked on a background thread whenever the framework needs to load the detail row — when the master's active entity changes and on EntityEditor.EditorTasks.refresh().

Implementations must produce at most one entity; returning null signals "no detail row".

See Also:
  • Method Details

    • detail

      @Nullable Entity detail(Entity master, EntityConnection connection)
      Parameters:
      master - the master entity
      connection - the connection to use
      Returns:
      the detail entity, or null if none is available