|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jurvis.beans.JvAbstractJavaBean
public abstract class JvAbstractJavaBean
Common functionality for all JavaSoft JavaBeans
| Field Summary | |
|---|---|
protected PropertyChangeSupport |
propertyChangeSupport
The PropertyChangeSupport making this object a JavaBean. |
| Constructor Summary | |
|---|---|
JvAbstractJavaBean()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list. |
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue,
boolean setModified)
Supports reporting bound property changes. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected transient PropertyChangeSupport propertyChangeSupport
PropertyChangeSupport making this object a JavaBean.
This object is lazily created when a PropertyChangeListener
is added, so this may be null.
| Constructor Detail |
|---|
public JvAbstractJavaBean()
| Method Detail |
|---|
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface JvJavaBeanlistener - The PropertyChangeListener to be addedpublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface JvJavaBeanlistener - The PropertyChangeListener to be removed
public final void firePropertyChange(String propertyName,
Object oldValue,
Object newValue,
boolean setModified)
public void setFoo(int newValue) {
int oldValue = foo;
foo = newValue;
firePropertyChange("foo", oldValue, newValue);
}
propertyName - the programmatic name of the property that was changedoldValue - the old value of the propertynewValue - the new value of the propertyPropertyChangeSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||