Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityDialogs.EditDialogBuilder<T>
- Type Parameters:
T- the attribute type
- All Superinterfaces:
is.codion.swing.common.ui.dialog.DialogBuilder<EntityDialogs.EditDialogBuilder<T>>
- Enclosing class:
- EntityDialogs
public static interface EntityDialogs.EditDialogBuilder<T>
extends is.codion.swing.common.ui.dialog.DialogBuilder<EntityDialogs.EditDialogBuilder<T>>
Builds a dialog for editing single attributes for one or more entities
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceEntityDialogs.EditDialogBuilder.Updater<E extends is.codion.swing.framework.model.SwingEntityEditModel>Handles performing the actual update when entities are edited. -
Method Summary
Modifier and TypeMethodDescriptioncomponentFactory(EntityComponentFactory<T, is.codion.framework.domain.entity.attribute.Attribute<T>, ?> componentFactory) voidedit(is.codion.framework.domain.entity.Entity entity) Displays a dialog for editing the given entityvoidedit(Collection<? extends is.codion.framework.domain.entity.Entity> entities) Displays a dialog for editing the given entitiesonException(Consumer<Exception> onException) onValidationException(Consumer<is.codion.framework.domain.entity.exception.ValidationException> onValidationException) <E extends is.codion.swing.framework.model.SwingEntityEditModel>
EntityDialogs.EditDialogBuilder<T>updater(EntityDialogs.EditDialogBuilder.Updater<E> updater) Methods inherited from interface is.codion.swing.common.ui.dialog.DialogBuilder
icon, keyEvent, location, locationRelativeTo, owner, owner, title, titleProvider
-
Method Details
-
componentFactory
EntityDialogs.EditDialogBuilder<T> componentFactory(EntityComponentFactory<T, is.codion.framework.domain.entity.attribute.Attribute<T>, ?> componentFactory) - Parameters:
componentFactory- the component factory, if null then the default is used- Returns:
- this builder
-
onValidationException
EntityDialogs.EditDialogBuilder<T> onValidationException(Consumer<is.codion.framework.domain.entity.exception.ValidationException> onValidationException) - Parameters:
onValidationException- called on validation exception- Returns:
- this builder
-
onException
- Parameters:
onException- called on exception- Returns:
- this builder
-
updater
<E extends is.codion.swing.framework.model.SwingEntityEditModel> EntityDialogs.EditDialogBuilder<T> updater(EntityDialogs.EditDialogBuilder.Updater<E> updater) - Type Parameters:
E- the edit model type- Parameters:
updater- the updater to use- Returns:
- this builder
-
edit
void edit(is.codion.framework.domain.entity.Entity entity) Displays a dialog for editing the given entity- Parameters:
entity- the entity to edit
-
edit
Displays a dialog for editing the given entities- Parameters:
entities- the entities to edit
-