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.BooleanProperty
javafx.beans.property.BooleanProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSuggestion
(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 thefindSuggestions
property.javafx.scene.control.TextField
boolean
Gets the value of thesearchHistoryButtonVisible
property.boolean
Gets the value of thesuggestionAdditionEnabled
property.javafx.beans.property.BooleanProperty
final void
setFindSuggestions
(javafx.collections.ObservableList<String> pFindSuggestions) Sets the value of thefindSuggestions
property.void
setSearchHistoryButtonVisible
(boolean pVisible) Sets the value of thesearchHistoryButtonVisible
property.void
setSuggestionAdditionEnabled
(boolean pEnabled) Sets the value of thesuggestionAdditionEnabled
property.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
findSuggestions
property - See Also:
-
getFindSuggestions
Gets the value of thefindSuggestions
property.- Property description:
- Returns:
- the value of the
findSuggestions
property - See Also:
-
setFindSuggestions
Sets the value of thefindSuggestions
property.- Property description:
- Parameters:
pFindSuggestions
- the value for thefindSuggestions
property- See Also:
-
suggestionAdditionEnabledProperty
public javafx.beans.property.BooleanProperty suggestionAdditionEnabledProperty()- Returns:
- the
suggestionAdditionEnabled
property - See Also:
-
isSuggestionAdditionEnabled
public boolean isSuggestionAdditionEnabled()Gets the value of thesuggestionAdditionEnabled
property.- Property description:
- Returns:
- the value of the
suggestionAdditionEnabled
property - See Also:
-
setSuggestionAdditionEnabled
public void setSuggestionAdditionEnabled(boolean pEnabled) Sets the value of thesuggestionAdditionEnabled
property.- Property description:
- Parameters:
pEnabled
- the value for thesuggestionAdditionEnabled
property- See Also:
-
searchHistoryButtonVisibleProperty
public javafx.beans.property.BooleanProperty searchHistoryButtonVisibleProperty()- Returns:
- the
searchHistoryButtonVisible
property - See Also:
-
isSearchHistoryButtonVisible
public boolean isSearchHistoryButtonVisible()Gets the value of thesearchHistoryButtonVisible
property.- Property description:
- Returns:
- the value of the
searchHistoryButtonVisible
property - See Also:
-
setSearchHistoryButtonVisible
public void setSearchHistoryButtonVisible(boolean pVisible) Sets the value of thesearchHistoryButtonVisible
property.- Property description:
- Parameters:
pVisible
- the value for thesearchHistoryButtonVisible
property- See Also:
-
addSuggestion
If the suggestion already exists, it is moved to the beginning of the list.- Parameters:
pSuggestion
- the suggestion to add
-