Module is.codion.swing.common.ui
Interface ListBoxBuilder<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
ComponentBuilder<JComboBox<T>,,ListBoxBuilder<T>> ComponentValueBuilder<JComboBox<T>,,Set<T>, ListBoxBuilder<T>> Supplier<JComboBox<T>>
public interface ListBoxBuilder<T>
extends ComponentValueBuilder<JComboBox<T>,Set<T>,ListBoxBuilder<T>>
Creates a
JComboBox based ComponentValue instance, represented by the items
in the combo box (as opposed to the selected item)-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides aListBoxBuilder.LinkedValueBuilderstatic interfaceProvides aListBoxBuilder -
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentValueBuilder
COMPONENT_VALUE -
Method Summary
Modifier and TypeMethodDescriptionstatic ListBoxBuilder.ItemValueStepbuilder()Creates aJComboBoxbasedComponentValueinstance, represented by the items in the combo box (as opposed to the selected item).Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, 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
-
formatter
- Parameters:
formatter- formats an item for display in the list- Returns:
- this builder instance
-
builder
Creates aJComboBoxbasedComponentValueinstance, represented by the items in the combo box (as opposed to the selected item). The provideditemValuesupplies new items to add to the combo box.KeyEvent.VK_INSERTadds the current value whereasKeyEvent.VK_DELETEdeletes the selected item from the list.
- Returns:
- a new
ComponentValue
-