A generic implementation of ColorSelectionModel.
A generic implementation of ColorSelectionModel.
(->default-color-selection-model)
(->default-color-selection-model color)
Constructor.
Creates a DefaultColorSelectionModel with the current color set to color, which should be non-null. Note that setting the color to null is undefined and may have unpredictable results.
color - the new Color - java.awt.Color
Constructor. Creates a DefaultColorSelectionModel with the current color set to color, which should be non-null. Note that setting the color to null is undefined and may have unpredictable results. color - the new Color - `java.awt.Color`
(add-change-listener this l)
Adds a ChangeListener to the model.
l - the ChangeListener to be added - javax.swing.event.ChangeListener
Adds a ChangeListener to the model. l - the ChangeListener to be added - `javax.swing.event.ChangeListener`
(get-change-listeners this)
Returns an array of all the ChangeListeners added to this DefaultColorSelectionModel with addChangeListener.
returns: all of the ChangeListeners added, or an empty
array if no listeners have been added - javax.swing.event.ChangeListener[]
Returns an array of all the ChangeListeners added to this DefaultColorSelectionModel with addChangeListener. returns: all of the ChangeListeners added, or an empty array if no listeners have been 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 l)
Removes a ChangeListener from the model.
l - the ChangeListener to be removed - javax.swing.event.ChangeListener
Removes a ChangeListener from the model. l - 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; if the new color is the same as the current color, no event is fired.
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; if the new color is the same as the current color, no event is fired. color - the new Color - `java.awt.Color`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close