Class ToggleVisibilityComboBoxSkin<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>
com.dlsc.gemsfx.skins.ToggleVisibilityComboBoxSkin<T>
Type Parameters:
T - the combo-box control type
All Implemented Interfaces:
javafx.scene.control.Skin<T>
Direct Known Subclasses:
CalendarPickerSkin, DateRangePickerSkin, DurationPickerSkin, TimePickerSkin, YearMonthPickerSkin, YearPickerSkin

public abstract class ToggleVisibilityComboBoxSkin<T extends javafx.scene.control.ComboBoxBase> extends CustomComboBoxSkinBase<T>
Base skin for combo-box controls that toggle popup visibility from a target node.

The skin coordinates mouse release handling with popup auto-hide behavior so clicking the trigger does not immediately reopen a just-hidden popup.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new toggle-visibility skin for the given control.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    mouseEntered(javafx.scene.input.MouseEvent mouseEvent)
    Records that the mouse entered the popup trigger node.
    protected void
    mouseExited(javafx.scene.input.MouseEvent mouseEvent)
    Records that the mouse exited the popup trigger node.
    protected void
    mouseReleased(javafx.scene.input.MouseEvent mouseEvent)
    Handles mouse release on the popup trigger node.
    protected void
    popupOnAutoHide(javafx.event.Event event)
    Handles popup auto-hide events.

    Methods inherited from class CustomComboBoxSkinBase

    getPopupContent, hide, show

    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

    • ToggleVisibilityComboBoxSkin

      public ToggleVisibilityComboBoxSkin(T control)
      Creates a new toggle-visibility skin for the given control.
      Parameters:
      control - the combo-box control to skin
  • Method Details

    • popupOnAutoHide

      protected void popupOnAutoHide(javafx.event.Event event)
      Description copied from class: CustomComboBoxSkinBase
      Handles popup auto-hide events.
      Overrides:
      popupOnAutoHide in class CustomComboBoxSkinBase<T extends javafx.scene.control.ComboBoxBase>
      Parameters:
      event - the auto-hide event
    • mouseReleased

      protected void mouseReleased(javafx.scene.input.MouseEvent mouseEvent)
      Handles mouse release on the popup trigger node.
      Parameters:
      mouseEvent - the mouse release event
    • mouseEntered

      protected void mouseEntered(javafx.scene.input.MouseEvent mouseEvent)
      Records that the mouse entered the popup trigger node.
      Parameters:
      mouseEvent - the mouse entered event
    • mouseExited

      protected void mouseExited(javafx.scene.input.MouseEvent mouseEvent)
      Records that the mouse exited the popup trigger node.
      Parameters:
      mouseEvent - the mouse exited event