|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BoundedModel
Interface 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.
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. |
Method Detail |
---|
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
to this
model.
listener
- The listener to be added.void removePropertyListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
from
this model.
listener
- The listener to be removed.void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
PropertyChangeEvent
.
propertyName
- The name of the changed property.oldValue
- Original value of the changed property.newValue
- New value of the changed property.void firePropertyChange(java.beans.PropertyChangeEvent propertyChangeEvent)
PropertyChangeEvent
.
propertyChangeEvent
- A PropertyChangeEvent
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |