java.lang.Object
is.codion.swing.framework.ui.EntityDialogs
Provides edit and selection dialogs for entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA builder for a dialog for inserting entities.static interfaceBuilds a dialog for editing single attributes for one or more entitiesstatic interfaceA builder for a dialog for editing entities.static interfaceA builder for a selection dialog based on anEntityTablePanel. -
Method Summary
Modifier and TypeMethodDescriptionaddEntityDialog(EntityEditPanel editPanel) Creates a newEntityDialogs.AddEntityDialogBuilderinstance.static <T> EntityDialogs.EditAttributeDialogBuilder<T> editAttributeDialog(SwingEntityEditModel editModel, Attribute<T> attribute) editEntityDialog(EntityEditPanel editPanel) Creates a newEntityDialogs.EditEntityDialogBuilderinstance.selectionDialog(EntityTablePanel tablePanel) Creates a newEntityDialogs.EntitySelectionDialogBuilderinstance 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.AddEntityDialogBuilderinstance.- Parameters:
editPanel- the edit panel to use- Returns:
- a new builder instance
-
editEntityDialog
Creates a newEntityDialogs.EditEntityDialogBuilderinstance.- Parameters:
editPanel- the edit panel to use- Returns:
- a new builder instance
-
selectionDialog
public static EntityDialogs.EntitySelectionDialogBuilder selectionDialog(EntityTablePanel tablePanel) Creates a new
EntityDialogs.EntitySelectionDialogBuilderinstance 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
-