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 thefindSuggestionsproperty.javafx.scene.control.TextFieldbooleanGets the value of thesearchHistoryButtonVisibleproperty.booleanGets the value of thesuggestionAdditionEnabledproperty.javafx.beans.property.BooleanPropertyfinal voidsetFindSuggestions(javafx.collections.ObservableList<String> pFindSuggestions) Sets the value of thefindSuggestionsproperty.voidsetSearchHistoryButtonVisible(boolean pVisible) Sets the value of thesearchHistoryButtonVisibleproperty.voidsetSuggestionAdditionEnabled(boolean pEnabled) Sets the value of thesuggestionAdditionEnabledproperty.javafx.beans.property.BooleanProperty
-
Property Details
-
findSuggestions
public final javafx.beans.property.ObjectProperty<javafx.collections.ObservableList<String>> findSuggestionsProperty- See Also:
-
suggestionAdditionEnabled
public javafx.beans.property.BooleanProperty suggestionAdditionEnabledProperty- See Also:
-
searchHistoryButtonVisible
public javafx.beans.property.BooleanProperty searchHistoryButtonVisibleProperty- See Also:
-
-
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()- Returns:
- the
findSuggestionsproperty - See Also:
-
getFindSuggestions
Gets the value of thefindSuggestionsproperty.- Property description:
- Returns:
- the value of the
findSuggestionsproperty - See Also:
-
setFindSuggestions
Sets the value of thefindSuggestionsproperty.- Property description:
- Parameters:
pFindSuggestions- the value for thefindSuggestionsproperty- See Also:
-
suggestionAdditionEnabledProperty
public javafx.beans.property.BooleanProperty suggestionAdditionEnabledProperty()- Returns:
- the
suggestionAdditionEnabledproperty - See Also:
-
isSuggestionAdditionEnabled
public boolean isSuggestionAdditionEnabled()Gets the value of thesuggestionAdditionEnabledproperty.- Property description:
- Returns:
- the value of the
suggestionAdditionEnabledproperty - See Also:
-
setSuggestionAdditionEnabled
public void setSuggestionAdditionEnabled(boolean pEnabled) Sets the value of thesuggestionAdditionEnabledproperty.- Property description:
- Parameters:
pEnabled- the value for thesuggestionAdditionEnabledproperty- See Also:
-
searchHistoryButtonVisibleProperty
public javafx.beans.property.BooleanProperty searchHistoryButtonVisibleProperty()- Returns:
- the
searchHistoryButtonVisibleproperty - See Also:
-
isSearchHistoryButtonVisible
public boolean isSearchHistoryButtonVisible()Gets the value of thesearchHistoryButtonVisibleproperty.- Property description:
- Returns:
- the value of the
searchHistoryButtonVisibleproperty - See Also:
-
setSearchHistoryButtonVisible
public void setSearchHistoryButtonVisible(boolean pVisible) Sets the value of thesearchHistoryButtonVisibleproperty.- Property description:
- Parameters:
pVisible- the value for thesearchHistoryButtonVisibleproperty- See Also:
-
addSuggestion
If the suggestion already exists, it is moved to the beginning of the list.- Parameters:
pSuggestion- the suggestion to add
-