Top Fields Constructors Methods
com.dlsc.gemsfx.skins

public Class SearchFieldPopup<T>

extends CustomPopupControl
Class Inheritance
Imports
com.dlsc.gemsfx.CustomPopupControl, .SearchField, javafx.collections.FXCollections, .MapChangeListener, .ObservableList, javafx.scene.control.ListView, .Skin, org.apache.commons.lang3.StringUtils, java.util.Objects

Field Summary

Modifier and TypeField and Description
public static final String
private final SearchField<T>
private final ObservableList<T>

Constructor Summary

AccessConstructor and Description
public
SearchFieldPopup(SearchField<T> searchField)

Method Summary

Modifier and TypeMethod and Description
protected Skin<?>
createDefaultSkin()

Overrides javafx.scene.control.PopupControl.createDefaultSkin.

Create a new instance of the default skin for this control.

public SearchField<T>
public ObservableList<T>
private void
selectFirstSuggestion()

Selects the first suggestion (if any), so the user can choose it by pressing enter immediately.

Inherited from com.dlsc.gemsfx.CustomPopupControl:
show

Field Detail

DEFAULT_STYLE_CLASSback to summary
public static final String DEFAULT_STYLE_CLASS
searchFieldback to summary
private final SearchField<T> searchField
suggestionsback to summary
private final ObservableList<T> suggestions

Constructor Detail

SearchFieldPopupback to summary
public SearchFieldPopup(SearchField<T> searchField)

Method Detail

createDefaultSkinback to summary
protected Skin<?> createDefaultSkin()

Overrides javafx.scene.control.PopupControl.createDefaultSkin.

Doc from javafx.scene.control.PopupControl.createDefaultSkin.

Create a new instance of the default skin for this control. This is called to create a skin for the control if no skin is provided via CSS -fx-skin or set explicitly in a sub-class with setSkin(...).

getSearchFieldback to summary
public SearchField<T> getSearchField()
getSuggestionsback to summary
public ObservableList<T> getSuggestions()
selectFirstSuggestionback to summary
private void selectFirstSuggestion()

Selects the first suggestion (if any), so the user can choose it by pressing enter immediately.