Top Fields Constructors Methods
com.dlsc.gemsfx.skins

public Class DurationPickerSkin

extends ToggleVisibilityComboBoxSkin<DurationPicker>
Class Inheritance
Imports
com.dlsc.gemsfx.CustomComboBox, .DurationPicker, .Spacer, javafx.beans.InvalidationListener, javafx.collections.ObservableList, javafx.geometry.Pos, javafx.scene.Node, javafx.scene.input.MouseEvent, javafx.scene.layout.HBox, .Priority, .Region, .StackPane, javafx.util.Callback, .Pair, java.time.Duration, java.time.temporal.ChronoUnit, java.util.ArrayList, .List, .Objects

Field Summary

Modifier and TypeField and Description
private final StackPane
private final HBox
private final List<DurationUnitField>
private final HBox
private Node
private final Spacer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
protected double
computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase.

protected double
computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefWidth.

Calculates the preferred width of this SkinBase.

private Duration
private DurationUnitField
protected Node
private void
Inherited from com.dlsc.gemsfx.skins.ToggleVisibilityComboBoxSkin:
mouseEnteredmouseExitedmouseReleasedpopupOnAutoHide

Field Detail

arrowButtonback to summary
private final StackPane arrowButton
boxback to summary
private final HBox box
durationUnitFieldsback to summary
private final List<DurationUnitField> durationUnitFields
innerBoxback to summary
private final HBox innerBox
popupContentback to summary
private Node popupContent
spacerback to summary
private final Spacer spacer

Constructor Detail

DurationPickerSkinback to summary
public DurationPickerSkin(DurationPicker picker)

Method Detail

buildViewback to summary
private void buildView()
computePrefHeightback to summary
protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefHeight.

Doc from javafx.scene.control.SkinBase.computePrefHeight.

Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.

Annotations
@Override
computePrefWidthback to summary
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computePrefWidth.

Doc from javafx.scene.control.SkinBase.computePrefWidth.

Calculates the preferred width of this SkinBase. The default implementation calculates this width as the width of the area occupied by its managed children when they are positioned at their current positions at their preferred widths.

Annotations
@Override
createDurationback to summary
private Duration createDuration()
createFieldback to summary
private DurationUnitField createField(ChronoUnit unit)
getPopupContentback to summary
protected Node getPopupContent()

Implements abstract com.dlsc.gemsfx.skins.CustomComboBoxSkinBase.getPopupContent.

Annotations
@Override
updateBoxback to summary
private void updateBox()