public void addListener(ChangeListener listener) {
        synchronized (hsChangeListeners) {
            hsChangeListeners.add(listener);
            changeListenerCount = hsChangeListeners.size();
            bUpdateChangeListener = true;
        }
    }
public void addListener ( ChangeListener listener ) { synchronized ( hsChangeListeners ) { hsChangeListeners . add ( listener ) ; changeListenerCount = hsChangeListeners . size ( ) ; bUpdateChangeListener = true ; } }
This adds a new change listener to the Change listener.
@param listener The listener to be added.