Module org.controlsfx.controls
Class AutoCompletionTextFieldBinding<T>
java.lang.Object
org.controlsfx.control.textfield.AutoCompletionBinding<T>
impl.org.controlsfx.autocompletion.AutoCompletionTextFieldBinding<T>
- Type Parameters:
T-
- All Implemented Interfaces:
EventTarget
Represents a binding between a text field and a auto-completion popup
-
Property Summary
Properties inherited from class org.controlsfx.control.textfield.AutoCompletionBinding
maxWidth, minWidth, onAutoCompleted, prefWidth, visibleRowCount -
Nested Class Summary
Nested classes/interfaces inherited from class org.controlsfx.control.textfield.AutoCompletionBinding
AutoCompletionBinding.AutoCompletionEvent<TE>, AutoCompletionBinding.ISuggestionRequest -
Constructor Summary
ConstructorsConstructorDescriptionAutoCompletionTextFieldBinding(TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider) Creates a new auto-completion binding between the given textField and the given suggestion provider.AutoCompletionTextFieldBinding(TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider, StringConverter<T> converter) Creates a new auto-completion binding between the given textField and the given suggestion provider. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcompleteUserInput(T completion) Complete the current user-input with the provided completion.voiddispose()Disposes the binding.Gets the target node for auto completionMethods inherited from class org.controlsfx.control.textfield.AutoCompletionBinding
addEventHandler, buildEventDispatchChain, fireAutoCompletion, getAutoCompletionPopup, getMaxWidth, getMinWidth, getOnAutoCompleted, getPrefWidth, getVisibleRowCount, hidePopup, maxWidthProperty, minWidthProperty, onAutoCompletedProperty, prefWidthProperty, removeEventHandler, setDelay, setHideOnEscape, setMaxWidth, setMinWidth, setOnAutoCompleted, setPrefWidth, setUserInput, setVisibleRowCount, showPopup, visibleRowCountProperty
-
Constructor Details
-
AutoCompletionTextFieldBinding
public AutoCompletionTextFieldBinding(TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider) Creates a new auto-completion binding between the given textField and the given suggestion provider.- Parameters:
textField-suggestionProvider-
-
AutoCompletionTextFieldBinding
public AutoCompletionTextFieldBinding(TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider, StringConverter<T> converter) Creates a new auto-completion binding between the given textField and the given suggestion provider.- Parameters:
textField-suggestionProvider-
-
-
Method Details
-
getCompletionTarget
Gets the target node for auto completion- Overrides:
getCompletionTargetin classAutoCompletionBinding<T>- Returns:
- the target node for auto completion
-
dispose
public void dispose()Disposes the binding.- Specified by:
disposein classAutoCompletionBinding<T>
-
completeUserInput
Complete the current user-input with the provided completion. Sub-classes have to provide a concrete implementation.- Specified by:
completeUserInputin classAutoCompletionBinding<T>
-