- java.lang.Object
-
- com.iamsoft.util.ui.javafx.FindTextFieldSupport
-
public class FindTextFieldSupport extends Object
Support for clearable auto-complete text field suitable for find text fields. Suggestions are automatically added when the user hits 'Enter' or when the text field looses focus.
-
-
Constructor Summary
Constructors Constructor Description FindTextFieldSupport()FindTextFieldSupport(boolean pSortSuggestionList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSuggestion(String pSuggestion)If the suggestion already exists, it is moved to the beginning of the list.javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<String>>findSuggestionsProperty()javafx.collections.ObservableList<String>getFindSuggestions()javafx.scene.control.TextFieldgetFindTextField()booleanisSearchHistoryButtonVisible()booleanisSuggestionAdditionEnabled()javafx.beans.property.BooleanPropertysearchHistoryButtonVisibleProperty()voidsetFindSuggestions(javafx.collections.ObservableList<String> pFindSuggestions)voidsetSearchHistoryButtonVisible(boolean pVisible)voidsetSuggestionAdditionEnabled(boolean pEnabled)javafx.beans.property.BooleanPropertysuggestionAdditionEnabledProperty()
-
-
-
Method Detail
-
getFindTextField
public javafx.scene.control.TextField getFindTextField()
-
findSuggestionsProperty
public final javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<String>> findSuggestionsProperty()
-
getFindSuggestions
public final javafx.collections.ObservableList<String> getFindSuggestions()
-
setFindSuggestions
public final void setFindSuggestions(javafx.collections.ObservableList<String> pFindSuggestions)
-
suggestionAdditionEnabledProperty
public javafx.beans.property.BooleanProperty suggestionAdditionEnabledProperty()
-
isSuggestionAdditionEnabled
public boolean isSuggestionAdditionEnabled()
-
setSuggestionAdditionEnabled
public void setSuggestionAdditionEnabled(boolean pEnabled)
-
searchHistoryButtonVisibleProperty
public javafx.beans.property.BooleanProperty searchHistoryButtonVisibleProperty()
-
isSearchHistoryButtonVisible
public boolean isSearchHistoryButtonVisible()
-
setSearchHistoryButtonVisible
public void setSearchHistoryButtonVisible(boolean pVisible)
-
addSuggestion
public void addSuggestion(String pSuggestion)
If the suggestion already exists, it is moved to the beginning of the list.- Parameters:
pSuggestion- the suggestion to add
-
-