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 Details

    • preferredSize

      EntityDialogs.SelectionDialogBuilder preferredSize(Dimension preferredSize)
      Parameters:
      preferredSize - the preferred dialog size
      Returns:
      this builder instance
    • select

      List<Entity> select()
      Returns:
      a List containing the selected entities
      Throws:
      CancelException - in case the user cancels the operation
    • selectSingle

      Optional<Entity> selectSingle()
      Displays an entity table in a dialog for selecting a single entity
      Returns:
      the selected entity or Optional.empty() if none was selected