Code example for PropertyChangeSupport

0
package de.vogella.databinding.example; 
 
import java.beans.PropertyChangeListener; 
import java.beans.PropertyChangeSupport; 
 
public class ModelObject { 
	private PropertyChangeSupport changeSupport = new PropertyChangeSupport(
			this);
 
	public void addPropertyChangeListener(PropertyChangeListener listener) {
		changeSupport.addPropertyChangeListener(listener);
	} 
 
	public void removePropertyChangeListener(PropertyChangeListener listener) {
		changeSupport.removePropertyChangeListener(listener);
	} 
 
	public void addPropertyChangeListener(String propertyName,
			PropertyChangeListener listener) {
		changeSupport.addPropertyChangeListener(propertyName, listener);
	} 
 
	public void removePropertyChangeListener(String propertyName,