Class CustomComboBoxSkinBase<T extends javafx.scene.control.ComboBoxBase>
java.lang.Object
javafx.scene.control.SkinBase<T>
com.dlsc.gemsfx.skins.GemsSkinBase<T>
com.dlsc.gemsfx.skins.CustomComboBoxSkinBase<T>
- Type Parameters:
T- the combo-box control type rendered by this skin
- All Implemented Interfaces:
javafx.scene.control.Skin<T>
- Direct Known Subclasses:
ToggleVisibilityComboBoxSkin
public abstract class CustomComboBoxSkinBase<T extends javafx.scene.control.ComboBoxBase>
extends GemsSkinBase<T>
Base skin for custom combo-box controls with popup content.
The skin manages a PopupControl, sizes and positions it relative to
the skinnable combo box, and delegates creation of the popup node to
subclasses.
-
Constructor Summary
ConstructorsConstructorDescriptionCustomComboBoxSkinBase(T control) Creates a skin for the given combo-box control. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract javafx.scene.NodeReturns the content node shown inside the popup.voidhide()Hides the popup if it is currently showing.protected voidpopupOnAutoHide(javafx.event.Event event) Handles popup auto-hide events.voidshow()Shows the popup and requests focus for its content.Methods inherited from class GemsSkinBase
dispose, register, register, register, register, registerFilter, registerHandlerMethods inherited from class javafx.scene.control.SkinBase
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutChildren, 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
-
CustomComboBoxSkinBase
Creates a skin for the given combo-box control.- Parameters:
control- the combo-box control rendered by this skin
-
-
Method Details
-
getPopupContent
protected abstract javafx.scene.Node getPopupContent()Returns the content node shown inside the popup.- Returns:
- the popup content node
-
popupOnAutoHide
protected void popupOnAutoHide(javafx.event.Event event) Handles popup auto-hide events.- Parameters:
event- the auto-hide event
-
show
public void show()Shows the popup and requests focus for its content. -
hide
public void hide()Hides the popup if it is currently showing.
-