A model that supports selecting a Color.
A model that supports selecting a Color.
(add-change-listener this listener)Adds listener as a listener to changes in the model.
listener - the ChangeListener to be added - javax.swing.event.ChangeListener
Adds listener as a listener to changes in the model. listener - the ChangeListener to be added - `javax.swing.event.ChangeListener`
(get-selected-color this)Returns the selected Color which should be non-null.
returns: the selected Color - java.awt.Color
Returns the selected Color which should be non-null. returns: the selected Color - `java.awt.Color`
(remove-change-listener this listener)Removes listener as a listener to changes in the model.
listener - the ChangeListener to be removed - javax.swing.event.ChangeListener
Removes listener as a listener to changes in the model. listener - the ChangeListener to be removed - `javax.swing.event.ChangeListener`
(set-selected-color this color)Sets the selected color to color. Note that setting the color to null is undefined and may have unpredictable results. This method fires a state changed event if it sets the current color to a new non-null color.
color - the new Color - java.awt.Color
Sets the selected color to color. Note that setting the color to null is undefined and may have unpredictable results. This method fires a state changed event if it sets the current color to a new non-null color. color - the new Color - `java.awt.Color`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |