public class ColorPickerSkin extends ComboBoxPopupControl<Color>
ColorPicker
control.ColorPicker
Type | Property and Description |
---|---|
private StringProperty |
imageUrl |
Modifier and Type | Class and Description |
---|---|
private class |
ColorPickerSkin.PickerColorBox
*
picker-color-cell *
*
|
private static class |
ColorPickerSkin.StyleableProperties
*
Stylesheet Handling *
*
|
Modifier and Type | Field and Description |
---|---|
private ColorPickerBehavior |
behavior |
(package private) BooleanProperty |
colorLabelVisible
*
Properties *
*
|
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 fields *
*
|
private StyleableStringProperty |
imageUrl |
private StackPane |
pickerColorBox |
private ColorPalette |
popupContent |
popup
arrow, arrowButton
Constructor and Description |
---|
ColorPickerSkin(ColorPicker control)
Creates a new ColorPickerSkin instance, installing the necessary child
nodes into the Control
children list, as
well as the necessary input mappings for handling key, mouse, etc events. |
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) |
void |
dispose() |
(package private) void |
focusLost() |
(package private) ComboBoxBaseBehavior |
getBehavior()
*
Private implementation *
*
|
static java.util.List<<any>> |
getClassCssMetaData()
Returns the CssMetaData associated with this class, which may include the
CssMetaData of its superclasses.
|
protected <any> |
getConverter()
Subclasses are responsible for getting the converter.
|
java.util.List<<any>> |
getCssMetaData() |
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, so this method has been
overridden to return null.
|
protected Node |
getPopupContent()
This method should return the Node that will be displayed when the user
clicks on the ComboBox 'button' area.
|
private StringProperty |
imageUrlProperty() |
protected void |
layoutChildren(double x,
double y,
double w,
double h) |
void |
show()
This method will be called when the ComboBox popup should be displayed.
|
(package private) static java.lang.String |
tooltipString(Color c) |
private void |
updateColor() |
private void |
updateComboBoxMode() |
getEditableInputNode, getPopup, hide, reconfigurePopup, setTextFromTextFieldIntoComboBoxValue, updateDisplayNode, updateEditable
computeBaselineOffset, computeMaxHeight, computeMaxWidth, computePrefHeight, getMode, setMode, updateDisplayArea
private Label displayNode
private StackPane pickerColorBox
private Rectangle colorRect
private ColorPalette popupContent
private final ColorPickerBehavior behavior
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 control)
children
list, as
well as the necessary input mappings for handling key, mouse, etc events.control
- The control that this skin should be installed onto.private final StringProperty imageUrlProperty()
public void dispose()
protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
computePrefWidth
in class ComboBoxBaseSkin<Color>
protected Node getPopupContent()
getPopupContent
in class ComboBoxPopupControl<Color>
public void show()
show
in class ComboBoxPopupControl<Color>
public Node getDisplayNode()
getDisplayNode
in class ComboBoxBaseSkin<Color>
protected void layoutChildren(double x, double y, double w, double h)
layoutChildren
in class ComboBoxBaseSkin<Color>
void focusLost()
focusLost
in class ComboBoxBaseSkin<Color>
ComboBoxBaseBehavior getBehavior()
getBehavior
in class ComboBoxBaseSkin<Color>
private void updateComboBoxMode()
static java.lang.String colorDisplayName(Color c)
static java.lang.String tooltipString(Color c)
private void updateColor()
public static java.util.List<<any>> getClassCssMetaData()
public java.util.List<<any>> getCssMetaData()
protected <any> getConverter()
getConverter
in class ComboBoxPopupControl<Color>
protected TextField getEditor()
getEditor
in class ComboBoxPopupControl<Color>