Class 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 Detail

      • FindTextFieldSupport

        public FindTextFieldSupport()
      • FindTextFieldSupport

        public FindTextFieldSupport​(boolean pSortSuggestionList)
        Parameters:
        pSortSuggestionList - determines whether the suggestion list should be sorted
    • 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