public class ColorPickerSkin extends ComboBoxPopupControl<Color>
ComboBoxPopupControl.FakeFocusTextFieldCOMBO_BOX_STYLE_CLASS, popuparrow, arrowButtonIS_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, updateEditablecomputeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, getMode, setMode, updateDisplayAreadispose, getBehavior, registerChangeListener, unregisterChangeListenercomputeMinHeight, computeMinWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, queryAccessibleAttribute, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpacepublic ColorPickerSkin(ColorPicker colorPicker)
public StringProperty imageUrlProperty()
protected double computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
SkinBaseSkinBase. 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()
ComboBoxPopupControlgetPopupContent in class ComboBoxPopupControl<Color>protected void focusLost()
focusLost in class ComboBoxBaseSkin<Color>public void show()
ComboBoxBaseSkinshow in class ComboBoxPopupControl<Color>protected void handleControlPropertyChanged(String p)
ComboBoxBaseSkinhandleControlPropertyChanged in class ComboBoxBaseSkin<Color>public Node getDisplayNode()
ComboBoxBaseSkingetDisplayNode in class ComboBoxBaseSkin<Color>public void syncWithAutoUpdate()
protected void layoutChildren(double x,
double y,
double w,
double h)
SkinBaselayoutChildren 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()
ComboBoxPopupControlgetConverter in class ComboBoxPopupControl<Color>protected TextField getEditor()
getEditor in class ComboBoxPopupControl<Color>Copyright © 2025. All rights reserved.