Interface EntityDialogs.EditAttributeDialogBuilder<T>

Type Parameters:
T - the attribute type
All Superinterfaces:
DialogBuilder<EntityDialogs.EditAttributeDialogBuilder<T>>
Enclosing class:
EntityDialogs

public static interface EntityDialogs.EditAttributeDialogBuilder<T> extends DialogBuilder<EntityDialogs.EditAttributeDialogBuilder<T>>
Builds a dialog for editing single attributes for one or more entities
  • Method Details

    • editComponentFactory

      EntityDialogs.EditAttributeDialogBuilder<T> editComponentFactory(EditComponentFactory<T,?> editComponentFactory)
      Parameters:
      editComponentFactory - the component factory
      Returns:
      this builder
    • onValidationException

      EntityDialogs.EditAttributeDialogBuilder<T> onValidationException(Consumer<ValidationException> onValidationException)
      Parameters:
      onValidationException - called on validation exception
      Returns:
      this builder
    • onException

      Parameters:
      onException - called on exception
      Returns:
      this builder
    • defaultValue

      Provides the default value presented in the edit component.

      By default, the default value is the current value of the attribute being edited, in the entities being edited, unless they contain multiple different values, then null is presented.

      Parameters:
      defaultValue - provides the default value to present in the editor component
      Returns:
      this builder
    • edit

      void edit(Entity entity)
      Displays a dialog for editing a single attribute for the given entity
      Parameters:
      entity - the entity to edit
    • edit

      void edit(Collection<Entity> entities)
      Displays a dialog for editing a single attribute for the given entities
      Parameters:
      entities - the entities to edit