T
- The type of the ComboBox-like control.public abstract class ComboBoxBaseSkin<T>
extends <any>
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 |
---|---|
(package private) Region |
arrow |
(package private) StackPane |
arrowButton |
private Node |
displayNode
*
Private Fields *
*
|
private ComboBoxMode |
mode
The mode in which this control will be represented.
|
private <any> |
mouseEnteredEventHandler |
private <any> |
mouseExitedEventHandler |
private <any> |
mousePressedEventHandler |
private <any> |
mouseReleasedEventHandler |
Constructor and Description |
---|
ComboBoxBaseSkin(<any> 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 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 |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset) |
(package private) void |
focusLost() |
(package private) ComboBoxBaseBehavior |
getBehavior()
*
Private implementation *
*
|
abstract Node |
getDisplayNode()
This method should return a Node that will be positioned within the
ComboBox 'button' area.
|
(package private) ComboBoxMode |
getMode() |
abstract void |
hide()
This method will be called when the ComboBox popup should be hidden.
|
private boolean |
isButton() |
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
(package private) void |
setMode(ComboBoxMode value) |
abstract void |
show()
This method will be called when the ComboBox popup should be displayed.
|
private void |
updateArrowButtonListeners() |
(package private) void |
updateDisplayArea() |
private Node displayNode
StackPane arrowButton
Region arrow
private ComboBoxMode mode
private final <any> mouseEnteredEventHandler
private final <any> mousePressedEventHandler
private final <any> mouseReleasedEventHandler
private final <any> mouseExitedEventHandler
public ComboBoxBaseSkin(<any> control)
control
- The control that this skin should be installed onto.final ComboBoxMode getMode()
final void setMode(ComboBoxMode value)
public abstract Node getDisplayNode()
public abstract void show()
public abstract void hide()
protected void layoutChildren(double x, double y, double w, double h)
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)
ComboBoxBaseBehavior getBehavior()
void focusLost()
private boolean isButton()
private void updateArrowButtonListeners()
void updateDisplayArea()