Java javafx.scene.control ChoiceBox fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control ChoiceBox fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control ChoiceBox.

The text is from its open source code.

Constructor

ChoiceBox()
Create a new ChoiceBox which has an empty list of items.
ChoiceBox(ObservableList items)
Create a new ChoiceBox with the given set of items.

Method

ObjectProperty>converterProperty()
Allows a way to specify how to represent objects in the items list.
StringConvertergetConverter()
ObservableListgetItems()
SingleSelectionModelgetSelectionModel()
TgetValue()
voidhide()
Closes the list of choices.
booleanisShowing()
ObjectProperty>itemsProperty()
ObjectProperty>selectionModelProperty()
voidsetConverter(StringConverter value)
voidsetItems(ObservableList value)
voidsetSelectionModel(SingleSelectionModel value)
voidsetTooltip(Tooltip value)
voidsetValue(T value)
voidshow()
Opens the list of choices.
ReadOnlyBooleanPropertyshowingProperty()
ObjectPropertyvalueProperty()
The value of this ChoiceBox is defined as the selected item in the ChoiceBox selection model.