public abstract class ComboBoxBaseSkin<T> extends BehaviorSkinBase<ComboBoxBase<T>,ComboBoxBaseBehavior<T>>
Modifier and Type | Field and Description |
---|---|
protected Region |
arrow |
protected StackPane |
arrowButton |
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
ComboBoxBaseSkin(ComboBoxBase<T> comboBox,
ComboBoxBaseBehavior<T> behavior) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeBaselineOffset(double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the baseline offset based on the first managed child.
|
protected double |
computeMaxHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the maximum allowable height of the Skin, based on the provided
width.
|
protected double |
computeMaxWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the maximum allowable width of the Skin, based on the provided
height.
|
protected double |
computePrefHeight(double width,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred height of this
SkinBase . |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred width of this
SkinBase . |
protected void |
focusLost() |
abstract Node |
getDisplayNode()
This method should return a Node that will be positioned within the
ComboBox 'button' area.
|
protected com.sun.javafx.scene.control.skin.ComboBoxMode |
getMode() |
protected void |
handleControlPropertyChanged(String p)
Handles changes to properties of the MenuButton.
|
abstract void |
hide()
This method will be called when the ComboBox popup should be hidden.
|
protected void |
layoutChildren(double x,
double y,
double w,
double h)
Called during the layout pass of the scenegraph.
|
protected void |
setMode(com.sun.javafx.scene.control.skin.ComboBoxMode value) |
abstract void |
show()
This method will be called when the ComboBox popup should be displayed.
|
protected void |
updateDisplayArea() |
dispose, getBehavior, registerChangeListener, unregisterChangeListener
computeMinHeight, computeMinWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
public ComboBoxBaseSkin(ComboBoxBase<T> comboBox, ComboBoxBaseBehavior<T> behavior)
protected final com.sun.javafx.scene.control.skin.ComboBoxMode getMode()
protected final void setMode(com.sun.javafx.scene.control.skin.ComboBoxMode value)
protected void focusLost()
public abstract Node getDisplayNode()
public abstract void show()
public abstract void hide()
protected void handleControlPropertyChanged(String p)
handleControlPropertyChanged
in class BehaviorSkinBase<ComboBoxBase<T>,ComboBoxBaseBehavior<T>>
protected void updateDisplayArea()
protected void layoutChildren(double x, double y, double w, double h)
SkinBase
layoutChildren
in class SkinBase<ComboBoxBase<T>>
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
SkinBase
. The default
implementation calculates this width as the width of the area occupied
by its managed children when they are positioned at their
current positions at their preferred widths.computePrefWidth
in class SkinBase<ComboBoxBase<T>>
height
- the height that should be used if preferred width depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
SkinBase
. The default
implementation calculates this height as the height of the area occupied
by its managed children when they are positioned at their current
positions at their preferred heights.computePrefHeight
in class SkinBase<ComboBoxBase<T>>
width
- the width that should be used if preferred height depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
computeMaxWidth
in class SkinBase<ComboBoxBase<T>>
height
- The height of the Skin, in case this value might dictate
the maximum width.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
computeMaxHeight
in class SkinBase<ComboBoxBase<T>>
width
- The width of the Skin, in case this value might dictate
the maximum height.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected double computeBaselineOffset(double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
Node.getBaselineOffset()
.computeBaselineOffset
in class SkinBase<ComboBoxBase<T>>
topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetCopyright © 2020. All rights reserved.