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

    Constructors
    Constructor
    Description
    Creates a skin for the given combo-box control.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected abstract javafx.scene.Node
    Returns the content node shown inside the popup.
    void
    Hides the popup if it is currently showing.
    protected void
    popupOnAutoHide(javafx.event.Event event)
    Handles popup auto-hide events.
    void
    Shows the popup and requests focus for its content.

    Methods 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

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CustomComboBoxSkinBase

      public CustomComboBoxSkinBase(T control)
      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.