|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.model.DefaultColorSelectionModel
A generic implementation of ColorSelectionModel.
Field Summary | |
protected nextapp.echo.event.ChangeEvent |
changeEvent
Only one ChangeEvent is needed per model instance since the event's only (read-only) state is the source property. |
protected nextapp.echo.event.EventListenerList |
listenerList
|
Constructor Summary | |
DefaultColorSelectionModel(nextapp.echo.Color color)
Initializes the selectedColor to color |
Method Summary | |
void |
addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the button. |
void |
fireStateChanged()
Notifies all listeners that have registered for this event type. |
nextapp.echo.Color |
getSelectedColor()
|
void |
removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from the button. |
void |
setSelectedColor(nextapp.echo.Color color)
Sets the model's selected color to color. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient nextapp.echo.event.ChangeEvent changeEvent
protected nextapp.echo.event.EventListenerList listenerList
Constructor Detail |
public DefaultColorSelectionModel(nextapp.echo.Color color)
color
Method Detail |
public void addChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
to the button.
addChangeListener
in interface ColorSelectionModel
l
- The ChangeListener
to be added.public void fireStateChanged()
public nextapp.echo.Color getSelectedColor()
getSelectedColor
in interface ColorSelectionModel
ColorSelectionModel.getSelectedColor()
public void removeChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
from the button.
removeChangeListener
in interface ColorSelectionModel
l
- The ChangeListener
to be removed.public void setSelectedColor(nextapp.echo.Color color)
ColorSelectionModel
setSelectedColor
in interface ColorSelectionModel
ColorSelectionModel.setSelectedColor(nextapp.echo.Color)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |