Module is.codion.swing.framework.ui
Interface EntityComboBoxPanel.Builder
- All Superinterfaces:
ComponentBuilder<Entity,
EntityComboBoxPanel, EntityComboBoxPanel.Builder>
- Enclosing class:
- EntityComboBoxPanel
public static interface EntityComboBoxPanel.Builder
extends ComponentBuilder<Entity,EntityComboBoxPanel,EntityComboBoxPanel.Builder>
A builder for a
EntityComboBoxPanel
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE, TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds a new component instance.buttonLocation
(String buttonLocation) Must be one ofBorderLayout.WEST
orBorderLayout.EAST
.buttonsFocusable
(boolean buttonsFocusable) Default falsecomboBoxPreferredWidth
(int comboBoxPreferredWidth) confirmAdd
(boolean confirmAdd) confirmEdit
(boolean confirmEdit) includeAddButton
(boolean includeAddButton) includeEditButton
(boolean includeEditButton) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, 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, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, value, visible
-
Method Details
-
includeAddButton
- Parameters:
includeAddButton
- true if a 'Add' button should be included- Returns:
- this builder instance
-
includeEditButton
- Parameters:
includeEditButton
- true if a 'Edit' button should be included- Returns:
- this builder instance
-
confirmAdd
- Parameters:
confirmAdd
- true if adding an item should be confirmed- Returns:
- this builder instance
-
confirmEdit
- Parameters:
confirmEdit
- true if editing an item should be confirmed- Returns:
- this builder instance
-
buttonsFocusable
Default false- Parameters:
buttonsFocusable
- true if the buttons should be focusable- Returns:
- this builder instance
-
buttonLocation
Must be one ofBorderLayout.WEST
orBorderLayout.EAST
.- Parameters:
buttonLocation
- the button location- Returns:
- this builder instance
- Throws:
IllegalArgumentException
- in case the value is not one ofBorderLayout.WEST
orBorderLayout.EAST
-
comboBoxPreferredWidth
- Parameters:
comboBoxPreferredWidth
- the preferred combo box width- Returns:
- this builder instance
-
build
EntityComboBoxPanel build()Description copied from interface:ComponentBuilder
Builds a new component instance.- Specified by:
build
in interfaceComponentBuilder<Entity,
EntityComboBoxPanel, EntityComboBoxPanel.Builder> - Returns:
- a new
EntityComboBoxPanel
based on this builder
-