Module is.codion.swing.common.ui
Interface ListBuilder<T>
- Type Parameters:
T
- the value type
- All Superinterfaces:
ComponentBuilder<Set<T>,
JList<T>, ListBuilder<T>>
Builds a multi-selection JList.
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ListBuilder<T>
static <T> ListBuilder<T>
cellRenderer
(ListCellRenderer<T> cellRenderer) fixedCellHeight
(int fixedCellHeight) fixedCellWidth
(int fixedCellWidth) layoutOrientation
(int layoutOrientation) listSelectionListener
(ListSelectionListener listSelectionListener) selectionMode
(int selectionMode) 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, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, linkedValue, linkedValue, 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:
-
selectionMode
- Parameters:
selectionMode
- the list selection model- 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:
-
builder
- Type Parameters:
T
- the list element type- Parameters:
listModel
- the list model- Returns:
- a new builder instance
-
builder
- Type Parameters:
T
- the list element type- Parameters:
listModel
- the list modellinkedValueSet
- value set to link to the component- Returns:
- a new builder instance
-