Package Summary  Overview Summary

class:DefaultColorSelectionModel [NONE]

field:changeEvent [NONE]

  • changeEvent

    protected transient ChangeEvent changeEvent
    Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property. The source of events generated here is always "this".

field:listenerList [NONE]

constructor:<init>() [NONE]

  • DefaultColorSelectionModel

    public DefaultColorSelectionModel()
    Creates a DefaultColorSelectionModel with the current color set to Color.white. This is the default constructor.

constructor:<init>(java.awt.Color) [NONE]

  • DefaultColorSelectionModel

    public DefaultColorSelectionModel​(Color color)
    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.
    Parameters:
    color - the new Color

method:getSelectedColor() [NONE]

method:setSelectedColor(java.awt.Color) [NONE]

method:addChangeListener(javax.swing.event.ChangeListener) [NONE]

method:removeChangeListener(javax.swing.event.ChangeListener) [NONE]

method:getChangeListeners() [NONE]

  • getChangeListeners

    public ChangeListener[] getChangeListeners()
    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
    Since:
    1.4

method:fireStateChanged() [NONE]

  • fireStateChanged

    protected void fireStateChanged()
    Runs each ChangeListener's stateChanged method.
    See Also:
    EventListenerList

© 2019 Oracle Corporation and/or its affiliates