java.lang.Object
is.codion.swing.framework.ui.EntityDialogs
Provides edit and selection dialogs for entities.
-
Nested Class Summary
Nested ClassesModifier 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 based on anEntityTablePanel
. -
Method Summary
Modifier and TypeMethodDescriptionaddEntityDialog
(EntityEditPanel editPanel) Creates a newEntityDialogs.AddEntityDialogBuilder
instance.static <T> EntityDialogs.EditAttributeDialogBuilder
<T> editAttributeDialog
(SwingEntityEditModel editModel, Attribute<T> attribute) editEntityDialog
(EntityEditPanel editPanel) Creates a newEntityDialogs.EditEntityDialogBuilder
instance.selectionDialog
(EntityTablePanel tablePanel) Creates a newEntityDialogs.EntitySelectionDialogBuilder
instance for searching for and selecting one or more entities via aEntityTablePanel
.
-
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 use for creating component data models and applying the accepted valueattribute
- the attribute to edit- Returns:
- a new builder
- See Also:
-
addEntityDialog
Creates a newEntityDialogs.AddEntityDialogBuilder
instance.- Parameters:
editPanel
- the edit panel to use- Returns:
- a new builder instance
-
editEntityDialog
Creates a newEntityDialogs.EditEntityDialogBuilder
instance.- Parameters:
editPanel
- the edit panel to use- Returns:
- a new builder instance
-
selectionDialog
public static EntityDialogs.EntitySelectionDialogBuilder selectionDialog(EntityTablePanel tablePanel) Creates a new
EntityDialogs.EntitySelectionDialogBuilder
instance for searching for and selecting one or more entities via aEntityTablePanel
.Note that calling this method configures actions and selection mode of the associated table panel.
- Parameters:
tablePanel
- the table panel to use- Returns:
- a new builder instance
-