Add a property change listener.paramlst The listener to add. propertyChangeSupport.addPropertyChangeListener(lst);
propertyChangeSupport.addPropertyChangeListener(lst);
Getter for property age.returnThe current value of the property age. return this.age;
return this.age;
Remove a property change listener.paramlst The listener to add. propertyChangeSupport.removePropertyChangeListener(lst);
propertyChangeSupport.removePropertyChangeListener(lst);
Setter for property value.paramvalue The new age. final int oldAge = this.age; this.age = value; this.propertyChangeSupport.firePropertyChange("value", oldAge, this.age);
final int oldAge = this.age; this.age = value; this.propertyChangeSupport.firePropertyChange("value", oldAge, this.age);