Module is.codion.swing.framework.ui
Interface EntityComboBox.Builder
- All Superinterfaces:
ComboBoxBuilder<Entity,
,EntityComboBox, EntityComboBox.Builder> ComponentBuilder<Entity,
EntityComboBox, EntityComboBox.Builder>
- Enclosing class:
- EntityComboBox
public static interface EntityComboBox.Builder
extends ComboBoxBuilder<Entity,EntityComboBox,EntityComboBox.Builder>
Builds a
EntityComboBox
instance.- See Also:
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE, TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionconfirmAdd
(boolean confirmAdd) confirmEdit
(boolean confirmEdit) editPanel
(Supplier<EntityEditPanel> editPanel) A edit panel is required for the add and edit controls.keyStroke
(ControlKey<?> controlKey, KeyStroke keyStroke) Methods inherited from interface is.codion.swing.common.ui.component.combobox.ComboBoxBuilder
completionMode, editable, editor, itemListener, maximumRowCount, mouseWheelScrolling, mouseWheelScrollingWithWrapAround, moveCaretToFrontOnSelection, normalize, popupWidth, renderer
Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, buildValue, clientProperty, componentListener, componentOrientation, consumer, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, keyEvent, keyListener, label, link, link, listener, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, value, visible
-
Method Details
-
editPanel
A edit panel is required for the add and edit controls.- Parameters:
editPanel
- the edit panel supplier- Returns:
- this builder instance
-
keyStroke
- Parameters:
controlKey
- the control keykeyStroke
- the keyStroke to assign to the given control- Returns:
- this builder instance
-
confirmAdd
- Parameters:
confirmAdd
- true if adding an item should be confirmed- Returns:
- this builder instance
- See Also:
-
confirmEdit
- Parameters:
confirmEdit
- true if editing an item should be confirmed- Returns:
- this builder instance
- See Also:
-