Top Description Fields Constructors Methods
impl.org.controlsfx.autocompletion

public Class AutoCompletionTextFieldBinding<T>

extends AutoCompletionBinding<T>
Class Inheritance
Imports
java.util.Collection, javafx.beans.value.ChangeListener, .ObservableValue, javafx.scene.control.TextField, javafx.util.Callback, .StringConverter, org.controlsfx.control.textfield.AutoCompletionBinding

Represents a binding between a text field and a auto-completion popup

Field Summary

Modifier and TypeField and Description
private StringConverter<T>
converter

String converter to be used to convert suggestions to strings.

private final ChangeListener<Boolean>
private final ChangeListener<String>
textChangeListener

* Event Listeners * *

Constructor Summary

AccessConstructor and Description
public
AutoCompletionTextFieldBinding(final TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider)

Creates a new auto-completion binding between the given textField and the given suggestion provider.

public
AutoCompletionTextFieldBinding(final TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider, final StringConverter<T> converter)

Creates a new auto-completion binding between the given textField and the given suggestion provider.

Method Summary

Modifier and TypeMethod and Description
protected void
completeUserInput(T completion)

Implements abstract org.controlsfx.control.textfield.AutoCompletionBinding.completeUserInput.

Complete the current user-input with the provided completion.

private static <T> StringConverter<T>
defaultStringConverter()

* Static properties and methods * *

public void
dispose()

Implements abstract org.controlsfx.control.textfield.AutoCompletionBinding.dispose.

Disposes the binding.

public TextField
Inherited from org.controlsfx.control.textfield.AutoCompletionBinding:
addEventHandlerbuildEventDispatchChainfireAutoCompletiongetAutoCompletionPopupgetMaxWidthgetMinWidthgetOnAutoCompletedgetPrefWidthgetVisibleRowCounthidePopupmaxWidthPropertyminWidthPropertyonAutoCompletedPropertyprefWidthPropertyremoveEventHandlersetDelaysetHideOnEscapesetMaxWidthsetMinWidthsetOnAutoCompletedsetPrefWidthsetUserInputsetVisibleRowCountshowPopupvisibleRowCountProperty

Field Detail

converterback to summary
private StringConverter<T> converter

String converter to be used to convert suggestions to strings.

focusChangedListenerback to summary
private final ChangeListener<Boolean> focusChangedListener
textChangeListenerback to summary
private final ChangeListener<String> textChangeListener

* Event Listeners * *

Constructor Detail

AutoCompletionTextFieldBindingback to summary
public AutoCompletionTextFieldBinding(final TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider)

Creates a new auto-completion binding between the given textField and the given suggestion provider.

AutoCompletionTextFieldBindingback to summary
public AutoCompletionTextFieldBinding(final TextField textField, Callback<AutoCompletionBinding.ISuggestionRequest, Collection<T>> suggestionProvider, final StringConverter<T> converter)

Creates a new auto-completion binding between the given textField and the given suggestion provider.

Method Detail

completeUserInputback to summary
protected void completeUserInput(T completion)

Implements abstract org.controlsfx.control.textfield.AutoCompletionBinding.completeUserInput.

Doc from org.controlsfx.control.textfield.AutoCompletionBinding.completeUserInput.

Complete the current user-input with the provided completion. Sub-classes have to provide a concrete implementation.

Annotations
@Override
defaultStringConverterback to summary
private static <T> StringConverter<T> defaultStringConverter()

* Static properties and methods * *

disposeback to summary
public void dispose()

Implements abstract org.controlsfx.control.textfield.AutoCompletionBinding.dispose.

Doc from org.controlsfx.control.textfield.AutoCompletionBinding.dispose.

Disposes the binding.

Annotations
@Override
getCompletionTargetback to summary
public TextField getCompletionTarget()

Overrides org.controlsfx.control.textfield.AutoCompletionBinding.getCompletionTarget.

Doc from org.controlsfx.control.textfield.AutoCompletionBinding.getCompletionTarget.

Gets the target node for auto completion

Annotations
@Override