public class ColorPickerSkin extends ComboBoxPopupControl<Color>
ComboBoxPopupControl.FakeFocusTextField
COMBO_BOX_STYLE_CLASS, popup
arrow, arrowButton
IS_TOUCH_SUPPORTED
Constructor and Description |
---|
ColorPickerSkin(ColorPicker colorPicker) |
Modifier and Type | Method and Description |
---|---|
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred width of this
SkinBase . |
protected void |
focusLost() |
static List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
protected StringConverter<Color> |
getConverter()
Subclasses are responsible for getting the converter.
|
List<CssMetaData<? extends Styleable,?>> |
getCssMetaData()
This method should delegate to
Node.getClassCssMetaData() so that
a Node's CssMetaData can be accessed without the need for reflection. |
Node |
getDisplayNode()
This method should return a Node that will be positioned within the
ComboBox 'button' area.
|
protected TextField |
getEditor()
ColorPicker does not use a main text field.
|
protected Node |
getPopupContent()
This method should return the Node that will be displayed when the user
clicks on the ComboBox 'button' area.
|
protected void |
handleControlPropertyChanged(String p)
Handles changes to properties of the MenuButton.
|
StringProperty |
imageUrlProperty() |
protected void |
layoutChildren(double x,
double y,
double w,
double h)
Called during the layout pass of the scenegraph.
|
void |
show()
This method will be called when the ComboBox popup should be displayed.
|
void |
syncWithAutoUpdate() |
getEditableInputNode, getPopup, hide, setTextFromTextFieldIntoComboBoxValue, updateDisplayNode, updateEditable
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, getMode, setMode, updateDisplayArea
dispose, getBehavior, registerChangeListener, unregisterChangeListener
computeMinHeight, computeMinWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace
public ColorPickerSkin(ColorPicker colorPicker)
public StringProperty imageUrlProperty()
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
SkinBase
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.computePrefWidth
in class ComboBoxBaseSkin<Color>
height
- the height that should be used if preferred width depends on ittopInset
- the pixel snapped top insetrightInset
- the pixel snapped right insetbottomInset
- the pixel snapped bottom insetleftInset
- the pixel snapped left insetprotected Node getPopupContent()
ComboBoxPopupControl
getPopupContent
in class ComboBoxPopupControl<Color>
protected void focusLost()
focusLost
in class ComboBoxBaseSkin<Color>
public void show()
ComboBoxBaseSkin
show
in class ComboBoxPopupControl<Color>
protected void handleControlPropertyChanged(String p)
ComboBoxBaseSkin
handleControlPropertyChanged
in class ComboBoxBaseSkin<Color>
public Node getDisplayNode()
ComboBoxBaseSkin
getDisplayNode
in class ComboBoxBaseSkin<Color>
public void syncWithAutoUpdate()
protected void layoutChildren(double x, double y, double w, double h)
SkinBase
layoutChildren
in class ComboBoxBaseSkin<Color>
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public List<CssMetaData<? extends Styleable,?>> getCssMetaData()
Node.getClassCssMetaData()
so that
a Node's CssMetaData can be accessed without the need for reflection.getCssMetaData
in class SkinBase<ComboBoxBase<Color>>
protected StringConverter<Color> getConverter()
ComboBoxPopupControl
getConverter
in class ComboBoxPopupControl<Color>
protected TextField getEditor()
getEditor
in class ComboBoxPopupControl<Color>
Copyright © 2020. All rights reserved.