Module is.codion.swing.common.ui
Interface ListComboBoxBuilder<T>
- Type Parameters:
T- the value type
- All Superinterfaces:
ComponentBuilder<JComboBox<T>,,ListComboBoxBuilder<T>> ComponentValueBuilder<JComboBox<T>,,Set<T>, ListComboBoxBuilder<T>> Supplier<JComboBox<T>>
public interface ListComboBoxBuilder<T>
extends ComponentValueBuilder<JComboBox<T>,Set<T>,ListComboBoxBuilder<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 Classes -
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentValueBuilder
COMPONENT_VALUE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()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
ancestorListener, background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, hierarchyListener, keyEvent, keyListener, label, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupControl, popupControls, popupControls, popupMenu, 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, changeConsumer, changeListener, consumer, link, link, listener, modified, modifiedIndicator, onBuildValue, valid, valid, validator, validIndicator, value, weakChangeConsumer, weakChangeListener, weakConsumer, weakListener, when, when, when, when
-
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).KeyEvent.VK_INSERTadds the current value whereasKeyEvent.VK_DELETEdeletes the selected item from the list.
- Returns:
- a new
ComponentValue
-