Class TimePickerSkin

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

public class TimePickerSkin extends ToggleVisibilityComboBoxSkin<TimePicker>
Skin for TimePicker.

The skin builds the inline time fields, separator nodes, popup trigger button, and popup content used to select a time value.

  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    protected double
    computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
     
    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, 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

    • TimePickerSkin

      public TimePickerSkin(TimePicker picker)
      Creates a new skin for the given time picker.
      Parameters:
      picker - the time picker to 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<TimePicker>
    • computePrefHeight

      protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computePrefHeight in class javafx.scene.control.SkinBase<TimePicker>
    • 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<TimePicker>
      Returns:
      the popup content node
    • computeMaxWidth

      protected double computeMaxWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
      Overrides:
      computeMaxWidth in class javafx.scene.control.SkinBase<TimePicker>