Module is.codion.swing.common.ui
Interface ListBuilder<V,T,B extends ListBuilder<V,T,B>>
- Type Parameters:
V- the component value typeT- the value typeB- the builder type
- All Superinterfaces:
ComponentBuilder<FilterList<T>,,B> ComponentValueBuilder<FilterList<T>,,V, B> Supplier<FilterList<T>>
- All Known Subinterfaces:
ListBuilder.Items<T>,ListBuilder.SelectedItem<T>,ListBuilder.SelectedItems<T>
public interface ListBuilder<V,T,B extends ListBuilder<V,T,B>>
extends ComponentValueBuilder<FilterList<T>,V,B>
Builds a JList instance.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA factory for list builders, depending on what the component value should represent.static interfaceBuilds a JList, where the value is represented by the list items.static interfaceProvides aListBuilder.Factorystatic interfaceBuilds a single-selection JList, where the value is represented by the selected item.static interfaceBuilds 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.ComponentValueBuilder
COMPONENT_VALUE -
Method Summary
Modifier and TypeMethodDescriptionstatic ListBuilder.ModelStepbuilder()cellRenderer(@Nullable ListCellRenderer<T> cellRenderer) fixedCellHeight(int fixedCellHeight) fixedCellWidth(int fixedCellWidth) layoutOrientation(int layoutOrientation) listSelectionListener(ListSelectionListener listSelectionListener) visibleRowCount(int visibleRowCount) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
ancestorListener, background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, hierarchyListener, keyEvent, keyListener, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visibleMethods inherited from interface is.codion.swing.common.ui.component.builder.ComponentValueBuilder
buildValue, buildValue, consumer, link, link, listener, modifiedIndicator, modifiedIndicatorFactory, onBuildValue, validator, validIndicator, validIndicator, validIndicatorFactory, value
-
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:
-
listSelectionListener
- Parameters:
listSelectionListener- the list selection listener- Returns:
- this builder instance
- See Also:
-
builder
- Returns:
- a list builder
-