base/common/src/main/com/thesett/common/state/BaseState.java
public void addPropertyChangeListener(PropertyChangeListener l)
    {
        // Check if the listneres list has been initialized
        if (listeners == null)
        {
            // Listeneres list not intialized so create a new list
            listeners = new ArrayList();
        }

        synchronized (listeners)
        {
            // Add the new listener to the list
            listeners.add(l);
        }
    }
public void addPropertyChangeListener(PropertyChangeListener l)
    {
        // Check if the listneres list has been initialized
        if (listeners == null)
        {
            // Listeneres list not intialized so create a new list
            listeners = new ArrayList();
        }

        synchronized (listeners)
        {
            // Add the new listener to the list
            listeners.add(l);
        }
    }
public void addPropertyChangeListener ( PropertyChangeListener l ) { // Check if the listneres list has been initialized if ( listeners == null ) { // Listeneres list not intialized so create a new list listeners = new ArrayList ( ) ; } synchronized ( listeners ) { // Add the new listener to the list listeners . add ( l ) ; } }
Adds a property changed listener to be notified of changes to the application state.

@param l The listener.
Adds a property changed listener to be notified of changes to the application state .