Class ChoiceBox<T>
- All Implemented Interfaces:
 LayoutMeasurable,LayoutMeasurableMixin,HasBackgroundProperty,HasBlendModeProperty,HasBorderProperty,HasClipProperty,HasEffectProperty,HasHeightProperty,HasLayoutXProperty,HasLayoutYProperty,HasManagedProperty,HasMaxHeightProperty,HasMaxWidthProperty,HasMinHeightProperty,HasMinWidthProperty,HasMouseTransparentProperty,HasOnMouseClickedProperty,HasOpacityProperty,HasPaddingProperty,HasParentProperty,HasPrefHeightProperty,HasPrefWidthProperty,HasSnapToPixelProperty,HasVisibleProperty,HasWidthProperty,Styleable,EventTarget,Skinnable,INode,PreferenceResizableNode
By default, the ChoiceBox has no item selected unless otherwise specified. Although the ChoiceBox will only allow a user to select from the predefined list, it is possible for the developer to specify the selected item to be something other than what is available in the predefined list. This is required for several important use cases.
It means configuration of the ChoiceBox is order independent. You may either specify the items and then the selected item, or you may specify the selected item and then the items. Either way will function correctly.
 ChoiceBox item selection is handled by
 SelectionModel
 As with ListView and ComboBox, it is possible to modify the
 SelectionModel that is used,
 although this is likely to be rarely changed. ChoiceBox supports only a
 single selection model, hence the default used is a SingleSelectionModel.
 
 import javafx.scene.control.ChoiceBox;
 ChoiceBox cb = new ChoiceBox();
 cb.getItems().addAll("item1", "item2", "item3");
 - Since:
 - JavaFX 2.0
 
- 
Property Summary
PropertiesTypePropertyDescriptionAllows a way to specify how to represent objects in the items list.final ObjectProperty<ObservableList<T>>The items to display in the choice box.final ObjectProperty<EventHandler<ActionEvent>>The ChoiceBox action, which is invoked whenever the ChoiceBoxvalueproperty is changed.final ObjectProperty<EventHandler<Event>>Called just after theChoiceBoxpopup has been hidden.final ObjectProperty<EventHandler<Event>>Called just prior to theChoiceBoxpopup being hidden.final ObjectProperty<EventHandler<Event>>Called just prior to theChoiceBoxpopup being shown.final ObjectProperty<EventHandler<Event>>Called just after theChoiceBoxpopup is shown.final ObjectProperty<SingleSelectionModel<T>>The selection model for the ChoiceBox.Indicates whether the drop down is displaying the list of choices to the user.The value of this ChoiceBox is defined as the selected item in the ChoiceBox selection model.Properties inherited from class javafx.scene.control.Control
contextMenu, skin, tooltipProperties inherited from class javafx.scene.layout.Region
background, border, height, insets, maxHeight, maxWidth, minHeight, minWidth, padding, prefHeight, prefWidth, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
blendMode, cacheHint, cache, clip, cursor, disabled, disable, effect, eventDispatcher, focused, focusTraversable, hover, id, layoutBounds, layoutX, layoutY, managed, mouseTransparent, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onScroll, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, opacity, parent, pressed, rotate, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, visibleProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBlendModeProperty
blendModeProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasClipProperty
clipProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasEffectProperty
effectProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutXProperty
layoutXProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutYProperty
layoutYProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasManagedProperty
managedProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMouseTransparentProperty
mouseTransparentProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOnMouseClickedProperty
onMouseClickedProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOpacityProperty
opacityProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasParentProperty
parentProperties inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasVisibleProperty
visible - 
Field Summary
FieldsModifier and TypeFieldDescriptionCalled when the ChoiceBox popup has been hidden.Called when the ChoiceBox popup will be hidden.Called prior to the ChoiceBox showing its popup after the user has clicked or otherwise interacted with the ChoiceBox.Called after the ChoiceBox has shown its popup.Fields inherited from interface javafx.scene.INode
BASELINE_OFFSET_SAME_AS_HEIGHTFields inherited from interface javafx.scene.layout.PreferenceResizableNode
USE_COMPUTED_SIZE, USE_PREF_SIZE - 
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ChoiceBox which has an empty list of items.ChoiceBox(ObservableList<T> items) Create a new ChoiceBox with the given set of items. - 
Method Summary
Modifier and TypeMethodDescriptionAllows a way to specify how to represent objects in the items list.final StringConverter<T>Gets the value of theconverterproperty.final ObservableList<T>getItems()Gets the value of theitemsproperty.final EventHandler<ActionEvent>Gets the value of theonActionproperty.final EventHandler<Event>Gets the value of theonHiddenproperty.final EventHandler<Event>Gets the value of theonHidingproperty.final EventHandler<Event>Gets the value of theonShowingproperty.final EventHandler<Event>Gets the value of theonShownproperty.final SingleSelectionModel<T>Gets the value of theselectionModelproperty.final TgetValue()Gets the value of thevalueproperty.voidhide()Closes the list of choices.final booleanfinal ObjectProperty<ObservableList<T>>The items to display in the choice box.final ObjectProperty<EventHandler<ActionEvent>>The ChoiceBox action, which is invoked whenever the ChoiceBoxvalueproperty is changed.final ObjectProperty<EventHandler<Event>>Called just after theChoiceBoxpopup has been hidden.final ObjectProperty<EventHandler<Event>>Called just prior to theChoiceBoxpopup being hidden.final ObjectProperty<EventHandler<Event>>Called just prior to theChoiceBoxpopup being shown.final ObjectProperty<EventHandler<Event>>Called just after theChoiceBoxpopup is shown.final ObjectProperty<SingleSelectionModel<T>>The selection model for the ChoiceBox.final voidsetConverter(StringConverter<T> value) Sets the value of theconverterproperty.final voidsetItems(ObservableList<T> value) Sets the value of theitemsproperty.final voidsetOnAction(EventHandler<ActionEvent> value) Sets the value of theonActionproperty.final voidsetOnHidden(EventHandler<Event> value) Sets the value of theonHiddenproperty.final voidsetOnHiding(EventHandler<Event> value) Sets the value of theonHidingproperty.final voidsetOnShowing(EventHandler<Event> value) Sets the value of theonShowingproperty.final voidsetOnShown(EventHandler<Event> value) Sets the value of theonShownproperty.final voidsetSelectionModel(SingleSelectionModel<T> value) Sets the value of theselectionModelproperty.final voidSets the value of thevalueproperty.voidshow()Opens the list of choices.Indicates whether the drop down is displaying the list of choices to the user.The value of this ChoiceBox is defined as the selected item in the ChoiceBox selection model.Methods inherited from class javafx.scene.control.Control
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, getBaselineOffset, getContextMenu, getSkin, getTooltip, layoutChildren, setContextMenu, setSkin, setTooltip, shouldUseLayoutMeasurable, skinProperty, tooltipPropertyMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, boundedSize, getInsets, heightProperty, impl_computeGeomBounds, impl_computeLayoutBounds, impl_maxHeight, impl_maxWidth, impl_minHeight, impl_minWidth, impl_prefHeight, impl_prefWidth, insetsProperty, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, paddingProperty, positionInArea, positionInArea, prefHeightProperty, prefWidthProperty, resize, setMaxSize, setMinSize, setPrefSize, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getChildren, getChildrenUnmodifiable, getManagedChildren, isNeedsLayout, layout, needsLayoutProperty, requestLayout, requestParentLayout, setLayoutFlag, setNeedsLayout, setSceneRootMethods inherited from class javafx.scene.Node
addEventFilter, addEventHandler, autosize, blendModeProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, createLayoutMeasurable, cursorProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAllNodeTransforms, getBoundsInLocal, getCacheHint, getCursor, getEventDispatcher, getId, getLayoutMeasurable, getNodePeer, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseDragged, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnScroll, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOrCreateAndBindNodePeer, getProperties, getRotate, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getUserData, hasProperties, hoverProperty, idProperty, impl_getLayoutBounds, impl_isTreeVisible, impl_traverse, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isPressed, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToScene, localToScene, localToScreen, localToScreen, localToScreen, localToScreen, managedProperty, mouseTransparentProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onNodePeerReady, onPeerSizeChanged, onScrollProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, opacityProperty, parentProperty, parentToLocal, pressedProperty, removeEventFilter, removeEventHandler, requestFocus, requestPeerFocus, rotateProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setCache, setCacheHint, setCursor, setDisable, setDisabled, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setNodePeer, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseDragged, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnScroll, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setPressed, setRotate, setScaleX, setScaleY, setScaleZ, setScene, setStyle, setTranslateX, setTranslateY, setUserData, snapshot, startDragAndDrop, styleProperty, toBack, toFront, translateXProperty, translateYProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBackgroundProperty
getBackground, setBackgroundMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBlendModeProperty
blendModeProperty, getBlendMode, setBlendModeMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasBorderProperty
getBorder, setBorderMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasClipProperty
clipProperty, getClip, setClipMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasEffectProperty
effectProperty, getEffect, setEffectMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasHeightProperty
getHeight, setHeightMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutXProperty
getLayoutX, layoutXProperty, setLayoutXMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasLayoutYProperty
getLayoutY, layoutYProperty, setLayoutYMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasManagedProperty
isManaged, managedProperty, setManagedMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMaxHeightProperty
getMaxHeight, setMaxHeightMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMaxWidthProperty
getMaxWidth, setMaxWidthMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMinHeightProperty
getMinHeight, setMinHeightMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMinWidthProperty
getMinWidth, setMinWidthMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasMouseTransparentProperty
isMouseTransparent, mouseTransparentProperty, setMouseTransparentMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOnMouseClickedProperty
getOnMouseClicked, onMouseClickedProperty, setOnMouseClickedMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasOpacityProperty
getOpacity, opacityProperty, setOpacityMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPaddingProperty
getPadding, setPaddingMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasParentProperty
getParent, parentProperty, setParentMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPrefHeightProperty
getPrefHeight, setPrefHeightMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPrefWidthProperty
getPrefWidth, setPrefWidthMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasSnapToPixelProperty
isSnapToPixel, setSnapToPixelMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasVisibleProperty
isVisible, setVisible, visiblePropertyMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasWidthProperty
getWidth, setWidthMethods inherited from interface javafx.scene.INode
autosize, getAllNodeTransforms, getContentBias, getNodePeer, getOrCreateAndBindNodePeer, getProperties, getScene, getTransforms, hasProperties, relocate, resizeRelocateMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.emul_coupling.LayoutMeasurableMixin
clearCache, getLayoutBounds, getLayoutMeasurable, maxHeight, maxWidth, minHeight, minWidth, prefHeight, prefWidthMethods inherited from interface javafx.scene.layout.PreferenceResizableNode
isResizable 
- 
Property Details
- 
selectionModel
The selection model for the ChoiceBox. Only a single choice can be made, hence, the ChoiceBox supports only a SingleSelectionModel. Generally, the main interaction with the selection model is to explicitly set which item in the items list should be selected, or to listen to changes in the selection to know which item has been chosen. - 
showing
Indicates whether the drop down is displaying the list of choices to the user. This is a readonly property which should be manipulated by means of the #show and #hide methods.- See Also:
 
 - 
items
The items to display in the choice box. The selected item (as indicated in the selection model) must always be one of these items. - 
converter
Allows a way to specify how to represent objects in the items list. When a StringConverter is set, the object toString method is not called and instead its toString(object T) is called, passing the objects in the items list. This is useful when using domain objects in a ChoiceBox as this property allows for customization of the representation. Also, any of the pre-built Converters available in thepackage can be set.invalid @link
javafx.util.converter- Since:
 - JavaFX 2.1
 - See Also:
 
 - 
value
The value of this ChoiceBox is defined as the selected item in the ChoiceBox selection model. The valueProperty is synchronized with the selectedItem. This property allows for bi-directional binding of external properties to the ChoiceBox and updates the selection model accordingly.- Since:
 - JavaFX 2.1
 - See Also:
 
 - 
onAction
The ChoiceBox action, which is invoked whenever the ChoiceBoxvalueproperty is changed. This may be due to the value property being programmatically changed or when the user selects an item in a popup menu.- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onShowing
Called just prior to theChoiceBoxpopup being shown.- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onShown
Called just after theChoiceBoxpopup is shown.- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onHiding
Called just prior to theChoiceBoxpopup being hidden.- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onHidden
Called just after theChoiceBoxpopup has been hidden.- Since:
 - JavaFX 8u60
 - See Also:
 
 
 - 
 - 
Field Details
- 
ON_SHOWING
Called prior to the ChoiceBox showing its popup after the user has clicked or otherwise interacted with the ChoiceBox.- Since:
 - JavaFX 8u60
 
 - 
ON_SHOWN
Called after the ChoiceBox has shown its popup.- Since:
 - JavaFX 8u60
 
 - 
ON_HIDING
Called when the ChoiceBox popup will be hidden.- Since:
 - JavaFX 8u60
 
 - 
ON_HIDDEN
Called when the ChoiceBox popup has been hidden.- Since:
 - JavaFX 8u60
 
 
 - 
 - 
Constructor Details
- 
ChoiceBox
public ChoiceBox()Create a new ChoiceBox which has an empty list of items. - 
ChoiceBox
Create a new ChoiceBox with the given set of items. Since it is observable, the content of this list may change over time and the ChoiceBox will be updated accordingly.- Parameters:
 items-
 
 - 
 - 
Method Details
- 
setSelectionModel
Sets the value of theselectionModelproperty.- Property description:
 - The selection model for the ChoiceBox. Only a single choice can be made, hence, the ChoiceBox supports only a SingleSelectionModel. Generally, the main interaction with the selection model is to explicitly set which item in the items list should be selected, or to listen to changes in the selection to know which item has been chosen.
 - Parameters:
 value- the value for theselectionModelproperty- See Also:
 
 - 
getSelectionModel
Gets the value of theselectionModelproperty.- Property description:
 - The selection model for the ChoiceBox. Only a single choice can be made, hence, the ChoiceBox supports only a SingleSelectionModel. Generally, the main interaction with the selection model is to explicitly set which item in the items list should be selected, or to listen to changes in the selection to know which item has been chosen.
 - Returns:
 - the value of the 
selectionModelproperty - See Also:
 
 - 
selectionModelProperty
The selection model for the ChoiceBox. Only a single choice can be made, hence, the ChoiceBox supports only a SingleSelectionModel. Generally, the main interaction with the selection model is to explicitly set which item in the items list should be selected, or to listen to changes in the selection to know which item has been chosen.- Returns:
 - the 
selectionModelproperty - See Also:
 
 - 
isShowing
public final boolean isShowing() - 
showingProperty
Indicates whether the drop down is displaying the list of choices to the user. This is a readonly property which should be manipulated by means of the #show and #hide methods.- Returns:
 - the 
showingproperty 
 - 
setItems
Sets the value of theitemsproperty.- Property description:
 - The items to display in the choice box. The selected item (as indicated in the selection model) must always be one of these items.
 - Parameters:
 value- the value for theitemsproperty- See Also:
 
 - 
getItems
Gets the value of theitemsproperty.- Property description:
 - The items to display in the choice box. The selected item (as indicated in the selection model) must always be one of these items.
 - Returns:
 - the value of the 
itemsproperty - See Also:
 
 - 
itemsProperty
The items to display in the choice box. The selected item (as indicated in the selection model) must always be one of these items.- Returns:
 - the 
itemsproperty - See Also:
 
 - 
converterProperty
Allows a way to specify how to represent objects in the items list. When a StringConverter is set, the object toString method is not called and instead its toString(object T) is called, passing the objects in the items list. This is useful when using domain objects in a ChoiceBox as this property allows for customization of the representation. Also, any of the pre-built Converters available in thepackage can be set.invalid @link
javafx.util.converter- Returns:
 - the 
converterproperty - Since:
 - JavaFX 2.1
 - See Also:
 
 - 
setConverter
Sets the value of theconverterproperty.- Property description:
 - Allows a way to specify how to represent objects in the items list. When
 a StringConverter is set, the object toString method is not called and
 instead its toString(object T) is called, passing the objects in the items list.
 This is useful when using domain objects in a ChoiceBox as this property
 allows for customization of the representation. Also, any of the pre-built
 Converters available in the 
package can be set.
invalid @link
javafx.util.converter - Parameters:
 value- the value for theconverterproperty- Since:
 - JavaFX 2.1
 - See Also:
 
 - 
getConverter
Gets the value of theconverterproperty.- Property description:
 - Allows a way to specify how to represent objects in the items list. When
 a StringConverter is set, the object toString method is not called and
 instead its toString(object T) is called, passing the objects in the items list.
 This is useful when using domain objects in a ChoiceBox as this property
 allows for customization of the representation. Also, any of the pre-built
 Converters available in the 
package can be set.
invalid @link
javafx.util.converter - Returns:
 - the value of the 
converterproperty - Since:
 - JavaFX 2.1
 - See Also:
 
 - 
valueProperty
The value of this ChoiceBox is defined as the selected item in the ChoiceBox selection model. The valueProperty is synchronized with the selectedItem. This property allows for bi-directional binding of external properties to the ChoiceBox and updates the selection model accordingly.- Returns:
 - the 
valueproperty - Since:
 - JavaFX 2.1
 - See Also:
 
 - 
setValue
Sets the value of thevalueproperty.- Property description:
 - The value of this ChoiceBox is defined as the selected item in the ChoiceBox selection model. The valueProperty is synchronized with the selectedItem. This property allows for bi-directional binding of external properties to the ChoiceBox and updates the selection model accordingly.
 - Parameters:
 value- the value for thevalueproperty- Since:
 - JavaFX 2.1
 - See Also:
 
 - 
getValue
Gets the value of thevalueproperty.- Property description:
 - The value of this ChoiceBox is defined as the selected item in the ChoiceBox selection model. The valueProperty is synchronized with the selectedItem. This property allows for bi-directional binding of external properties to the ChoiceBox and updates the selection model accordingly.
 - Returns:
 - the value of the 
valueproperty - Since:
 - JavaFX 2.1
 - See Also:
 
 - 
onActionProperty
The ChoiceBox action, which is invoked whenever the ChoiceBoxvalueproperty is changed. This may be due to the value property being programmatically changed or when the user selects an item in a popup menu.- Returns:
 - the 
onActionproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
setOnAction
Sets the value of theonActionproperty.- Property description:
 - The ChoiceBox action, which is invoked whenever the ChoiceBox
 
valueproperty is changed. This may be due to the value property being programmatically changed or when the user selects an item in a popup menu. - Parameters:
 value- the value for theonActionproperty- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
getOnAction
Gets the value of theonActionproperty.- Property description:
 - The ChoiceBox action, which is invoked whenever the ChoiceBox
 
valueproperty is changed. This may be due to the value property being programmatically changed or when the user selects an item in a popup menu. - Returns:
 - the value of the 
onActionproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onShowingProperty
Called just prior to theChoiceBoxpopup being shown.- Returns:
 - the 
onShowingproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
setOnShowing
Sets the value of theonShowingproperty.- Property description:
 - Called just prior to the 
ChoiceBoxpopup being shown. - Parameters:
 value- the value for theonShowingproperty- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
getOnShowing
Gets the value of theonShowingproperty.- Property description:
 - Called just prior to the 
ChoiceBoxpopup being shown. - Returns:
 - the value of the 
onShowingproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onShownProperty
Called just after theChoiceBoxpopup is shown.- Returns:
 - the 
onShownproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
setOnShown
Sets the value of theonShownproperty.- Property description:
 - Called just after the 
ChoiceBoxpopup is shown. - Parameters:
 value- the value for theonShownproperty- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
getOnShown
Gets the value of theonShownproperty.- Property description:
 - Called just after the 
ChoiceBoxpopup is shown. - Returns:
 - the value of the 
onShownproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onHidingProperty
Called just prior to theChoiceBoxpopup being hidden.- Returns:
 - the 
onHidingproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
setOnHiding
Sets the value of theonHidingproperty.- Property description:
 - Called just prior to the 
ChoiceBoxpopup being hidden. - Parameters:
 value- the value for theonHidingproperty- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
getOnHiding
Gets the value of theonHidingproperty.- Property description:
 - Called just prior to the 
ChoiceBoxpopup being hidden. - Returns:
 - the value of the 
onHidingproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
onHiddenProperty
Called just after theChoiceBoxpopup has been hidden.- Returns:
 - the 
onHiddenproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
setOnHidden
Sets the value of theonHiddenproperty.- Property description:
 - Called just after the 
ChoiceBoxpopup has been hidden. - Parameters:
 value- the value for theonHiddenproperty- Since:
 - JavaFX 8u60
 - See Also:
 
 - 
getOnHidden
Gets the value of theonHiddenproperty.- Property description:
 - Called just after the 
ChoiceBoxpopup has been hidden. - Returns:
 - the value of the 
onHiddenproperty - Since:
 - JavaFX 8u60
 - See Also:
 
 - 
show
public void show()Opens the list of choices. - 
hide
public void hide()Closes the list of choices. 
 -