public class SpinnerSkin<T>
extends <any>
Spinner
control.Spinner
Modifier and Type | Field and Description |
---|---|
private static int |
ARROWS_ON_LEFT_HORIZONTAL |
private static int |
ARROWS_ON_LEFT_VERTICAL |
private static int |
ARROWS_ON_RIGHT_HORIZONTAL |
private static int |
ARROWS_ON_RIGHT_VERTICAL |
private SpinnerBehavior |
behavior |
private static PseudoClass |
CONTAINS_FOCUS_PSEUDOCLASS_STATE
*
Stylesheet Handling *
*
|
private Region |
decrementArrow |
private StackPane |
decrementArrowButton |
private Region |
incrementArrow |
private StackPane |
incrementArrowButton |
private int |
layoutMode |
private static int |
SPLIT_ARROWS_HORIZONTAL |
private static int |
SPLIT_ARROWS_VERTICAL |
private TextField |
textField
*
Private fields *
*
|
Constructor and Description |
---|
SpinnerSkin(<any> control)
Creates a new SpinnerSkin instance, installing the necessary child
nodes into the Control
children list, as
well as the necessary input mappings for handling key, mouse, etc events. |
Modifier and Type | Method and Description |
---|---|
protected double |
computeBaselineOffset(double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMaxHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMaxWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
void |
dispose() |
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
private void |
updateStyleClass()
*
Private implementation *
*
|
private TextField textField
private Region incrementArrow
private StackPane incrementArrowButton
private Region decrementArrow
private StackPane decrementArrowButton
private static final int ARROWS_ON_RIGHT_VERTICAL
private static final int ARROWS_ON_LEFT_VERTICAL
private static final int ARROWS_ON_RIGHT_HORIZONTAL
private static final int ARROWS_ON_LEFT_HORIZONTAL
private static final int SPLIT_ARROWS_VERTICAL
private static final int SPLIT_ARROWS_HORIZONTAL
private int layoutMode
private final SpinnerBehavior behavior
private static PseudoClass CONTAINS_FOCUS_PSEUDOCLASS_STATE
public SpinnerSkin(<any> control)
children
list, as
well as the necessary input mappings for handling key, mouse, etc events.control
- The control that this skin should be installed onto.public void dispose()
protected void layoutChildren(double x, double y, double w, double h)
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
protected double computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset)
private void updateStyleClass()