ComboBox control.
ComboBox
| Modifier and Type | Field and Description |
|---|---|
| private final ComboBoxListViewBehavior | |
| private ListCell | |
| private Callback | |
| private static final String | |
| private final ComboBox | |
| private ObservableList | |
| private final BooleanProperty | hideOnClick
By default this skin hides the popup whenever the ListView is clicked in. By setting hideOnClick to false, the popup will not be hidden when the ListView is clicked in. This is beneficial in some scenarios (for example, when the ListView cells have checkboxes). |
| private boolean | |
| private boolean | |
| private final ListView | |
| private ObservableList | |
| private final ListChangeListener | |
| private boolean | |
| private static final PseudoClass | |
| private static final PseudoClass | |
| private static final PseudoClass | |
| private IDisconnectable | |
| private final WeakListChangeListener |
| Access | Constructor and Description |
|---|---|
| public | ComboBoxListViewSkin(final ComboBox<T>
The control that this skin should be installed onto. control)Creates a new ComboBoxListViewSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double
The width of the Skin, in case this value might dictate
the maximum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the maximum allowable height of the Skin, based on the provided width. |
| protected double | computeMaxWidth(double
The height of the Skin, in case this value might dictate
the maximum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the maximum allowable width of the Skin, based on the provided height. |
| protected double | computeMinHeight(double
The width of the Skin, in case this value might dictate
the minimum height. width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double
The height of the Skin, in case this value might dictate
the minimum width. height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double
the width that should be used if preferred height depends on it width, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends on it height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred width of this |
| private ListView | |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| pack-priv ComboBoxBaseBehavior | |
| protected StringConverter | getConverter()
Implements abstract javafx. Subclasses are responsible for getting the converter. |
| private Callback | |
| public Node | getDisplayNode()
Implements abstract javafx. This method should return a Node that will be positioned within the ComboBox 'button' area. |
| protected TextField | getEditor()
Implements abstract javafx. Subclasses are responsible for getting the editor. |
| private int | |
| pack-priv ListView | |
| private double | |
| public Node | getPopupContent()
Implements abstract javafx. This method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area. |
| public final BooleanProperty | |
| public final boolean | |
| protected void | layoutChildren(final double
the x position x, final double the y position y, final double the width w, final double the height h)Overrides javafx. Called during the layout pass of the scenegraph. |
| public Object | queryAccessibleAttribute(AccessibleAttribute
the requested attribute attribute, Object... optional list of parameters parameters)Overrides javafx. This method is called by the assistive technology to request the value for an attribute. |
| public final void | |
| private void | |
| private void | |
| private void | |
| pack-priv void | |
| private boolean | |
| private void | |
| private void |
| behavior | back to summary |
|---|---|
| private final ComboBoxListViewBehavior<T> behavior | |
| buttonCell | back to summary |
|---|---|
| private ListCell<T> buttonCell | |
| cellFactory | back to summary |
|---|---|
| private Callback<ListView<T>, ListCell<T>> cellFactory | |
| COMBO_BOX_ROWS_TO_MEASURE_WIDTH_KEY | back to summary |
|---|---|
| private static final String COMBO_BOX_ROWS_TO_MEASURE_WIDTH_KEY | |
| comboBox | back to summary |
|---|---|
| private final ComboBox<T> comboBox | |
| comboBoxItems | back to summary |
|---|---|
| private ObservableList<T> comboBoxItems | |
| hideOnClick | back to summary |
|---|---|
| private final BooleanProperty hideOnClick By default this skin hides the popup whenever the ListView is clicked in. By setting hideOnClick to false, the popup will not be hidden when the ListView is clicked in. This is beneficial in some scenarios (for example, when the ListView cells have checkboxes). | |
| itemCountDirty | back to summary |
|---|---|
| private boolean itemCountDirty | |
| listSelectionLock | back to summary |
|---|---|
| private boolean listSelectionLock | |
| listView | back to summary |
|---|---|
| private final ListView<T> listView | |
| listViewItems | back to summary |
|---|---|
| private ObservableList<T> listViewItems | |
| listViewItemsListener | back to summary |
|---|---|
| private final ListChangeListener<T> listViewItemsListener | |
| listViewSelectionDirty | back to summary |
|---|---|
| private boolean listViewSelectionDirty | |
| PSEUDO_CLASS_EMPTY | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_EMPTY | |
| PSEUDO_CLASS_FILLED | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_FILLED | |
| PSEUDO_CLASS_SELECTED | back to summary |
|---|---|
| private static final PseudoClass PSEUDO_CLASS_SELECTED | |
| selectedItemWatcher | back to summary |
|---|---|
| private IDisconnectable selectedItemWatcher | |
| weakListViewItemsListener | back to summary |
|---|---|
| private final WeakListChangeListener<T> weakListViewItemsListener | |
| ComboBoxListViewSkin | back to summary |
|---|---|
| public ComboBoxListViewSkin(final ComboBox<T> control) Creates a new ComboBoxListViewSkin instance, installing the necessary child
nodes into the Control
| |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable height of the Skin, based on the provided width.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the maximum allowable width of the Skin, based on the provided height.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable width of the Skin, based on the provided height.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| createListView | back to summary |
|---|---|
| private ListView | |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| getBehavior | back to summary |
|---|---|
| pack-priv ComboBoxBaseBehavior Overrides javafx.
| |
| getConverter | back to summary |
|---|---|
| protected StringConverter Implements abstract javafx. Doc from javafx. Subclasses are responsible for getting the converter. This will be removed in FX 9 when the converter property is moved up to ComboBoxBase with JDK-8130354.
| |
| getDefaultCellFactory | back to summary |
|---|---|
| private Callback | |
| getDisplayNode | back to summary |
|---|---|
| public Node getDisplayNode() Implements abstract javafx. Doc from javafx. This method should return a Node that will be positioned within the ComboBox 'button' area. | |
| getEditor | back to summary |
|---|---|
| protected TextField getEditor() Implements abstract javafx. Doc from javafx. Subclasses are responsible for getting the editor. This will be removed in FX 9 when the editor property is moved up to ComboBoxBase with JDK-8130354 Note: ComboBoxListViewSkin should return null if editable is false, even if the ComboBox does have an editor set. | |
| getIndexOfComboBoxValueInItemsList | back to summary |
|---|---|
| private int getIndexOfComboBoxValueInItemsList() | |
| getListView | back to summary |
|---|---|
| pack-priv ListView | |
| getListViewPrefHeight | back to summary |
|---|---|
| private double getListViewPrefHeight() | |
| getPopupContent | back to summary |
|---|---|
| public Node getPopupContent() Implements abstract javafx. Doc from javafx. This method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area. | |
| hideOnClickProperty | back to summary |
|---|---|
| public final BooleanProperty hideOnClickProperty() | |
| isHideOnClick | back to summary |
|---|---|
| public final boolean isHideOnClick() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| queryAccessibleAttribute | back to summary |
|---|---|
| public Object queryAccessibleAttribute(AccessibleAttribute attribute, Object... parameters) Overrides javafx. Doc from javafx. 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.
| |
| setHideOnClick | back to summary |
|---|---|
| public final void setHideOnClick(boolean value) | |
| updateButtonCell | back to summary |
|---|---|
| private void updateButtonCell() | |
| updateCellFactory | back to summary |
|---|---|
| private void updateCellFactory() | |
| updateComboBoxItems | back to summary |
|---|---|
| private void updateComboBoxItems() | |
| updateDisplayNode | back to summary |
|---|---|
| pack-priv void updateDisplayNode() Overrides javafx.
| |
| updateDisplayText | back to summary |
|---|---|
| private boolean updateDisplayText(ListCell<T> cell, T item, boolean empty) | |
| updateListViewItems | back to summary |
|---|---|
| private void updateListViewItems() | |
| updateValue | back to summary |
|---|---|
| private void updateValue() | |