ComboBoxBase. Most users of this skin class
would be well-advised to also look at ComboBoxPopupControl for
additional useful API.
ComboBoxBase, ComboBoxPopupControl
| Modifier and Type | Field and Description |
|---|---|
| pack-priv Region | |
| pack-priv StackPane | |
| private Node | |
| private ComboBoxMode | mode
The mode in which this control will be represented. |
| private final EventHandler | |
| private final EventHandler | |
| private final EventHandler | |
| private final EventHandler |
| Access | Constructor and Description |
|---|---|
| public | ComboBoxBaseSkin(final ComboBoxBase<T>
The control that this skin should be installed onto. control)Creates a new instance of ComboBoxBaseSkin, although note that this instance does not handle any behavior / input mappings - this needs to be handled appropriately by subclasses. |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeBaselineOffset(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 baseline offset based on the first managed child. |
| 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 | 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 |
| pack-priv void | |
| pack-priv ComboBoxBaseBehavior | |
| public abstract Node | Returns: the node that will be positioned within the ComboBox 'button' areaThis method should return a Node that will be positioned within the ComboBox 'button' area. |
| pack-priv final ComboBoxMode | |
| public abstract void | |
| private 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. |
| pack-priv final void | |
| public abstract void | |
| private void | |
| pack-priv void |
| arrow | back to summary |
|---|---|
| pack-priv Region arrow | |
| arrowButton | back to summary |
|---|---|
| pack-priv StackPane arrowButton | |
| displayNode | back to summary |
|---|---|
| private Node displayNode | |
| mode | back to summary |
|---|---|
| private ComboBoxMode mode The mode in which this control will be represented. | |
| mouseEnteredEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mouseEnteredEventHandler | |
| mouseExitedEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mouseExitedEventHandler | |
| mousePressedEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mousePressedEventHandler | |
| mouseReleasedEventHandler | back to summary |
|---|---|
| private final EventHandler<MouseEvent> mouseReleasedEventHandler | |
| ComboBoxBaseSkin | back to summary |
|---|---|
| public ComboBoxBaseSkin(final ComboBoxBase<T> control) Creates a new instance of ComboBoxBaseSkin, although note that this instance does not handle any behavior / input mappings - this needs to be handled appropriately by subclasses.
| |
| computeBaselineOffset | back to summary |
|---|---|
| protected double computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the baseline offset based on the first managed child. If there
is no such child, returns
| |
| 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.
| |
| 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
| |
| focusLost | back to summary |
|---|---|
| pack-priv void focusLost() | |
| getBehavior | back to summary |
|---|---|
| pack-priv ComboBoxBaseBehavior | |
| getDisplayNode | back to summary |
|---|---|
| public abstract Node getDisplayNode() This method should return a Node that will be positioned within the ComboBox 'button' area.
| |
| getMode | back to summary |
|---|---|
| pack-priv final ComboBoxMode getMode() | |
| hide | back to summary |
|---|---|
| public abstract void hide() This method will be called when the ComboBox popup should be hidden. It is up to specific skin implementations to determine how this is handled. | |
| isButton | back to summary |
|---|---|
| private boolean isButton() | |
| 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.
| |
| setMode | back to summary |
|---|---|
| pack-priv final void setMode(ComboBoxMode value) | |
| show | back to summary |
|---|---|
| public abstract void show() This method will be called when the ComboBox popup should be displayed. It is up to specific skin implementations to determine how this is handled. | |
| updateArrowButtonListeners | back to summary |
|---|---|
| private void updateArrowButtonListeners() | |
| updateDisplayArea | back to summary |
|---|---|
| pack-priv void updateDisplayArea() | |