Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityDialogs.SelectionDialogBuilder
- All Superinterfaces:
DialogBuilder<EntityDialogs.SelectionDialogBuilder>
- Enclosing class:
- EntityDialogs
public static interface EntityDialogs.SelectionDialogBuilder
extends DialogBuilder<EntityDialogs.SelectionDialogBuilder>
A builder for a selection dialog.
-
Method Summary
Modifier and TypeMethodDescriptionpreferredSize
(Dimension preferredSize) select()
Displays an entity table in a dialog 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
-
preferredSize
- Parameters:
preferredSize
- the preferred dialog size- Returns:
- this builder instance
-
select
- Returns:
- a List containing the selected entities
- Throws:
CancelException
- in case the user cancels the operation
-
selectSingle
Displays an entity table in a dialog for selecting a single entity- Returns:
- the selected entity or
Optional.empty()
if none was selected
-