Module is.codion.swing.common.ui
Interface ListBuilder.Factory<T>
- Enclosing interface:
- ListBuilder<T,
V, B extends ListBuilder<T, V, B>>
public static interface ListBuilder.Factory<T>
A factory for list builders, depending on what the component value should represent.
-
Method Summary
Modifier and TypeMethodDescriptionitems()
A JList builder, where the value is represented by the list items.A JList builder, where the value is represented by the list items.A single-selection JList builder, where the value is represented by the selected item.selectedItem
(Value<T> linkedValue) A single-selection JList builder, where the value is represented by the selected item.A multi selection JList builder, where the value is represented by the selected items.selectedItems
(Value<List<T>> linkedValue) A multi selection JList builder, where the value is represented by the selected items.
-
Method Details
-
items
ListBuilder.Items<T> items()A JList builder, where the value is represented by the list items.- Returns:
- a JList builder
-
items
A JList builder, where the value is represented by the list items.- Parameters:
linkedValue
- the value to link to the list items- Returns:
- a JList builder
-
selectedItems
ListBuilder.SelectedItems<T> selectedItems()A multi selection JList builder, where the value is represented by the selected items.- Returns:
- a JList builder
-
selectedItems
A multi selection JList builder, where the value is represented by the selected items.- Parameters:
linkedValue
- the value to link to the selected items- Returns:
- a JList builder
-
selectedItem
ListBuilder.SelectedItem<T> selectedItem()A single-selection JList builder, where the value is represented by the selected item.- Returns:
- a JList builder
-
selectedItem
A single-selection JList builder, where the value is represented by the selected item.- Parameters:
linkedValue
- the value to link to the selected item- Returns:
- a JList builder
-