API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.colorchooser. DefaultColorSelectionModel View Source
Author(s)
Steve Wilson
Since
Version
1.16 11/17/05
Serial
Hierarchy
 Object
      DefaultColorSelectionModel
Implements
 ColorSelectionModel
 Serializable
Subclasses
Description
public class DefaultColorSelectionModel
  A generic implementation of ColorSelectionModel.
See also:    Color
Constructors
public DefaultColorSelectionModel ()
  Creates a DefaultColorSelectionModel with the current color set to Color.white.
public DefaultColorSelectionModel (Color color)
  Creates a DefaultColorSelectionModel with the current color set to color, which should be non-null.
Methods
Hide/Show inherited methods
public void addChangeListener (ChangeListener l) [Specified in ColorSelectionModel]
  Adds a ChangeListener to the model.
protected void fireStateChanged ()
  Runs each ChangeListener's stateChanged method.
public ChangeListener getChangeListeners ()
  Returns an array of all the ChangeListeners added to this DefaultColorSelectionModel with addChangeListener.
public Color getSelectedColor () [Specified in ColorSelectionModel]
  Returns the selected Color which should be non-null.
public void removeChangeListener (ChangeListener l) [Specified in ColorSelectionModel]
  Removes a ChangeListener from the model.
public void setSelectedColor (Color color) [Specified in ColorSelectionModel]
  Sets the selected color to color.
Fields
Hide/Show inherited fields
protectedtransient ChangeEvent changeEvent
  Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property.
protected EventListenerList listenerList
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar