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 based on an
EntityTablePanel
.-
Method Summary
Modifier and TypeMethodDescriptionincludeSearchButton
(boolean includeSearchButton) Defaults to false if no condition panel is available in the associatedEntityTablePanel
select()
Displays theEntityTablePanel
for selecting one or more entitiesDisplays theEntityTablePanel
for selecting a single entityMethods inherited from interface is.codion.swing.common.ui.dialog.DialogBuilder
icon, keyEvent, location, locationRelativeTo, onBuild, owner, owner, title, title
-
Method Details
-
includeSearchButton
Defaults to false if no condition panel is available in the associatedEntityTablePanel
- Parameters:
includeSearchButton
- true if a search button should be included- Returns:
- this builder instance
-
select
Displays theEntityTablePanel
for selecting one or more entities- Returns:
- a List containing the selected entities or an empty list in case the selection was cancelled
-
selectSingle
Displays theEntityTablePanel
for selecting a single entity- Returns:
- the selected entity or
Optional.empty()
in case the selection was cancelled
-