Class DateRangePickerSkin

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

public class DateRangePickerSkin extends ToggleVisibilityComboBoxSkin<DateRangePicker>
Skin for the DateRangePicker control.

The skin renders the selected date range, optional title and icon, and uses the associated DateRangeView as popup content.

  • Constructor Details

    • DateRangePickerSkin

      public DateRangePickerSkin(DateRangePicker picker)
      Creates a skin for the given date range picker.
      Parameters:
      picker - the date range picker rendered by this skin
  • Method Details

    • computePrefHeight

      protected double computePrefHeight(double width, double v1, double v2, double v3, double v4)
      Overrides:
      computePrefHeight in class javafx.scene.control.SkinBase<DateRangePicker>
    • computeMaxHeight

      protected double computeMaxHeight(double width, double v1, double v2, double v3, double v4)
      Overrides:
      computeMaxHeight in class javafx.scene.control.SkinBase<DateRangePicker>
    • 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<DateRangePicker>
      Returns:
      the popup content node
    • toString

      public String toString(DateRange range)
      Formats the given date range with the picker formatter.
      Parameters:
      range - the date range to format
      Returns:
      the formatted date range