java.lang.Object
is.codion.swing.framework.ui.EntityDialogs
Provides edit and selection dialogs for entities.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A builder for a dialog for inserting entities.static interface
Builds a dialog for editing single attributes for one or more entitiesstatic interface
A builder for a dialog for editing entities.static interface
A builder for a selection dialog. -
Method Summary
Modifier and TypeMethodDescriptionaddEntityDialog
(Supplier<EntityEditPanel> editPanel) Creates a newEntityDialogs.AddEntityDialogBuilder
instance.static <T> EntityDialogs.EditAttributeDialogBuilder<T>
editAttributeDialog
(SwingEntityEditModel editModel, Attribute<T> attribute) editEntityDialog
(Supplier<EntityEditPanel> editPanel) Creates a newEntityDialogs.EditEntityDialogBuilder
instance.selectionDialog
(SwingEntityTableModel tableModel) Creates a newEntityDialogs.EntitySelectionDialogBuilder
instance for searching for and selecting one or more entities from a table model.
-
Method Details
-
editAttributeDialog
public static <T> EntityDialogs.EditAttributeDialogBuilder<T> editAttributeDialog(SwingEntityEditModel editModel, Attribute<T> attribute) - Type Parameters:
T
- the attribute type- Parameters:
editModel
- the edit model to useattribute
- the attribute to edit- Returns:
- a new builder
-
addEntityDialog
public static EntityDialogs.AddEntityDialogBuilder addEntityDialog(Supplier<EntityEditPanel> editPanel) Creates a newEntityDialogs.AddEntityDialogBuilder
instance.- Parameters:
editPanel
- supplies the edit panel to use- Returns:
- a new builder instance
-
editEntityDialog
public static EntityDialogs.EditEntityDialogBuilder editEntityDialog(Supplier<EntityEditPanel> editPanel) Creates a newEntityDialogs.EditEntityDialogBuilder
instance.- Parameters:
editPanel
- supplies the edit panel to use- Returns:
- a new builder instance
-
selectionDialog
public static EntityDialogs.EntitySelectionDialogBuilder selectionDialog(SwingEntityTableModel tableModel) Creates a newEntityDialogs.EntitySelectionDialogBuilder
instance for searching for and selecting one or more entities from a table model.- Parameters:
tableModel
- the table model on which to base the table panel- Returns:
- a new builder instance
-