Code example for PropertyChangeSupport

0
 
	protected WebflowModelElement() { 
	} 
 
	transient protected PropertyChangeSupport listeners = new PropertyChangeSupport(
			this);
 
	public void addPropertyChangeListener(PropertyChangeListener l) {
		listeners.addPropertyChangeListener(l);
	} 
 
	public void firePropertyChange(String prop, Object old, Object newValue) {
		listeners.firePropertyChange(prop, old, newValue);
	} 
 
	public void firePropertyChange(String prop) {
		listeners.firePropertyChange(prop, "old", "newValue");
	} 
 
	public void fireStructureChange(String prop, Object child) {
		listeners.firePropertyChange(prop, null, child);