Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Handles performing the actual update when entities are edited. -
Method Summary
Modifier and TypeMethodDescriptioncomponentFactory
(EntityComponentFactory<T, Attribute<T>, ?> componentFactory) void
Displays a dialog for editing the given entityvoid
edit
(Collection<Entity> entities) Displays a dialog for editing the given entitiesonException
(Consumer<Exception> onException) onValidationException
(Consumer<ValidationException> onValidationException) Methods inherited from interface is.codion.swing.common.ui.dialog.DialogBuilder
icon, keyEvent, location, locationRelativeTo, owner, owner, title, titleProvider
-
Method Details
-
componentFactory
EntityDialogs.EditAttributeDialogBuilder<T> componentFactory(EntityComponentFactory<T, Attribute<T>, ?> componentFactory) - Parameters:
componentFactory
- the component factory, if null then the default is used- 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
-
updater
<E extends SwingEntityEditModel> EntityDialogs.EditAttributeDialogBuilder<T> updater(EntityDialogs.EditAttributeDialogBuilder.Updater<E> updater) - Type Parameters:
E
- the edit model type- Parameters:
updater
- the updater to use- Returns:
- this builder
-
edit
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
-