Module is.codion.swing.common.ui
Class Completion
java.lang.Object
is.codion.swing.common.ui.component.combobox.Completion
Selects an item in a JComboBox based on values typed on the keyboard.
Completion.builder()
.mode(Mode.AUTOCOMPLETE)
.normalize(false)
.enable(comboBox);
Based on code originally from: http://www.orbital-computer.de/JComboBox
Included with permission.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
A builder for combo box completion.static enum
The available completion modes. -
Field Summary
Modifier and TypeFieldDescriptionstatic final PropertyValue<Completion.Mode>
Specifies the default completion model used for comboboxes.static final PropertyValue<Boolean>
Specifies whether strings are normalized during completion by default. -
Method Summary
-
Field Details
-
COMPLETION_MODE
Specifies the default completion model used for comboboxes.Completion.Mode.MAXIMUM_MATCH
for maximum match,Completion.Mode.AUTOCOMPLETE
for auto-completion orCompletion.Mode.NONE
for no completion.- Value type:String
- Default value:
Completion.Mode.MAXIMUM_MATCH
-
NORMALIZE
Specifies whether strings are normalized during completion by default.- Value type:Boolean
- Default value: true
-
-
Method Details
-
builder
- Returns:
- a new
Completion.Builder
instance.
-