Top Description Fields Constructors Methods
javafx.scene.control.skin

public Class DatePickerSkin

extends ComboBoxPopupControl<LocalDate>
Class Inheritance
Imports
java.time.LocalDate, .YearMonth, java.time.chrono.HijrahChronology, javafx.beans.InvalidationListener, .Observable, javafx.event.ActionEvent, javafx.geometry.Insets, javafx.scene.Node, javafx.scene.control.Control, .DatePicker, .TextField, javafx.util.StringConverter, com.sun.javafx.scene.control.DatePickerContent, .DatePickerHijrahContent, .ListenerHelper, com.sun.javafx.scene.control.behavior.ComboBoxBaseBehavior, .DatePickerBehavior

Default skin implementation for the DatePicker control.
Since
9
See Also
DatePicker

Field Summary

Modifier and TypeField and Description
private final DatePickerBehavior
private final DatePicker
private DatePickerContent
private TextField
Inherited from javafx.scene.control.skin.ComboBoxPopupControl:
popup

Constructor Summary

AccessConstructor and Description
public
DatePickerSkin(final DatePicker
The control that this skin should be installed onto.
control
)

Creates a new DatePickerSkin instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.

Method Summary

Modifier and TypeMethod and Description
protected double
computeMinWidth(double
The height of the Skin, in case this value might dictate the minimum width.
height
,
double
the pixel snapped top inset
topInset
,
double
the pixel snapped right inset
rightInset
,
double
the pixel snapped bottom inset
bottomInset
,
double
the pixel snapped left inset
leftInset
)

Overrides javafx.scene.control.SkinBase.computeMinWidth.

Computes the minimum allowable width of the Skin, based on the provided height.

public void
dispose()

Overrides javafx.scene.control.skin.ComboBoxPopupControl.dispose.

Implements javafx.scene.control.Skin.dispose.

Called when a previously installed skin is about to be removed from its associated control.

pack-priv void
pack-priv ComboBoxBaseBehavior<T>
protected StringConverter<LocalDate>
getConverter()

Implements abstract javafx.scene.control.skin.ComboBoxPopupControl.getConverter.

Subclasses are responsible for getting the converter.

public Node
getDisplayNode()

Implements abstract javafx.scene.control.skin.ComboBoxBaseSkin.getDisplayNode.

This method should return a Node that will be positioned within the ComboBox 'button' area.

protected TextField
getEditor()

Implements abstract javafx.scene.control.skin.ComboBoxPopupControl.getEditor.

Subclasses are responsible for getting the editor.

public Node
getPopupContent()

Implements abstract javafx.scene.control.skin.ComboBoxPopupControl.getPopupContent.

This method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area.

public void
show()

Overrides javafx.scene.control.skin.ComboBoxPopupControl.show.

This method will be called when the ComboBox popup should be displayed.

Inherited from javafx.scene.control.skin.ComboBoxPopupControl:
getEditableInputNodegetPopuphideinstallreconfigurePopupsetTextFromTextFieldIntoComboBoxValueupdateDisplayNodeupdateEditable

Field Detail

behaviorback to summary
private final DatePickerBehavior behavior
datePickerback to summary
private final DatePicker datePicker
datePickerContentback to summary
private DatePickerContent datePickerContent
displayNodeback to summary
private TextField displayNode

Hides javafx.scene.control.skin.ComboBoxBaseSkin.displayNode.

Constructor Detail

DatePickerSkinback to summary
public DatePickerSkin(final DatePicker control)

Creates a new DatePickerSkin instance, installing the necessary child nodes into the Control children list, as well as the necessary input mappings for handling key, mouse, etc events.

Parameters
control:DatePicker

The control that this skin should be installed onto.

Method Detail

computeMinWidthback to summary
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)

Overrides javafx.scene.control.SkinBase.computeMinWidth.

Doc from javafx.scene.control.SkinBase.computeMinWidth.

Computes the minimum allowable width of the Skin, based on the provided height.

Parameters
height:double

The height of the Skin, in case this value might dictate the minimum width.

topInset:double

the pixel snapped top inset

rightInset:double

the pixel snapped right inset

bottomInset:double

the pixel snapped bottom inset

leftInset:double

the pixel snapped left inset

Returns:double

A double representing the minimum width of this Skin.

Annotations
@Override
disposeback to summary
public void dispose()

Overrides javafx.scene.control.skin.ComboBoxPopupControl.dispose.

Implements javafx.scene.control.Skin.dispose.

Doc from javafx.scene.control.SkinBase.dispose.

Called when a previously installed skin is about to be removed from its associated control. This allows the skin to do clean up, like removing listeners and bindings, and undo any changes to the control's properties. After this method completes, getSkinnable() and getNode() should return null.

Calling dispose() more than once has no effect.

Annotations
@Override
focusLostback to summary
pack-priv void focusLost()

Overrides javafx.scene.control.skin.ComboBoxBaseSkin.focusLost.

Annotations
@Override
getBehaviorback to summary
pack-priv ComboBoxBaseBehavior<T> getBehavior()

Overrides javafx.scene.control.skin.ComboBoxBaseSkin.getBehavior.

Annotations
@Override
getConverterback to summary
protected StringConverter<LocalDate> getConverter()

Implements abstract javafx.scene.control.skin.ComboBoxPopupControl.getConverter.

Doc from javafx.scene.control.skin.ComboBoxPopupControl.getConverter.

Subclasses are responsible for getting the converter. This will be removed in FX 9 when the converter property is moved up to ComboBoxBase with JDK-8130354.

Returns:StringConverter<LocalDate>

the string converter

Annotations
@Override
getDisplayNodeback to summary
public Node getDisplayNode()

Implements abstract javafx.scene.control.skin.ComboBoxBaseSkin.getDisplayNode.

Doc from javafx.scene.control.skin.ComboBoxBaseSkin.getDisplayNode.

This method should return a Node that will be positioned within the ComboBox 'button' area.

Returns:Node

the node that will be positioned within the ComboBox 'button' area

Annotations
@Override
getEditorback to summary
protected TextField getEditor()

Implements abstract javafx.scene.control.skin.ComboBoxPopupControl.getEditor.

Doc from javafx.scene.control.skin.ComboBoxPopupControl.getEditor.

Subclasses are responsible for getting the editor. This will be removed in FX 9 when the editor property is moved up to ComboBoxBase with JDK-8130354 Note: ComboBoxListViewSkin should return null if editable is false, even if the ComboBox does have an editor set.

Returns:TextField

the editor

Annotations
@Override
getPopupContentback to summary
public Node getPopupContent()

Implements abstract javafx.scene.control.skin.ComboBoxPopupControl.getPopupContent.

Doc from javafx.scene.control.skin.ComboBoxPopupControl.getPopupContent.

This method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area.

Returns:Node

the Node that will be displayed when the user clicks on the ComboBox 'button' area

Annotations
@Override
showback to summary
public void show()

Overrides javafx.scene.control.skin.ComboBoxPopupControl.show.

Doc from javafx.scene.control.skin.ComboBoxPopupControl.show.

This method will be called when the ComboBox popup should be displayed. It is up to specific skin implementations to determine how this is handled.

Annotations
@Override