public class DatePickerSkin extends ComboBoxPopupControl<java.time.LocalDate>
ComboBoxPopupControl.FakeFocusTextField
Modifier and Type | Field and Description |
---|---|
private DatePicker |
datePicker |
private DatePickerContent |
datePickerContent |
private TextField |
displayNode |
COMBO_BOX_STYLE_CLASS, popup
arrow, arrowButton
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
DatePickerSkin(DatePicker datePicker) |
Modifier and Type | Method and Description |
---|---|
protected double |
computeMinWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Computes the minimum allowable width of the Skin, based on the provided
height.
|
protected void |
focusLost() |
protected StringConverter<java.time.LocalDate> |
getConverter()
Subclasses are responsible for getting the converter.
|
Node |
getDisplayNode()
This method should return a Node that will be positioned within the
ComboBox 'button' area.
|
protected TextField |
getEditor()
Subclasses are responsible for getting the editor.
|
Node |
getPopupContent()
This method should return the Node that will be displayed when the user
clicks on the ComboBox 'button' area.
|
protected void |
handleControlPropertyChanged(java.lang.String p)
Handles changes to properties of the MenuButton.
|
void |
show()
This method will be called when the ComboBox popup should be displayed.
|
void |
syncWithAutoUpdate() |
getEditableInputNode, getPopup, hide, reconfigurePopup, setTextFromTextFieldIntoComboBoxValue, updateDisplayNode, updateEditable
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, computePrefWidth, getMode, layoutChildren, setMode, updateDisplayArea
dispose, getBehavior, registerChangeListener, unregisterChangeListener
computeMinHeight, consumeMouseEvents, executeAccessibleAction, getChildren, getClassCssMetaData, getCssMetaData, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
private DatePicker datePicker
private TextField displayNode
private DatePickerContent datePickerContent
public DatePickerSkin(DatePicker datePicker)
public Node getPopupContent()
ComboBoxPopupControl
getPopupContent
in class ComboBoxPopupControl<java.time.LocalDate>
protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
computeMinWidth
in class SkinBase<ComboBoxBase<java.time.LocalDate>>
height
- The height of the Skin, in case this value might dictate
the minimum width.topInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected void focusLost()
focusLost
in class ComboBoxBaseSkin<java.time.LocalDate>
public void show()
ComboBoxBaseSkin
show
in class ComboBoxPopupControl<java.time.LocalDate>
protected void handleControlPropertyChanged(java.lang.String p)
ComboBoxBaseSkin
handleControlPropertyChanged
in class ComboBoxBaseSkin<java.time.LocalDate>
protected TextField getEditor()
ComboBoxPopupControl
getEditor
in class ComboBoxPopupControl<java.time.LocalDate>
protected StringConverter<java.time.LocalDate> getConverter()
ComboBoxPopupControl
getConverter
in class ComboBoxPopupControl<java.time.LocalDate>
public Node getDisplayNode()
ComboBoxBaseSkin
getDisplayNode
in class ComboBoxBaseSkin<java.time.LocalDate>
public void syncWithAutoUpdate()