Class SelectionBoxSkin<T>
java.lang.Object
javafx.scene.control.SkinBase<SelectionBox<T>>
- Type Parameters:
T- the item type
- All Implemented Interfaces:
javafx.scene.control.Skin<SelectionBox<T>>
Skin for
SelectionBox.
The skin renders the selected item text and arrow button, and manages a popup containing check boxes or radio buttons depending on the selection mode.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectionBoxSkin(SelectionBox<T> control) Creates a new skin for the given selection box. -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecomputeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) protected doublecomputePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) voidHides the selection popup.protected voidlayoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) voidShows the selection popup when the control is interactive.voidUpdates the display label from the current selection and converters.Methods inherited from class GemsSkinBase
dispose, register, register, register, register, registerFilter, registerHandlerMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListeners
-
Constructor Details
-
SelectionBoxSkin
Creates a new skin for the given selection box.- Parameters:
control- the selection box to skin
-
-
Method Details
-
showPopup
public void showPopup()Shows the selection popup when the control is interactive. -
hidePopup
public void hidePopup()Hides the selection popup. -
updateDisplayLabelText
public void updateDisplayLabelText()Updates the display label from the current selection and converters. -
computeMinHeight
protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinHeightin classjavafx.scene.control.SkinBase<SelectionBox<T>>
-
computeMinWidth
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMinWidthin classjavafx.scene.control.SkinBase<SelectionBox<T>>
-
computeMaxWidth
protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxWidthin classjavafx.scene.control.SkinBase<SelectionBox<T>>
-
computeMaxHeight
protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computeMaxHeightin classjavafx.scene.control.SkinBase<SelectionBox<T>>
-
computePrefWidth
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefWidthin classjavafx.scene.control.SkinBase<SelectionBox<T>>
-
computePrefHeight
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) - Overrides:
computePrefHeightin classjavafx.scene.control.SkinBase<SelectionBox<T>>
-
layoutChildren
protected void layoutChildren(double contentX, double contentY, double contentWidth, double contentHeight) - Overrides:
layoutChildrenin classjavafx.scene.control.SkinBase<SelectionBox<T>>
-