Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityDialogs.EntitySelectionDialogBuilder
- All Superinterfaces:
DialogBuilder<EntityDialogs.EntitySelectionDialogBuilder>
- Enclosing class:
- EntityDialogs
public static interface EntityDialogs.EntitySelectionDialogBuilder
extends DialogBuilder<EntityDialogs.EntitySelectionDialogBuilder>
A builder for a selection dialog.
-
Method Summary
Modifier and TypeMethodDescriptionconfigureTablePanel
(Consumer<EntityTablePanel.Config> configureTablePanel) dialogSize
(Dimension dialogSize) select()
Displays table for selecting a one or more entitiesDisplays table for selecting a single entityMethods inherited from interface is.codion.swing.common.ui.dialog.DialogBuilder
icon, keyEvent, location, locationRelativeTo, owner, owner, title, title
-
Method Details
-
dialogSize
- Parameters:
dialogSize
- the preferred dialog size- Returns:
- this builder instance
-
configureTablePanel
EntityDialogs.EntitySelectionDialogBuilder configureTablePanel(Consumer<EntityTablePanel.Config> configureTablePanel) - Parameters:
configureTablePanel
- configures the table panel- Returns:
- this builder instance
-
select
Displays table for selecting a one or more entities- Returns:
- a List containing the selected entities or an empty list in case the selection was cancelled
-
selectSingle
Displays table for selecting a single entity- Returns:
- the selected entity or
Optional.empty()
in case the selection was cancelled
-