public class ColorPickerSkin extends ComboBoxPopupControl<Color>
| Modifier and Type | Class and Description |
|---|---|
private class |
ColorPickerSkin.PickerColorBox
*
picker-color-cell *
*
|
private static class |
ColorPickerSkin.StyleableProperties
*
Stylesheet Handling *
*
|
ComboBoxPopupControl.FakeFocusTextField| Modifier and Type | Field and Description |
|---|---|
(package private) BooleanProperty |
colorLabelVisible |
private static java.util.Map<Color,java.lang.String> |
colorNameMap |
private Rectangle |
colorRect |
private StyleableDoubleProperty |
colorRectHeight |
private StyleableDoubleProperty |
colorRectWidth |
private StyleableDoubleProperty |
colorRectX |
private StyleableDoubleProperty |
colorRectY |
private static java.util.Map<Color,java.lang.String> |
cssNameMap |
private Label |
displayNode |
private StyleableStringProperty |
imageUrl |
private StackPane |
pickerColorBox |
private ColorPalette |
popupContent |
COMBO_BOX_STYLE_CLASS, popuparrow, arrowButtonIS_TOUCH_SUPPORTED| Constructor and Description |
|---|
ColorPickerSkin(ColorPicker colorPicker) |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.String |
colorDisplayName(Color c) |
protected double |
computePrefWidth(double height,
double topInset,
double rightInset,
double bottomInset,
double leftInset)
Calculates the preferred width of this
SkinBase. |
protected void |
focusLost() |
(package private) static java.lang.String |
formatHexString(Color c) |
static java.util.List<CssMetaData<? extends Styleable,?>> |
getClassCssMetaData() |
protected StringConverter<Color> |
getConverter()
Subclasses are responsible for getting the converter.
|
java.util.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.
|
(package private) static java.lang.String |
getString(java.lang.String key) |
protected void |
handleControlPropertyChanged(java.lang.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() |
(package private) static java.lang.String |
tooltipString(Color c) |
private void |
updateColor() |
private void |
updateComboBoxMode() |
getEditableInputNode, getPopup, hide, reconfigurePopup, 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, snapSpaceprivate Label displayNode
private StackPane pickerColorBox
private Rectangle colorRect
private ColorPalette popupContent
BooleanProperty colorLabelVisible
private final StyleableStringProperty imageUrl
private final StyleableDoubleProperty colorRectWidth
private final StyleableDoubleProperty colorRectHeight
private final StyleableDoubleProperty colorRectX
private final StyleableDoubleProperty colorRectY
private static final java.util.Map<Color,java.lang.String> colorNameMap
private static final java.util.Map<Color,java.lang.String> cssNameMap
public 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 insetprivate void updateComboBoxMode()
static java.lang.String colorDisplayName(Color c)
static java.lang.String tooltipString(Color c)
static java.lang.String formatHexString(Color c)
protected 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(java.lang.String p)
ComboBoxBaseSkinhandleControlPropertyChanged in class ComboBoxBaseSkin<Color>public Node getDisplayNode()
ComboBoxBaseSkingetDisplayNode in class ComboBoxBaseSkin<Color>private void updateColor()
public void syncWithAutoUpdate()
protected void layoutChildren(double x,
double y,
double w,
double h)
SkinBaselayoutChildren in class ComboBoxBaseSkin<Color>static java.lang.String getString(java.lang.String key)
public static java.util.List<CssMetaData<? extends Styleable,?>> getClassCssMetaData()
public java.util.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>