ColorPicker control.
ColorPicker
| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ColorPickerBehavior | |
| private static final Map | |
| pack-priv BooleanProperty | |
| private Rectangle | |
| private final StyleableDoubleProperty | |
| private final StyleableDoubleProperty | |
| private final StyleableDoubleProperty | |
| private final StyleableDoubleProperty | |
| private static final Map | |
| private Label | |
| private final StyleableStringProperty | |
| private StackPane | |
| private ColorPalette |
| Access | Constructor and Description |
|---|---|
| public | ColorPickerSkin(final ColorPicker
The control that this skin should be installed onto. control)Creates a new ColorPickerSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static String | |
| protected double | computePrefWidth(double
the height that should be used if preferred width depends on it height, double the pixel snapped top inset topInset, double the pixel snapped right inset rightInset, double the pixel snapped bottom inset bottomInset, double the pixel snapped left inset leftInset)Overrides javafx. Calculates the preferred width of this |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| pack-priv void | |
| pack-priv ComboBoxBaseBehavior | |
| public static List | Returns: the CssMetaData associated with this class, which may include the CssMetaData of its superclassesHides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses. |
| protected StringConverter | getConverter()
Implements abstract javafx. Subclasses are responsible for getting the converter. |
| public List | getCssMetaData()
Overrides javafx. This method should delegate to |
| public Node | getDisplayNode()
Implements abstract javafx. This method should return a Node that will be positioned within the ComboBox 'button' area. |
| protected TextField | getEditor()
Implements abstract javafx. ColorPicker does not use a main text field, so this method has been overridden to return null. |
| protected Node | getPopupContent()
Implements abstract javafx. This method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area. |
| private final StringProperty | |
| protected void | layoutChildren(final double
the x position x, final double the y position y, final double the width w, final double the height h)Overrides javafx. Called during the layout pass of the scenegraph. |
| public void | show()
Overrides javafx. This method will be called when the ComboBox popup should be displayed. |
| pack-priv static String | |
| private void | |
| private void |
| behavior | back to summary |
|---|---|
| private final ColorPickerBehavior behavior | |
| COLOR_NAME_MAP | back to summary |
|---|---|
| private static final Map<Color, String> COLOR_NAME_MAP | |
| colorLabelVisible | back to summary |
|---|---|
| pack-priv BooleanProperty colorLabelVisible | |
| colorRect | back to summary |
|---|---|
| private Rectangle colorRect | |
| colorRectHeight | back to summary |
|---|---|
| private final StyleableDoubleProperty colorRectHeight | |
| colorRectWidth | back to summary |
|---|---|
| private final StyleableDoubleProperty colorRectWidth | |
| colorRectX | back to summary |
|---|---|
| private final StyleableDoubleProperty colorRectX | |
| colorRectY | back to summary |
|---|---|
| private final StyleableDoubleProperty colorRectY | |
| CSS_NAME_MAP | back to summary |
|---|---|
| private static final Map<Color, String> CSS_NAME_MAP | |
| displayNode | back to summary |
|---|---|
| private Label displayNode Hides javafx. | |
| imageUrl | back to summary |
|---|---|
| private final StyleableStringProperty imageUrl | |
| pickerColorBox | back to summary |
|---|---|
| private StackPane pickerColorBox | |
| popupContent | back to summary |
|---|---|
| private ColorPalette popupContent | |
| ColorPickerSkin | back to summary |
|---|---|
| public ColorPickerSkin(final ColorPicker control) Creates a new ColorPickerSkin instance, installing the necessary child
nodes into the Control
| |
| colorDisplayName | back to summary |
|---|---|
| pack-priv static String colorDisplayName(Color c) | |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| focusLost | back to summary |
|---|---|
| pack-priv void focusLost() Overrides javafx.
| |
| getBehavior | back to summary |
|---|---|
| pack-priv ComboBoxBaseBehavior Overrides javafx.
| |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Returns the CssMetaData associated with this class, which may include the CssMetaData of its superclasses.
| |
| getConverter | back to summary |
|---|---|
| protected StringConverter Implements abstract javafx. Doc from javafx. Subclasses are responsible for getting the converter. This will be removed in FX 9 when the converter property is moved up to ComboBoxBase with JDK-8130354.
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Doc from javafx. This method should delegate to
| |
| getDisplayNode | back to summary |
|---|---|
| public Node getDisplayNode() Implements abstract javafx. Doc from javafx. This method should return a Node that will be positioned within the ComboBox 'button' area. | |
| getEditor | back to summary |
|---|---|
| protected TextField getEditor() Implements abstract javafx. ColorPicker does not use a main text field, so this method has been overridden to return null.
| |
| getPopupContent | back to summary |
|---|---|
| protected Node getPopupContent() Implements abstract javafx. Doc from javafx. This method should return the Node that will be displayed when the user clicks on the ComboBox 'button' area. | |
| imageUrlProperty | back to summary |
|---|---|
| private final StringProperty imageUrlProperty() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| show | back to summary |
|---|---|
| public void show() Overrides javafx. Doc from javafx. This method will be called when the ComboBox popup should be displayed. It is up to specific skin implementations to determine how this is handled.
| |
| tooltipString | back to summary |
|---|---|
| pack-priv static String tooltipString(Color c) | |
| updateColor | back to summary |
|---|---|
| private void updateColor() | |
| updateComboBoxMode | back to summary |
|---|---|
| private void updateComboBoxMode() | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| PickerColorBox | back to summary |
|---|---|
| private PickerColorBox() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| COLOR_LABEL_VISIBLE | back to summary |
|---|---|
| private static final CssMetaData<ColorPicker, Boolean> COLOR_LABEL_VISIBLE | |
| COLOR_RECT_HEIGHT | back to summary |
|---|---|
| private static final CssMetaData<ColorPicker, Number> COLOR_RECT_HEIGHT | |
| COLOR_RECT_WIDTH | back to summary |
|---|---|
| private static final CssMetaData<ColorPicker, Number> COLOR_RECT_WIDTH | |
| COLOR_RECT_X | back to summary |
|---|---|
| private static final CssMetaData<ColorPicker, Number> COLOR_RECT_X | |
| COLOR_RECT_Y | back to summary |
|---|---|
| private static final CssMetaData<ColorPicker, Number> COLOR_RECT_Y | |
| GRAPHIC | back to summary |
|---|---|
| private static final CssMetaData<ColorPicker, String> GRAPHIC | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |