|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ucla.loni.LOVE.BoundedModelImpl
public class BoundedModelImpl
Base class for bounded model.
As indicated in Java Bean, this model have a list of
listener. Once the bounded value of this model changes
it will fire a PropertyChangeEvent
to
notify all the listeners.
Listener of this class should implement
PropertyChangeListener
interface.
Constructor Summary | |
---|---|
BoundedModelImpl()
Constructor |
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a PropertyChangeListener to this
model. |
void |
firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
Fire a PropertyChangeEvent . |
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Fire a PropertyChangeEvent . |
void |
removePropertyListener(java.beans.PropertyChangeListener listener)
Remove the PropertyChangeListener from
this model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoundedModelImpl()
Method Detail |
---|
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
to this
model.
addPropertyChangeListener
in interface BoundedModel
listener
- The listener to be added.public void removePropertyListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
from
this model.
removePropertyListener
in interface BoundedModel
listener
- The listener to be removed.public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
PropertyChangeEvent
.
firePropertyChange
in interface BoundedModel
propertyName
- The name of the changed property.oldValue
- Original value of the changed property.newValue
- New value of the changed property.public void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
PropertyChangeEvent
.
firePropertyChange
in interface BoundedModel
propertyChangeEvent
- A PropertyChangeEvent
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |