public class ListComboUtil
extends java.lang.Object
ComboBox and ListView and ChoiceBox| Constructor and Description |
|---|
ListComboUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> javafx.scene.control.ChoiceBox<T> |
setupChoiceBox(javafx.scene.control.ChoiceBox<T> choiceBox,
javafx.collections.ObservableList<T> items,
javafx.util.StringConverter<T> labelExtractor)
Setup a choice box
|
static <T> javafx.scene.control.ComboBox<T> |
setupCombo(javafx.scene.control.ComboBox<T> comboBox,
javafx.collections.ObservableList<T> items,
java.util.function.Function<T,java.lang.CharSequence> labelExtractor)
Setup a combo box
|
static <T> javafx.scene.control.ListView<T> |
setupList(javafx.scene.control.ListView<T> listView,
javafx.collections.ObservableList<T> items,
java.util.function.Function<T,javafx.beans.binding.StringExpression> labelPropertyExtractor)
Setup a list
|
public static <T> javafx.scene.control.ComboBox<T> setupCombo(javafx.scene.control.ComboBox<T> comboBox,
javafx.collections.ObservableList<T> items,
java.util.function.Function<T,java.lang.CharSequence> labelExtractor)
comboBox - the combo boxitems - the itemslabelExtractor - function to extract the labelpublic static <T> javafx.scene.control.ChoiceBox<T> setupChoiceBox(javafx.scene.control.ChoiceBox<T> choiceBox,
javafx.collections.ObservableList<T> items,
javafx.util.StringConverter<T> labelExtractor)
choiceBox - the choice boxitems - the itemslabelExtractor - function to extract the labelpublic static <T> javafx.scene.control.ListView<T> setupList(javafx.scene.control.ListView<T> listView,
javafx.collections.ObservableList<T> items,
java.util.function.Function<T,javafx.beans.binding.StringExpression> labelPropertyExtractor)
listView - the list viewitems - the itemslabelPropertyExtractor - the extractor