java.lang.Object
is.codion.swing.framework.ui.EntityDialogs
Provides edit and selection dialogs for entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Builds a dialog for editing single attributes for one or more entitiesstatic interface
A builder forEntityDialogs.EntitySelectionDialog
. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> EntityDialogs.EditDialogBuilder<T>
editDialog
(SwingEntityEditModel editModel, Attribute<T> attribute) selectionDialog
(SwingEntityTableModel tableModel) Creates a newEntityDialogs.SelectionDialogBuilder
instance for searching for and selecting one or more entities from a table model.
-
Constructor Details
-
EntityDialogs
public EntityDialogs()
-
-
Method Details
-
editDialog
public static <T> EntityDialogs.EditDialogBuilder<T> editDialog(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
-
selectionDialog
public static EntityDialogs.SelectionDialogBuilder selectionDialog(SwingEntityTableModel tableModel) Creates a newEntityDialogs.SelectionDialogBuilder
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
-