tornadofx / tornadofx / AutoCompleteComboBoxSkin

AutoCompleteComboBoxSkin

open class AutoCompleteComboBoxSkin<T> : ComboBoxPopupControl<T>, FilterHandler

Auto Complete support for combobox Accept a call back to make custom filter Default filter use the string produced by the converter of combobox and search with contains ignore case the occurrence of typed text Created by anouira on 15/02/2017.

Constructors

<init> AutoCompleteComboBoxSkin(comboBox: ComboBox<T>, autoCompleteFilter: (String) -> List<T>, automaticPopupWidth: Boolean)

Auto Complete support for combobox Accept a call back to make custom filter Default filter use the string produced by the converter of combobox and search with contains ignore case the occurrence of typed text Created by anouira on 15/02/2017.

Properties

autoCompleteFilter_ var autoCompleteFilter_: (String) -> List<T>
comboBox val comboBox: ComboBox<T>
listView val listView: ListView<T>

Functions

getConverter open fun getConverter(): StringConverter<T>
getDisplayNode open fun getDisplayNode(): Node?
getEditor open fun getEditor(): TextField?
getPopupContent open fun getPopupContent(): ListView<T>
handleFilterChange open fun handleFilterChange(text: String): Unit
hideSuggestion open fun hideSuggestion(): Boolean
showSuggestion open fun showSuggestion(): Boolean
updateDisplayNode open fun updateDisplayNode(): Unit
validateSelection open fun validateSelection(): Unit

Specific auto complete implementation

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>