- java.lang.Object
- 
- javafx.scene.Node
- 
- javafx.scene.Parent
- 
- javafx.scene.layout.Region
- 
- javafx.scene.control.Control
- 
- javafx.scene.control.ComboBoxBase<T>
 
 
 
 
 
- 
- Type Parameters:
- T- The type of the value that has been selected or otherwise entered in to this ComboBox.
 - All Implemented Interfaces:
- Styleable,- EventTarget,- Skinnable
 - Direct Known Subclasses:
- ColorPicker,- ComboBox,- DatePicker
 
 public abstract class ComboBoxBase<T> extends Control Abstract base class for ComboBox-like controls. A ComboBox typically has a button that, when clicked, will pop up some means of allowing a user to select one or more values (depending on the implementation). This base class makes no assumptions about what happens when theshow()andhide()methods are called, however commonly this results in either a popup or dialog appearing that allows for the user to provide the required information.A ComboBox has a valueproperty that represents the current user input. This may be based on a selection from a drop-down list, or it may be from user input when the ComboBox iseditable.An editableComboBox is one which provides some means for an end-user to provide input for values that are not otherwise options available to them. For example, in theComboBoximplementation, an editable ComboBox provides aTextFieldthat may be typed into. As mentioned above, when the user commits textual input into the textfield (commonly by pressing the Enter keyboard key), thevalueproperty will be updated.The purpose of the separation between this class and, say, ComboBoxis to allow for ComboBox-like controls that do not necessarily pop up a list of items. Examples of other implementations include color pickers, calendar pickers, etc. TheComboBoxclass provides the default, and most commonly expected implementation. Refer to that classes javadoc for more information.- Since:
- JavaFX 2.1
- See Also:
- ComboBox
 
- 
- 
Property SummaryProperties Type Property Description BooleanPropertyarmedIndicates that the ComboBox has been "armed" such that a mouse release will cause the ComboBoxshow()method to be invoked.BooleanPropertyeditableSpecifies whether the ComboBox allows for user input.ObjectProperty<EventHandler<ActionEvent>>onActionThe ComboBox action, which is invoked whenever the ComboBoxvalueproperty is changed.ObjectProperty<EventHandler<Event>>onHiddenCalled just after theComboBoxBasepopup/display has been hidden.ObjectProperty<EventHandler<Event>>onHidingCalled just prior to theComboBoxpopup/display being hidden.ObjectProperty<EventHandler<Event>>onShowingCalled just prior to theComboBoxBasepopup/display being shown.ObjectProperty<EventHandler<Event>>onShownCalled just after theComboBoxBasepopup/display is shown.StringPropertypromptTextTheComboBoxprompt text to display, ornullif no prompt text is displayed.ReadOnlyBooleanPropertyshowingRepresents the current state of the ComboBox popup, and whether it is currently visible on screen (although it may be hidden behind other windows).ObjectProperty<T>valueThe value of this ComboBox is defined as the selected item if the input is not editable, or if it is editable, the most recent user action: either the value input by the user, or the last selected item.- 
Properties inherited from class javafx.scene.control.ControlcontextMenu, skin, tooltip
 - 
Properties inherited from class javafx.scene.layout.Regionbackground, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width
 - 
Properties inherited from class javafx.scene.ParentneedsLayout
 - 
Properties inherited from class javafx.scene.NodeaccessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static EventType<Event>ON_HIDDENCalled when the ComboBox popup/display has been hidden.static EventType<Event>ON_HIDINGCalled when the ComboBox popup/display will be hidden.static EventType<Event>ON_SHOWINGCalled prior to the ComboBox showing its popup/display after the user has clicked or otherwise interacted with the ComboBox.static EventType<Event>ON_SHOWNCalled after the ComboBox has shown its popup/display.- 
Fields inherited from class javafx.scene.layout.RegionUSE_COMPUTED_SIZE, USE_PREF_SIZE
 - 
Fields inherited from class javafx.scene.NodeBASELINE_OFFSET_SAME_AS_HEIGHT
 
- 
 - 
Constructor SummaryConstructors Constructor Description ComboBoxBase()Creates a default ComboBoxBase instance.
 - 
Method SummaryModifier and Type Method Description voidarm()Arms the ComboBox.BooleanPropertyarmedProperty()Indicates that the ComboBox has been "armed" such that a mouse release will cause the ComboBoxshow()method to be invoked.voiddisarm()Disarms the ComboBox.BooleanPropertyeditableProperty()Specifies whether the ComboBox allows for user input.voidexecuteAccessibleAction(AccessibleAction action, Object... parameters)This method is called by the assistive technology to request the action indicated by the argument should be executed.EventHandler<ActionEvent>getOnAction()Gets the value of the property onAction.EventHandler<Event>getOnHidden()Gets the value of the property onHidden.EventHandler<Event>getOnHiding()Gets the value of the property onHiding.EventHandler<Event>getOnShowing()Gets the value of the property onShowing.EventHandler<Event>getOnShown()Gets the value of the property onShown.StringgetPromptText()Gets the value of the property promptText.TgetValue()Gets the value of the property value.voidhide()Closes the popup / dialog that was shown whenshow()was called.booleanisArmed()Gets the value of the property armed.booleanisEditable()Gets the value of the property editable.booleanisShowing()Gets the value of the property showing.ObjectProperty<EventHandler<ActionEvent>>onActionProperty()The ComboBox action, which is invoked whenever the ComboBoxvalueproperty is changed.ObjectProperty<EventHandler<Event>>onHiddenProperty()Called just after theComboBoxBasepopup/display has been hidden.ObjectProperty<EventHandler<Event>>onHidingProperty()Called just prior to theComboBoxpopup/display being hidden.ObjectProperty<EventHandler<Event>>onShowingProperty()Called just prior to theComboBoxBasepopup/display being shown.ObjectProperty<EventHandler<Event>>onShownProperty()Called just after theComboBoxBasepopup/display is shown.StringPropertypromptTextProperty()TheComboBoxprompt text to display, ornullif no prompt text is displayed.ObjectqueryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters)This method is called by the assistive technology to request the value for an attribute.voidsetEditable(boolean value)Sets the value of the property editable.voidsetOnAction(EventHandler<ActionEvent> value)Sets the value of the property onAction.voidsetOnHidden(EventHandler<Event> value)Sets the value of the property onHidden.voidsetOnHiding(EventHandler<Event> value)Sets the value of the property onHiding.voidsetOnShowing(EventHandler<Event> value)Sets the value of the property onShowing.voidsetOnShown(EventHandler<Event> value)Sets the value of the property onShown.voidsetPromptText(String value)Sets the value of the property promptText.voidsetValue(T value)Sets the value of the property value.voidshow()Requests that the ComboBox display the popup aspect of the user interface.ReadOnlyBooleanPropertyshowingProperty()Represents the current state of the ComboBox popup, and whether it is currently visible on screen (although it may be hidden behind other windows).ObjectProperty<T>valueProperty()The value of this ComboBox is defined as the selected item if the input is not editable, or if it is editable, the most recent user action: either the value input by the user, or the last selected item.- 
Methods inherited from class javafx.scene.control.ControlcomputeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty
 - 
Methods inherited from class javafx.scene.layout.RegionbackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty
 - 
Methods inherited from class javafx.scene.ParentgetChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
 - 
Methods inherited from class javafx.scene.NodeaccessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface javafx.css.StyleablegetStyleableNode
 
- 
 
- 
- 
- 
Property Detail- 
valuepublic ObjectProperty<T> valueProperty The value of this ComboBox is defined as the selected item if the input is not editable, or if it is editable, the most recent user action: either the value input by the user, or the last selected item.- See Also:
- getValue(),- setValue(T)
 
 - 
editablepublic BooleanProperty editableProperty Specifies whether the ComboBox allows for user input. When editable is true, the ComboBox has a text input area that a user may type in to. This input is then available via thevalueproperty.Note that when the editable property changes, the value property is reset, along with any other relevant state. - See Also:
- isEditable(),- setEditable(boolean)
 
 - 
showingpublic ReadOnlyBooleanProperty showingProperty Represents the current state of the ComboBox popup, and whether it is currently visible on screen (although it may be hidden behind other windows).- See Also:
- isShowing()
 
 - 
promptTextpublic final StringProperty promptTextProperty TheComboBoxprompt text to display, ornullif no prompt text is displayed. Prompt text is not displayed in all circumstances, it is dependent upon the subclasses of ComboBoxBase to clarify when promptText will be shown. For example, in most cases prompt text will never be shown when a combo box is non-editable (that is, prompt text is only shown when user input is allowed via text input).- See Also:
- getPromptText(),- setPromptText(String)
 
 - 
armedpublic BooleanProperty armedProperty Indicates that the ComboBox has been "armed" such that a mouse release will cause the ComboBoxshow()method to be invoked. This is subtly different from pressed. Pressed indicates that the mouse has been pressed on a Node and has not yet been released.armhowever also takes into account whether the mouse is actually over the ComboBox and pressed.- See Also:
- isArmed()
 
 - 
onActionpublic final ObjectProperty<EventHandler<ActionEvent>> onActionProperty The ComboBox action, which is invoked whenever the ComboBoxvalueproperty is changed. This may be due to the value property being programmatically changed, when the user selects an item in a popup list or dialog, or, in the case ofeditableComboBoxes, it may be when the user provides their own input (be that via aTextFieldor some other input mechanism.- See Also:
- getOnAction(),- setOnAction(EventHandler)
 
 - 
onShowingpublic final ObjectProperty<EventHandler<Event>> onShowingProperty Called just prior to theComboBoxBasepopup/display being shown.- Since:
- JavaFX 2.2
- See Also:
- getOnShowing(),- setOnShowing(EventHandler)
 
 - 
onShownpublic final ObjectProperty<EventHandler<Event>> onShownProperty Called just after theComboBoxBasepopup/display is shown.- Since:
- JavaFX 2.2
- See Also:
- getOnShown(),- setOnShown(EventHandler)
 
 - 
onHidingpublic final ObjectProperty<EventHandler<Event>> onHidingProperty Called just prior to theComboBoxpopup/display being hidden.- Since:
- JavaFX 2.2
- See Also:
- getOnHiding(),- setOnHiding(EventHandler)
 
 - 
onHiddenpublic final ObjectProperty<EventHandler<Event>> onHiddenProperty Called just after theComboBoxBasepopup/display has been hidden.- Since:
- JavaFX 2.2
- See Also:
- getOnHidden(),- setOnHidden(EventHandler)
 
 
- 
 - 
Field Detail- 
ON_SHOWINGpublic static final EventType<Event> ON_SHOWING Called prior to the ComboBox showing its popup/display after the user has clicked or otherwise interacted with the ComboBox. - Since:
- JavaFX 2.2
 
 - 
ON_SHOWNpublic static final EventType<Event> ON_SHOWN Called after the ComboBox has shown its popup/display. - Since:
- JavaFX 2.2
 
 - 
ON_HIDINGpublic static final EventType<Event> ON_HIDING Called when the ComboBox popup/display will be hidden. - Since:
- JavaFX 2.2
 
 
- 
 - 
Method Detail- 
valuePropertypublic ObjectProperty<T> valueProperty() The value of this ComboBox is defined as the selected item if the input is not editable, or if it is editable, the most recent user action: either the value input by the user, or the last selected item.- See Also:
- getValue(),- setValue(T)
 
 - 
setValuepublic final void setValue(T value) Sets the value of the property value.- Property description:
- The value of this ComboBox is defined as the selected item if the input is not editable, or if it is editable, the most recent user action: either the value input by the user, or the last selected item.
 
 - 
getValuepublic final T getValue() Gets the value of the property value.- Property description:
- The value of this ComboBox is defined as the selected item if the input is not editable, or if it is editable, the most recent user action: either the value input by the user, or the last selected item.
 
 - 
editablePropertypublic BooleanProperty editableProperty() Specifies whether the ComboBox allows for user input. When editable is true, the ComboBox has a text input area that a user may type in to. This input is then available via thevalueproperty.Note that when the editable property changes, the value property is reset, along with any other relevant state. - See Also:
- isEditable(),- setEditable(boolean)
 
 - 
setEditablepublic final void setEditable(boolean value) Sets the value of the property editable.- Property description:
- Specifies whether the ComboBox allows for user input. When editable is
 true, the ComboBox has a text input area that a user may type in to. This
 input is then available via the valueproperty.Note that when the editable property changes, the value property is reset, along with any other relevant state. 
 
 - 
isEditablepublic final boolean isEditable() Gets the value of the property editable.- Property description:
- Specifies whether the ComboBox allows for user input. When editable is
 true, the ComboBox has a text input area that a user may type in to. This
 input is then available via the valueproperty.Note that when the editable property changes, the value property is reset, along with any other relevant state. 
 
 - 
showingPropertypublic ReadOnlyBooleanProperty showingProperty() Represents the current state of the ComboBox popup, and whether it is currently visible on screen (although it may be hidden behind other windows).- See Also:
- isShowing()
 
 - 
isShowingpublic final boolean isShowing() Gets the value of the property showing.- Property description:
- Represents the current state of the ComboBox popup, and whether it is currently visible on screen (although it may be hidden behind other windows).
 
 - 
promptTextPropertypublic final StringProperty promptTextProperty() TheComboBoxprompt text to display, ornullif no prompt text is displayed. Prompt text is not displayed in all circumstances, it is dependent upon the subclasses of ComboBoxBase to clarify when promptText will be shown. For example, in most cases prompt text will never be shown when a combo box is non-editable (that is, prompt text is only shown when user input is allowed via text input).- See Also:
- getPromptText(),- setPromptText(String)
 
 - 
getPromptTextpublic final String getPromptText() Gets the value of the property promptText.- Property description:
- The ComboBoxprompt text to display, ornullif no prompt text is displayed. Prompt text is not displayed in all circumstances, it is dependent upon the subclasses of ComboBoxBase to clarify when promptText will be shown. For example, in most cases prompt text will never be shown when a combo box is non-editable (that is, prompt text is only shown when user input is allowed via text input).
 
 - 
setPromptTextpublic final void setPromptText(String value) Sets the value of the property promptText.- Property description:
- The ComboBoxprompt text to display, ornullif no prompt text is displayed. Prompt text is not displayed in all circumstances, it is dependent upon the subclasses of ComboBoxBase to clarify when promptText will be shown. For example, in most cases prompt text will never be shown when a combo box is non-editable (that is, prompt text is only shown when user input is allowed via text input).
 
 - 
armedPropertypublic BooleanProperty armedProperty() Indicates that the ComboBox has been "armed" such that a mouse release will cause the ComboBoxshow()method to be invoked. This is subtly different from pressed. Pressed indicates that the mouse has been pressed on a Node and has not yet been released.armhowever also takes into account whether the mouse is actually over the ComboBox and pressed.- See Also:
- isArmed()
 
 - 
isArmedpublic final boolean isArmed() Gets the value of the property armed.- Property description:
- Indicates that the ComboBox has been "armed" such that a mouse release
 will cause the ComboBox show()method to be invoked. This is subtly different from pressed. Pressed indicates that the mouse has been pressed on a Node and has not yet been released.armhowever also takes into account whether the mouse is actually over the ComboBox and pressed.
 
 - 
onActionPropertypublic final ObjectProperty<EventHandler<ActionEvent>> onActionProperty() The ComboBox action, which is invoked whenever the ComboBoxvalueproperty is changed. This may be due to the value property being programmatically changed, when the user selects an item in a popup list or dialog, or, in the case ofeditableComboBoxes, it may be when the user provides their own input (be that via aTextFieldor some other input mechanism.- See Also:
- getOnAction(),- setOnAction(EventHandler)
 
 - 
setOnActionpublic final void setOnAction(EventHandler<ActionEvent> value) Sets the value of the property onAction.- Property description:
- The ComboBox action, which is invoked whenever the ComboBox
 valueproperty is changed. This may be due to the value property being programmatically changed, when the user selects an item in a popup list or dialog, or, in the case ofeditableComboBoxes, it may be when the user provides their own input (be that via aTextFieldor some other input mechanism.
 
 - 
getOnActionpublic final EventHandler<ActionEvent> getOnAction() Gets the value of the property onAction.- Property description:
- The ComboBox action, which is invoked whenever the ComboBox
 valueproperty is changed. This may be due to the value property being programmatically changed, when the user selects an item in a popup list or dialog, or, in the case ofeditableComboBoxes, it may be when the user provides their own input (be that via aTextFieldor some other input mechanism.
 
 - 
onShowingPropertypublic final ObjectProperty<EventHandler<Event>> onShowingProperty() Called just prior to theComboBoxBasepopup/display being shown.- Since:
- JavaFX 2.2
- See Also:
- getOnShowing(),- setOnShowing(EventHandler)
 
 - 
setOnShowingpublic final void setOnShowing(EventHandler<Event> value) Sets the value of the property onShowing.- Property description:
- Called just prior to the ComboBoxBasepopup/display being shown.
- Since:
- JavaFX 2.2
 
 - 
getOnShowingpublic final EventHandler<Event> getOnShowing() Gets the value of the property onShowing.- Property description:
- Called just prior to the ComboBoxBasepopup/display being shown.
- Since:
- JavaFX 2.2
 
 - 
onShownPropertypublic final ObjectProperty<EventHandler<Event>> onShownProperty() Called just after theComboBoxBasepopup/display is shown.- Since:
- JavaFX 2.2
- See Also:
- getOnShown(),- setOnShown(EventHandler)
 
 - 
setOnShownpublic final void setOnShown(EventHandler<Event> value) Sets the value of the property onShown.- Property description:
- Called just after the ComboBoxBasepopup/display is shown.
- Since:
- JavaFX 2.2
 
 - 
getOnShownpublic final EventHandler<Event> getOnShown() Gets the value of the property onShown.- Property description:
- Called just after the ComboBoxBasepopup/display is shown.
- Since:
- JavaFX 2.2
 
 - 
onHidingPropertypublic final ObjectProperty<EventHandler<Event>> onHidingProperty() Called just prior to theComboBoxpopup/display being hidden.- Since:
- JavaFX 2.2
- See Also:
- getOnHiding(),- setOnHiding(EventHandler)
 
 - 
setOnHidingpublic final void setOnHiding(EventHandler<Event> value) Sets the value of the property onHiding.- Property description:
- Called just prior to the ComboBoxpopup/display being hidden.
- Since:
- JavaFX 2.2
 
 - 
getOnHidingpublic final EventHandler<Event> getOnHiding() Gets the value of the property onHiding.- Property description:
- Called just prior to the ComboBoxpopup/display being hidden.
- Since:
- JavaFX 2.2
 
 - 
onHiddenPropertypublic final ObjectProperty<EventHandler<Event>> onHiddenProperty() Called just after theComboBoxBasepopup/display has been hidden.- Since:
- JavaFX 2.2
- See Also:
- getOnHidden(),- setOnHidden(EventHandler)
 
 - 
setOnHiddenpublic final void setOnHidden(EventHandler<Event> value) Sets the value of the property onHidden.- Property description:
- Called just after the ComboBoxBasepopup/display has been hidden.
- Since:
- JavaFX 2.2
 
 - 
getOnHiddenpublic final EventHandler<Event> getOnHidden() Gets the value of the property onHidden.- Property description:
- Called just after the ComboBoxBasepopup/display has been hidden.
- Since:
- JavaFX 2.2
 
 - 
showpublic void show() Requests that the ComboBox display the popup aspect of the user interface. As mentioned in theComboBoxBaseclass javadoc, what is actually shown when this method is called is undefined, but commonly it is some form of popup or dialog window.
 - 
hidepublic void hide() Closes the popup / dialog that was shown whenshow()was called.
 - 
armpublic void arm() Arms the ComboBox. An armed ComboBox will show a popup list on the next expected UI gesture. Note: This function is intended to be used by experts, primarily by those implementing new Skins or Behaviors. It is not common for developers or designers to access this function directly.
 - 
disarmpublic void disarm() Disarms the ComboBox. Seearm(). Note: This function is intended to be used by experts, primarily by those implementing new Skins or Behaviors. It is not common for developers or designers to access this function directly.
 - 
queryAccessibleAttributepublic Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) This method is called by the assistive technology to request the value for an attribute.This method is commonly overridden by subclasses to implement attributes that are required for a specific role. 
 If a particular attribute is not handled, the superclass implementation must be called.- Overrides:
- queryAccessibleAttributein class- Control
- Parameters:
- attribute- the requested attribute
- parameters- optional list of parameters
- Returns:
- the value for the requested attribute
- See Also:
- AccessibleAttribute
 
 - 
executeAccessibleActionpublic void executeAccessibleAction(AccessibleAction action, Object... parameters) This method is called by the assistive technology to request the action indicated by the argument should be executed.This method is commonly overridden by subclasses to implement action that are required for a specific role. 
 If a particular action is not handled, the superclass implementation must be called.- Overrides:
- executeAccessibleActionin class- Control
- Parameters:
- action- the action to execute
- parameters- optional list of parameters
- See Also:
- AccessibleAction
 
 
- 
 
-