Module is.codion.swing.common.ui
Interface ListBuilder<T,V,B extends ListBuilder<T,V,B>>
- Type Parameters:
T
- the value typeV
- the component value typeB
- the builder type
- All Superinterfaces:
ComponentBuilder<V,
JList<T>, B>
- All Known Subinterfaces:
ListBuilder.Items<T>
,ListBuilder.SelectedItem<T>
,ListBuilder.SelectedItems<T>
public interface ListBuilder<T,V,B extends ListBuilder<T,V,B>>
extends ComponentBuilder<V,JList<T>,B>
Builds a JList instance.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A factory for list builders, depending on what the component value should represent.static interface
Builds a JList, where the value is represented by the list items.static interface
Builds a single-selection JList, where the value is represented by the selected item.static interface
Builds a multi-selection JList, where the value is represented by the selected items. -
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptioncellRenderer
(ListCellRenderer<T> cellRenderer) static <T> ListBuilder.Factory<T>
fixedCellHeight
(int fixedCellHeight) fixedCellWidth
(int fixedCellWidth) layoutOrientation
(int layoutOrientation) listSelectionListener
(ListSelectionListener listSelectionListener) selectionModel
(ListSelectionModel selectionModel) visibleRowCount
(int visibleRowCount) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, link, link, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, visible
-
Method Details
-
visibleRowCount
- Parameters:
visibleRowCount
- the visible row count- Returns:
- this builder instance
- See Also:
-
layoutOrientation
- Parameters:
layoutOrientation
- the list layout orientation- Returns:
- thi builder instance
- See Also:
-
fixedCellHeight
- Parameters:
fixedCellHeight
- the fixed cell height- Returns:
- this builder instance
- See Also:
-
fixedCellWidth
- Parameters:
fixedCellWidth
- the fixed cell width- Returns:
- this builder instance
- See Also:
-
cellRenderer
- Parameters:
cellRenderer
- the cell renderer- Returns:
- this builder instance
- See Also:
-
selectionModel
- Parameters:
selectionModel
- the list selection model- Returns:
- this builder instance
- See Also:
-
listSelectionListener
- Parameters:
listSelectionListener
- the list selection listener- Returns:
- this builder instance
- See Also:
-
factory
- Type Parameters:
T
- the list value type- Parameters:
listModel
- the list model to base the list on- Returns:
- a new list builder factory
-