java.lang.Object
com.iamsoft.util.ui.javafx.FindTextFieldSupport
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 Summary
PropertiesTypePropertyDescriptionfinal javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<String>>javafx.beans.property.BooleanPropertyjavafx.beans.property.BooleanProperty -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSuggestion(String pSuggestion) If the suggestion already exists, it is moved to the beginning of the list.final javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<String>>final javafx.collections.ObservableList<String>Gets the value of the property findSuggestions.javafx.scene.control.TextFieldbooleanGets the value of the property searchHistoryButtonVisible.booleanGets the value of the property suggestionAdditionEnabled.javafx.beans.property.BooleanPropertyfinal voidsetFindSuggestions(javafx.collections.ObservableList<String> pFindSuggestions) Sets the value of the property findSuggestions.voidsetSearchHistoryButtonVisible(boolean pVisible) Sets the value of the property searchHistoryButtonVisible.voidsetSuggestionAdditionEnabled(boolean pEnabled) Sets the value of the property suggestionAdditionEnabled.javafx.beans.property.BooleanProperty
-
Property Details
-
findSuggestions
public final javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<String>> findSuggestionsProperty -
suggestionAdditionEnabled
public javafx.beans.property.BooleanProperty suggestionAdditionEnabledProperty -
searchHistoryButtonVisible
public javafx.beans.property.BooleanProperty searchHistoryButtonVisibleProperty
-
-
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() -
getFindSuggestions
Gets the value of the property findSuggestions.- Property description:
-
setFindSuggestions
Sets the value of the property findSuggestions.- Property description:
-
suggestionAdditionEnabledProperty
public javafx.beans.property.BooleanProperty suggestionAdditionEnabledProperty() -
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() -
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
If the suggestion already exists, it is moved to the beginning of the list.- Parameters:
pSuggestion- the suggestion to add
-