Class DurationPickerSkin

All Implemented Interfaces:
javafx.scene.control.Skin<DurationPicker>

public class DurationPickerSkin extends ToggleVisibilityComboBoxSkin<DurationPicker>
Skin for the DurationPicker control.

The skin renders editable duration unit fields with separators and shows a PickerFX duration picker in its popup.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a skin for the given duration picker.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected double
    computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected double
    computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    protected javafx.scene.Node
    Returns the content node shown inside the popup.

    Methods inherited from class CustomComboBoxSkinBase

    hide, show

    Methods inherited from class javafx.scene.control.SkinBase

    computeBaselineOffset, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, 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

    • DurationPickerSkin

      public DurationPickerSkin(DurationPicker picker)
      Creates a skin for the given duration picker.
      Parameters:
      picker - the duration picker rendered by this skin
  • Method Details

    • computePrefWidth

      protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefWidth in class javafx.scene.control.SkinBase<DurationPicker>
    • computePrefHeight

      protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefHeight in class javafx.scene.control.SkinBase<DurationPicker>
    • getPopupContent

      protected javafx.scene.Node getPopupContent()
      Description copied from class: CustomComboBoxSkinBase
      Returns the content node shown inside the popup.
      Specified by:
      getPopupContent in class CustomComboBoxSkinBase<DurationPicker>
      Returns:
      the popup content node