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
public class AutoCompletionTextFieldBinding<T> extends AutoCompletionBinding<T>
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
Constructors Constructor Description AutoCompletionTextFieldBinding(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
completeUserInput(T completion)
Complete the current user-input with the provided completion.void
dispose()
Disposes the binding.TextField
getCompletionTarget()
Gets the target node for auto completion-
Methods 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 Detail
-
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 Detail
-
getCompletionTarget
public TextField getCompletionTarget()
Gets the target node for auto completion- Overrides:
getCompletionTarget
in classAutoCompletionBinding<T>
- Returns:
- the target node for auto completion
-
dispose
public void dispose()
Disposes the binding.- Specified by:
dispose
in classAutoCompletionBinding<T>
-
completeUserInput
protected void completeUserInput(T completion)
Complete the current user-input with the provided completion. Sub-classes have to provide a concrete implementation.- Specified by:
completeUserInput
in classAutoCompletionBinding<T>
-
-