Code example for PropertyChangeSupport

Methods: addPropertyChangeListener

0
 
	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);
	} 
 
Connect your IDE to all the code out there  Get Codota for Java