Class FindTextFieldSupport

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.
  • Property Details

  • Constructor Details

    • FindTextFieldSupport

      public FindTextFieldSupport()
    • FindTextFieldSupport

      public FindTextFieldSupport(boolean pSortSuggestionList)
      Parameters:
      pSortSuggestionList - determines whether the suggestion list should be sorted
  • Method Details

    • getFindTextField

      public javafx.scene.control.TextField getFindTextField()
    • findSuggestionsProperty

      public final javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<String>> findSuggestionsProperty()
      See Also:
    • getFindSuggestions

      public final javafx.collections.ObservableList<String> getFindSuggestions()
      Gets the value of the property findSuggestions.
      Property description:
    • setFindSuggestions

      public final void setFindSuggestions(javafx.collections.ObservableList<String> pFindSuggestions)
      Sets the value of the property findSuggestions.
      Property description:
    • suggestionAdditionEnabledProperty

      public javafx.beans.property.BooleanProperty suggestionAdditionEnabledProperty()
      See Also:
    • isSuggestionAdditionEnabled

      public boolean isSuggestionAdditionEnabled()
      Gets the value of the property suggestionAdditionEnabled.
      Property description:
    • setSuggestionAdditionEnabled

      public void setSuggestionAdditionEnabled(boolean pEnabled)
      Sets the value of the property suggestionAdditionEnabled.
      Property description:
    • searchHistoryButtonVisibleProperty

      public javafx.beans.property.BooleanProperty searchHistoryButtonVisibleProperty()
      See Also:
    • isSearchHistoryButtonVisible

      public boolean isSearchHistoryButtonVisible()
      Gets the value of the property searchHistoryButtonVisible.
      Property description:
    • setSearchHistoryButtonVisible

      public void setSearchHistoryButtonVisible(boolean pVisible)
      Sets the value of the property searchHistoryButtonVisible.
      Property description:
    • 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