[8:7] extends: Node, Control, Region
JavaFX ColorPicker class.
ColorPicker (object ColorVal = null
)
Constructor takes an optional default color value to apply to the color picker.
ColorVal
is an optional Color object to set.this
objectsetValue (object ColorVal
)
Sets the provided color value.
ColorVal
is a Color object to set.this
objectgetValue ()
Gets the current selected color object.
A
hex formatted string with the color value.onChange (callback OnChange
)
Sets the on change handler with the provided callback function to call on change. The callback takes a single argument with the event.
OnChange
is a callback to call on change.this
object