| public class javax.swing.colorchooser DefaultColorSelectionModel
|
Java SE 6 |
| Fields | |
|---|---|
| protected 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".
|
| protected EventListenerList | listenerList |
| Constructors | |||
|---|---|---|---|
| public | DefaultColorSelectionModel() Creates a DefaultColorSelectionModel with the
current color set to Color.white. This is
the default constructor.
| ||
| public | DefaultColorSelectionModel(Color color) Details
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.
| ||
| Methods | |||
|---|---|---|---|
| public void | addChangeListener(ChangeListener l) Details
Adds a ChangeListener to the model.
| ||
| protected void | fireStateChanged() Details
| ||
| public void | removeChangeListener(ChangeListener l) Details
Removes a ChangeListener from the model.
| ||
| Properties | |||||
|---|---|---|---|---|---|
| public ChangeListener[] | getChangeListeners() Details
Returns an array of all the ChangeListeners added
to this DefaultColorSelectionModel with
addChangeListener.
| ||||
| public void | setSelectedColor(Color color) Details
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.
| ||||
| public Color | getSelectedColor() Details
Returns the selected Color which should be
non-null.
| ||||
| About DocWeb · Bundles · Export · Export All | Top 10 · Statistics · Login |
| About Sun · Contact · Privacy · Terms of Use · Trademarks | Java SE 6 · Copyright © 1994-2013 Sun Microsystems, Inc.All rights reserved. Use is subject to license terms |
![]() |
![]() |
|