ChoiceBox control.
ChoiceBox
| Modifier and Type | Field and Description |
|---|---|
| private final BehaviorBase | |
| private ObservableList | |
| private final ListChangeListener | |
| private final InvalidationListener | |
| private Label | |
| private StackPane | |
| private ContextMenu | |
| private InvalidationListener | |
| private SelectionModel | |
| private final ToggleGroup | |
| private final WeakListChangeListener |
| Access | Constructor and Description |
|---|---|
| public | ChoiceBoxSkin(ChoiceBox<T>
The control that this skin should be installed onto. control)Creates a new ChoiceBoxSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| 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 |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| pack-priv ContextMenu | |
| pack-priv String | |
| private String | |
| private void | |
| 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. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void |
| behavior | back to summary |
|---|---|
| private final BehaviorBase<ChoiceBox<T>> behavior | |
| choiceBoxItems | back to summary |
|---|---|
| private ObservableList<T> choiceBoxItems | |
| choiceBoxItemsListener | back to summary |
|---|---|
| private final ListChangeListener<T> choiceBoxItemsListener | |
| itemsObserver | back to summary |
|---|---|
| private final InvalidationListener itemsObserver | |
| label | back to summary |
|---|---|
| private Label label | |
| openButton | back to summary |
|---|---|
| private StackPane openButton | |
| popup | back to summary |
|---|---|
| private ContextMenu popup | |
| selectionChangeListener | back to summary |
|---|---|
| private InvalidationListener selectionChangeListener | |
| selectionModel | back to summary |
|---|---|
| private SelectionModel<T> selectionModel | |
| toggleGroup | back to summary |
|---|---|
| private final ToggleGroup toggleGroup | |
| weakChoiceBoxItemsListener | back to summary |
|---|---|
| private final WeakListChangeListener<T> weakChoiceBoxItemsListener | |
| ChoiceBoxSkin | back to summary |
|---|---|
| public ChoiceBoxSkin(ChoiceBox<T> control) Creates a new ChoiceBoxSkin instance, installing the necessary child
nodes into the Control
| |
| addPopupItem | back to summary |
|---|---|
| private void addPopupItem(final T o, int i) | |
| 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
| |
| 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
| |
| getChoiceBoxPopup | back to summary |
|---|---|
| pack-priv ContextMenu getChoiceBoxPopup() | |
| getChoiceBoxSelectedText | back to summary |
|---|---|
| pack-priv String getChoiceBoxSelectedText() | |
| getDisplayText | back to summary |
|---|---|
| private String getDisplayText(T value) | |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| 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.
| |
| updateChoiceBoxItems | back to summary |
|---|---|
| private void updateChoiceBoxItems() | |
| updateLabelText | back to summary |
|---|---|
| private void updateLabelText() | |
| updatePopupItems | back to summary |
|---|---|
| private void updatePopupItems() | |
| updateSelection | back to summary |
|---|---|
| private void updateSelection() | |
| updateSelectionModel | back to summary |
|---|---|
| private void updateSelectionModel() | |