Interface ComboBoxSelectionDialogBuilder<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
DialogBuilder<ComboBoxSelectionDialogBuilder<T>>, SelectionDialogBuilder<T, ComboBoxSelectionDialogBuilder<T>>
public interface ComboBoxSelectionDialogBuilder<T>
extends SelectionDialogBuilder<T, ComboBoxSelectionDialogBuilder<T>>
A builder for a
JComboBox based selection dialog.-
Method Summary
Methods inherited from interface DialogBuilder
icon, keyEvent, location, locationRelativeTo, onBuild, owner, owner, title, title, undecorated, windowFocusListenerMethods inherited from interface SelectionDialogBuilder
allowEmptySelection, renderer
-
Method Details
-
selectedItem
- Parameters:
item- the item selected initially, null for none- Returns:
- this builder instance
- Throws:
IllegalArgumentException- in case the selection values do not contain the item
-
select
- Returns:
- the selected value,
Optional.empty()if none was selected - Throws:
CancelException- in case the user cancelled
-