public class TextFields
extends java.lang.Object
TextField.
Note that this class is experimental and the API may change in future
releases. Note also that this class makes use of the CustomTextField
class.CustomTextField| Modifier and Type | Method and Description |
|---|---|
static <T> AutoCompletionBinding<T> |
bindAutoCompletion(javafx.scene.control.TextField textField,
javafx.util.Callback<AutoCompletionBinding.ISuggestionRequest,java.util.Collection<T>> suggestionProvider)
Create a new auto-completion binding between the given textField and the
given suggestion provider.
|
static <T> AutoCompletionBinding<T> |
bindAutoCompletion(javafx.scene.control.TextField textField,
javafx.util.Callback<AutoCompletionBinding.ISuggestionRequest,java.util.Collection<T>> suggestionProvider,
javafx.util.StringConverter<T> converter)
Create a new auto-completion binding between the given textField and the
given suggestion provider.
|
static <T> AutoCompletionBinding<T> |
bindAutoCompletion(javafx.scene.control.TextField textField,
java.util.Collection<T> possibleSuggestions) |
static <T> AutoCompletionBinding<T> |
bindAutoCompletion(javafx.scene.control.TextField textField,
T... possibleSuggestions)
Create a new auto-completion binding between the given
TextField
using the given auto-complete suggestions |
static javafx.scene.control.PasswordField |
createClearablePasswordField()
Creates a PasswordField that shows a clear button inside the PasswordField
(on the right hand side of it) when text is entered by the user.
|
static javafx.scene.control.TextField |
createClearableTextField()
Creates a TextField that shows a clear button inside the TextField (on
the right hand side of it) when text is entered by the user.
|
public static javafx.scene.control.TextField createClearableTextField()
public static javafx.scene.control.PasswordField createClearablePasswordField()
public static <T> AutoCompletionBinding<T> bindAutoCompletion(javafx.scene.control.TextField textField, javafx.util.Callback<AutoCompletionBinding.ISuggestionRequest,java.util.Collection<T>> suggestionProvider, javafx.util.StringConverter<T> converter)
TextFields API has some suggestion-provider builder methods
for simple use cases.textField - The TextField to which auto-completion shall be addedsuggestionProvider - A suggestion-provider strategy to useconverter - The converter to be used to convert suggestions to stringspublic static <T> AutoCompletionBinding<T> bindAutoCompletion(javafx.scene.control.TextField textField, javafx.util.Callback<AutoCompletionBinding.ISuggestionRequest,java.util.Collection<T>> suggestionProvider)
TextFields API has some suggestion-provider builder methods
for simple use cases.textField - The TextField to which auto-completion shall be addedsuggestionProvider - A suggestion-provider strategy to usepublic static <T> AutoCompletionBinding<T> bindAutoCompletion(javafx.scene.control.TextField textField, T... possibleSuggestions)
TextField
using the given auto-complete suggestionstextField - The TextField to which auto-completion shall be addedpossibleSuggestions - Possible auto-complete suggestionspublic static <T> AutoCompletionBinding<T> bindAutoCompletion(javafx.scene.control.TextField textField, java.util.Collection<T> possibleSuggestions)