Spinner control.
Spinner
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv final SpinnerBehavior | |
| private static PseudoClass | |
| private Region | |
| private StackPane | |
| private Region | |
| private StackPane | |
| private int | |
| private static final int | |
| private static final int | |
| private TextField |
| Access | Constructor and Description |
|---|---|
| public | SpinnerSkin(Spinner<T>
The control that this skin should be installed onto. control)Creates a new SpinnerSkin instance, installing the necessary child
nodes into the Control |
| 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 | 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. |
| public 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. |
| private void |
| ARROWS_ON_LEFT_HORIZONTAL | back to summary |
|---|---|
| private static final int ARROWS_ON_LEFT_HORIZONTAL | |
| ARROWS_ON_LEFT_VERTICAL | back to summary |
|---|---|
| private static final int ARROWS_ON_LEFT_VERTICAL | |
| ARROWS_ON_RIGHT_HORIZONTAL | back to summary |
|---|---|
| private static final int ARROWS_ON_RIGHT_HORIZONTAL | |
| ARROWS_ON_RIGHT_VERTICAL | back to summary |
|---|---|
| private static final int ARROWS_ON_RIGHT_VERTICAL | |
| behavior | back to summary |
|---|---|
| pack-priv final SpinnerBehavior<T> behavior | |
| CONTAINS_FOCUS_PSEUDOCLASS_STATE | back to summary |
|---|---|
| private static PseudoClass CONTAINS_FOCUS_PSEUDOCLASS_STATE | |
| decrementArrow | back to summary |
|---|---|
| private Region decrementArrow | |
| decrementArrowButton | back to summary |
|---|---|
| private StackPane decrementArrowButton | |
| incrementArrow | back to summary |
|---|---|
| private Region incrementArrow | |
| incrementArrowButton | back to summary |
|---|---|
| private StackPane incrementArrowButton | |
| layoutMode | back to summary |
|---|---|
| private int layoutMode | |
| SPLIT_ARROWS_HORIZONTAL | back to summary |
|---|---|
| private static final int SPLIT_ARROWS_HORIZONTAL | |
| SPLIT_ARROWS_VERTICAL | back to summary |
|---|---|
| private static final int SPLIT_ARROWS_VERTICAL | |
| textField | back to summary |
|---|---|
| private TextField textField | |
| SpinnerSkin | back to summary |
|---|---|
| public SpinnerSkin(Spinner<T> control) Creates a new SpinnerSkin instance, installing the necessary child
nodes into the Control
| |
| 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.
| |
| 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
| |
| install | back to summary |
|---|---|
| public void install() Overrides default javafx. Doc from javafx. Called once when Application code must not call this method. The default implementation of this method does nothing.
| |
| isIncDecKeyEvent | back to summary |
|---|---|
| private boolean isIncDecKeyEvent(KeyEvent ke) | |
| 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.
| |
| updateStyleClass | back to summary |
|---|---|
| private void updateStyleClass() | |